Otherwise, in the end you are generating an SQL sentence that tries to compare the 'id' property of the record with an internal Sencha value, not with the value for the 'id' field of the record that we want to modify.

you originally included rs.InsertId in the text that gets evaluated, but it caused problems when minifying the js file (because you are including the name of the variable, that can be modified by the minifier, in plain text).

destroy method was missing from STversion 1.1.0, I think it is fixed in v1.1.1. This is needed when we are trying to delete model instance. I haven't think about the sync function after store record is removed.
Thanks for pointing out .

Uncaught TypeError: Cannot read property 'dbConn' of undefined

I keep getting this error in Chrome console: Uncaught TypeError: Cannot read property 'dbConn' of undefined. The demo provided on github runs file. I'm not even doing anything with the model. And I have quadruple checked to see if all the files are included in index.html.

Any ideas? Is there a problem with doing this in an MVC application?

myModel.js . I keep getting the error at the line "dbConn: Ext.DbConnection.dbConn"