I want to use global variable for my store. I want to know where to declare global variable.
My store is set to autoLoad true. I tried declaring variable in Ext.launch function , but the store is loaded even before the launch function
my store
Code:
Ext.define("myapp.store.Bstore",{ extend:"Ext.data.Store",
config:{
model:"myapp.model.Bmodel",
autoLoad:true,
proxy:{
type:'ajax',
url: myapp.baseURL + '/bulletin/',
reader:{
type:'json',
}
}, }});
My launch function
Code:
launch: function() {
*****
myapp.baseURL = 'http://10.5.82.27:9191/';
****
},