bstras21
1 Dec 2011, 1:38 PM
Hello I am trying to sync my ajax store to my localStorage. I can see that the key gets set but I can't load any data.
onLaunch: function() {
languageStore = this.getLanguageStoreStore();
languageStore.load({
scope : this,
callback: function(records, operation, success) {
var newPunchStore = Ext.create('Ext.data.Store', {
model: 'myApp.model.LanguageModel',
storeId: 'myOffline',
proxy: {
type: 'localstorage',
id: 'hopethisworks',
reader: {
root: 'data',
idProperty: 'ID',
successProperty: 'result',
}
}
});
newPunchStore.load(languageStore);
newPunchStore.sync();
}
})
},
onLaunch: function() {
languageStore = this.getLanguageStoreStore();
languageStore.load({
scope : this,
callback: function(records, operation, success) {
var newPunchStore = Ext.create('Ext.data.Store', {
model: 'myApp.model.LanguageModel',
storeId: 'myOffline',
proxy: {
type: 'localstorage',
id: 'hopethisworks',
reader: {
root: 'data',
idProperty: 'ID',
successProperty: 'result',
}
}
});
newPunchStore.load(languageStore);
newPunchStore.sync();
}
})
},