PDA

View Full Version : TypeError: 'undefined' is not a function (evaluating doItemLayoutAdd)



bharatkaushik
19 Nov 2013, 7:22 AM
I have defined my views as follows:

Ext.define('TestApp.view.Main', {
extend: 'Ext.navigation.View',
xtype: 'mainview',
requires: [
'TestApp.view.AisleMainView'
],
config: {
items: [
{ xtype: 'aislemain' }
]
}
});


The aisleMainview is as follows:

Ext.define('TestApp.view.AisleMainView', {
extend: 'Ext.Panel',
requires: [
'TestApp.view.Aisles',
'TestApp.view.Details'
],
xtype: 'aislemain',
layout: 'vbox',
config: {

items: [{
xtype: 'aisles',
flex: 2
}, {
xtype: 'details',
flex: 1
}]
}


});

I have defined aisles and details properly. when I run it on the device (Ipad) and view logs in the safari browser, I get the following error message:

TypeError: 'undefined' is not a function (evaluating 'b.onItemAdd(c,a)')

can anyone let me know what I am doing wrong ?

Thanks!

fmoseley
22 Nov 2013, 2:36 PM
Nothing stands out in the information you have provided. What do the definitions look like for the following views 'TestApp.view.Aisles', "TestApp.view.Details'. Please use code tags.