Hello Folks,
While am Working with Extjs using MVVM pattern. I got the following error.
Uncaught TypeError: Cannot read property 'isBufferedStore' of undefined
I got this error in the both ways with cmd or without cmd for application build. I have put the store in the application app.js stores section and i referred the store alias name in my components configured as store:'moduleName.storeName'.
                      
Now this is working fine now.
There is one more case to got the this issue is I Generated the Extjs Application Using the Sencha cmd "MyApplication" and it by default generate the code in one of the section we added grid and referred the store as store:'StoreName' config option.
This store will be available in the store folder. while we test after that we will get this error.
I this case we need put the store in application.js this will creates the store instance
Now we can use store as store: 'EmploymentRoleStore'
It is better to create an alias while we are defining the store.
While am Working with Extjs using MVVM pattern. I got the following error.
Uncaught TypeError: Cannot read property 'isBufferedStore' of undefined
I got this error in the both ways with cmd or without cmd for application build. I have put the store in the application app.js stores section and i referred the store alias name in my components configured as store:'moduleName.storeName'.
   
store: 'EmploymentRole.EmploymentRoleStore'
Now this is working fine now.
There is one more case to got the this issue is I Generated the Extjs Application Using the Sencha cmd "MyApplication" and it by default generate the code in one of the section we added grid and referred the store as store:'StoreName' config option.
This store will be available in the store folder. while we test after that we will get this error.
I this case we need put the store in application.js this will creates the store instance
Ext.define('MyApplication.MainApplication', {
    extend: 'Ext.app.Application',
    name: 'MVVM',
    stores: [
        'EmploymentRoleStore'
    ],
});
 Now we can use store as store: 'EmploymentRoleStore'
It is better to create an alias while we are defining the store.
Ext.define('MyApplication.store.EmploymentRoleStore', {
    alias: 'store.EmploymentRoleStore',
    ...
});
  
No comments:
Post a Comment