我得到空当我尝试获取来自控制器的装店。 负载是一次成功的了。 我验证。
我店里如下。
Ext.define('GridApp.store.schemedatastore',{
extend: 'Ext.data.Store',
model: 'GridApp.model.schemedatamodel',
autoLoad: true,
alias: 'store.schemedata',
storeId: 'schemedatastoreid',
constructor:function(){
console.log('Calling parent');
this.callParent(arguments);
},
listeners: {
load:function(store,records,isSuccessful){
if(isSuccessful){
console.log('Load successful');
}
console.log(records[0].get('name'));
console.log('scheme Data store loaded too.');
},
}
});
在我的控制,我添加喜欢,
stores: ['schemesstore',
'schemedatastore'],
我试图访问这些左右逢源控制器,
Ext.getStore('schemedatastoreid');
其返回null和this.getschemedatastoreStore();
它说,这是在控制器未定义功能。
我缺少的东西在这里?