Blog Archive

Object #<Object> has no method 'read' - ExtJs 4 Error

Issue:
Uncaught TypeError: Object #<Object> has no method 'read'
Ext.define.processResponseext-all-debug-w-comments.js:37928
(anonymous function)ext-all-debug-w-comments.js:38468
Ext.apply.callbackext-all-debug-w-comments.js:8404
Ext.define.onCompleteext-all-debug-w-comments.js:30127
Ext.define.onStateChangeext-all-debug-w-comments.js:30076
(anonymous function)

Solution: Please make sure you have defined the models config for the Store in the controller
Ext.define('IN.controller.Items', {
            extend : 'Ext.app.Controller',

            //define the stores
            stores : ['Items'],
            //define the models
            models : ['Item'],
            //define the views
            views : ['item.List', 'item.Edit', 'item.MyNumberField','item.UpperCaseTextField'],

            //special method that is called when your application boots
            init : function() {

..................
..................

2 comments :