westvovik
5 Nov 2010, 7:31 AM
Help to understand please as to expand object Ext.data.store, I should where to find the detailed information
Has found one example but hasn't absolutely understood as me it to adapt
Here my code
App.store = new Ext.extend(Ext.data.Store, {
restful: true,
autoLoad: false,
autoSave: true,
idProperty: 'id',
constructor: function() {
App.store.superclass.constructor.call(this, {
writer: new Ext.data.JsonWriter({writeAllFields: false}),
proxy: new Ext.data.HttpProxy({url: this.url}),
reader: new Ext.data.JsonReader({totalProperty: 'total', successProperty: 'success', idProperty: this.idProperty, root: 'data', messageProperty: 'message'}, this.dataArr)
});
}
});
Ext.reg("appstore", App.store);
But it doesn't work.
Has found one example but hasn't absolutely understood as me it to adapt
Here my code
App.store = new Ext.extend(Ext.data.Store, {
restful: true,
autoLoad: false,
autoSave: true,
idProperty: 'id',
constructor: function() {
App.store.superclass.constructor.call(this, {
writer: new Ext.data.JsonWriter({writeAllFields: false}),
proxy: new Ext.data.HttpProxy({url: this.url}),
reader: new Ext.data.JsonReader({totalProperty: 'total', successProperty: 'success', idProperty: this.idProperty, root: 'data', messageProperty: 'message'}, this.dataArr)
});
}
});
Ext.reg("appstore", App.store);
But it doesn't work.