sekaijin
5 Dec 2011, 7:55 AM
Good morning.
I'm use MVC pattern
With the Data Package Ext4 I can not find how to be informed of the success or failure of a sync my data store ?
ex:
remove : function(cfg) {
this.getAppsStore().on('remove', cfg.callback, cfg.scope);
var store = this.getAppsStore();
store.remove(store.getById(cfg.id));//this send the "remove" event
console.log('removed from the DataStore but not destroyed on server');
this.getAppsStore().sync();
//destroyed on server
},
I want to call "Calback" on "sucess" event of destroy action on the proxy, not the "remove" event of the DataStore.
but in the doc are no events on Oppers Proxy
A+JYT
PS: sorry for my approximative english
I'm use MVC pattern
With the Data Package Ext4 I can not find how to be informed of the success or failure of a sync my data store ?
ex:
remove : function(cfg) {
this.getAppsStore().on('remove', cfg.callback, cfg.scope);
var store = this.getAppsStore();
store.remove(store.getById(cfg.id));//this send the "remove" event
console.log('removed from the DataStore but not destroyed on server');
this.getAppsStore().sync();
//destroyed on server
},
I want to call "Calback" on "sucess" event of destroy action on the proxy, not the "remove" event of the DataStore.
but in the doc are no events on Oppers Proxy
A+JYT
PS: sorry for my approximative english