qt4x11
27 Jun 2012, 10:33 AM
Uncaught TypeError: Cannot call method 'read' of undefined
Ext.define.processResponseext-all-debug.js:25872 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
(anonymous function)ext-all-debug.js:26086 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.apply.callbackext-all-debug.js:5283 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.define.onCompleteext-all-debug.js:18241 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.define.onStateChangeext-all-debug.js:18192 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
(anonymous function)ext-all-debug.js:1537 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
JavaScript console is displaying the above error when loading my form. I have traced the source of this error to the loading of the following combobox
, {
xtype : 'combo',
store : Ext.create('Ext.data.Store', {
model : 'Ext.callback.CallbackTimeModel',
root : {
expanded : true
},
proxy : {
type : 'ajax',
url : '/servlet/CallbackTimeServlet?action=getCallbackTimeByCompany'
},
folderSort : true,
autoLoad : true
}),
valueField : 'callTimeThreshold',
value : 0,
displayField : 'callTimeName',
triggerAction : 'all',
editable : false,
name : 'callTime',
itemId : 'callbackReportCallTime',
colspan : 2
}
Basically the combo never loads. I'm not sure how to debug what is 'undefined' during combo loading. I've double checked the proxy url that the combo is pointing to and it returns data fine, so the store should be getting populated. Any suggestions on how to go about debugging this error? Thanks
Ext.define.processResponseext-all-debug.js:25872 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
(anonymous function)ext-all-debug.js:26086 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.apply.callbackext-all-debug.js:5283 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.define.onCompleteext-all-debug.js:18241 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
Ext.define.onStateChangeext-all-debug.js:18192 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
(anonymous function)ext-all-debug.js:1537 (http://10.0.0.10:8005/extjs/ext-all-debug.js)
JavaScript console is displaying the above error when loading my form. I have traced the source of this error to the loading of the following combobox
, {
xtype : 'combo',
store : Ext.create('Ext.data.Store', {
model : 'Ext.callback.CallbackTimeModel',
root : {
expanded : true
},
proxy : {
type : 'ajax',
url : '/servlet/CallbackTimeServlet?action=getCallbackTimeByCompany'
},
folderSort : true,
autoLoad : true
}),
valueField : 'callTimeThreshold',
value : 0,
displayField : 'callTimeName',
triggerAction : 'all',
editable : false,
name : 'callTime',
itemId : 'callbackReportCallTime',
colspan : 2
}
Basically the combo never loads. I'm not sure how to debug what is 'undefined' during combo loading. I've double checked the proxy url that the combo is pointing to and it returns data fine, so the store should be getting populated. Any suggestions on how to go about debugging this error? Thanks