I have a project that has two existing Stores. Now when I try to add a third Store, it doesn't seem to get added to the project when it is deployed. I must be missing a step. My Store is defined as such...
Code:
Ext.define('Honeylogue.store.RegisterAccount', {
extend: 'Ext.data.Store',
config: {
clearOnPageLoad: false,
storeId: 'RegisterAccount',
proxy: {
type: 'ajax',
url: 'https://???.appspot.com/api/RegisterAccount',
reader: {
type: 'json'
}
},
fields: [
{
name: 'accountId',
type: 'string'
}
]
}
});
When I try to access the Store with this code it returns undefined.
Code:
var store = Ext.StoreMgr.get("RegisterAccount");
When I look at the code for Application, I see the store listed.
Code:
Ext.application({
models: [
'Settings',
'Account'
],
stores: [
'AccountForDevice',
'SettingsStore',
'RegisterAccount'
],
When I deploy the project and open in Chrome and inspect the page, the designer.js file does not include a reference to the Store.
Code:
Ext.application({
models: [
'Settings',
'Account'
],
stores: [
'AccountForDevice',
'SettingsStore'
],
An I missing some step? The only difference between this new Store and the existing ones is the new Store has fields defined in it instead of being linked to a Model.