I have a store defined as follows:
Code:
Ext.define('ATMgo.store.Cases', {
extend: 'Ext.data.Store',
storeId: 'casesStore',
alias: 'store.cases',
requires: [
'ATMgo.model.Cases'
],
autoLoad: true,
model: 'ATMgo.model.Cases',
proxy: {
type: 'memory'
}
});
In Sencha Touch, stores are automatically created, so that after:
Code:
var store = Ext.getStore('casesStore');
store has a reference to the store. In Ext, I seem to have to put:
Code:
Ext.create('ATMgo.store.Cases', {});
to make the store exist, otherwise after the getStore above, store remains undefined.
Am I missing something that automatically creates the store?