Getting a loaded store in extjs4

我是研究僧i 提交于 2019-12-05 20:18:51

Try any of these:

this.getSchemedatastoreStore()

// the non-alias version of getStore    
Ext.StoreManager.lookup('schemedatastoreid') 

// in case MVC behavior overrides your storeId config
Ext.StoreManager.lookup('schemedatastore') 

MVC pattern will give your store the store class name as a store ID automatically if you don't define your own.

So if you delete your storeId: 'schemedatastoreid' config then you will automatically get a storeId of schemedatastore. I don't normally give MVC stores a seperate storeId config so I don't know if it causes a conflict somewhere. I also don't normally give my stores an alias either, that might be causing the getStore function some difficulties too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!