PDA

View Full Version : Missing: After proper id. please help



johnc847
16 Nov 2010, 10:56 AM
Please help. in IE I only get </html and in firefox its blank and the error console says missing: after property id.

Here is a section of the code thta its referring to. Its pointing to missing on the line of var cb1 = dispForm.getComponent(ConnectionType1);

columnWidth:.50,
layout: 'form',
border:false,
items: [{
id: 'ConnectionQty1',
xtype: 'combo',
mode: 'local',
triggerAction: 'all',
forceSelection: true,
editable: false,
width:400,
fieldLabel: 'Qty',
name: 'qty',
hiddenName: 'qty',
displayField: 'name',
valueField: 'value',
store: new Ext.data.JsonStore({
var cb1 = dispForm.getComponent(ConnectionType1);
var cb2 = dispForm.getComponent(ConnectionQty2);
cb1.on('select', function(cb, row, idx) {
cb2.clearValue();
var cb2StoreData = cb2.getStore().Data;

switch(cb1.value) {
case '1' :
case '2' :
case '3' :
case '4' :
cb2StoreData = [[1, '1'], [2, '2']];
break;
case '5':
cb2StoreData = [[1, '1'], [2, '2'],[3,'3']];
break
}
}, this);
}}