I'm trying to load two stores at one time. I've done this in previous releases but I can't seem to get it to work now. The response does show both stores are there, so it appears the vvOut_execSQLtoJSON procedures are working fine. On the front end I do the following:
onStoreLoad: function(store, records, successful, operation, eOpts) {
In doing some research, I found I might need a property of keepRawData: true in the reader object. I tried that too but no change.
The onStoreLoad function is inside the store definition. When I do a this.getStore('Contracts').load() it returns the data for contracts and the other store I'm trying to load at the same time (Sgslshsts). I see the records in the console but they are not loading to the grid. When I console.log the Sgslshsts store in the function after the loadRawData it's empty.
Any ideas?
onStoreLoad: function(store, records, successful, operation, eOpts) {
if(successful === true){
var sg = Ext.getStore('Sgslshsts');
sg.loadRawData(sg.getProxy().getReader().rawData);
sg.loadRawData(sg.getProxy().getReader().rawData);
}
}In doing some research, I found I might need a property of keepRawData: true in the reader object. I tried that too but no change.
The onStoreLoad function is inside the store definition. When I do a this.getStore('Contracts').load() it returns the data for contracts and the other store I'm trying to load at the same time (Sgslshsts). I see the records in the console but they are not loading to the grid. When I console.log the Sgslshsts store in the function after the loadRawData it's empty.
Any ideas?
Comment