I have a combobox in an add window that works, but when I put that same code in a tbar I get an error. Do I need something additional for this to work in the tbar? The error is: TypeError: url is undefined. Thanks for any help.
My add window code:
Here's my tbar code:
My add window code:
Code:
xtype:'combo', id:'add_MTLINE', fieldLabel:'Line', emptyText: 'Select Line', selectOnTab: true, triggerAction: 'all', editable: false, forceSelection:true, valueField: 'LINE', displayField: 'ALPHA4', store: new Ext.data.JsonStore({ url: 'vvcall.pgm', fields: ['LINE', 'ALPHA4'], root: 'LINES', autoLoad: false, baseParams: { action: 'getLines', pgm: 'GETLINE' } })
Code:
xtype:'combo', id:'TPLINE', emptyText: 'Select Line', selectOnTab: true, triggerAction: 'all', editable: false, forceSelection:true, valueField: 'LINE', displayField: 'ALPHA4', store: new Ext.data.JsonStore({ url: 'vvcall.pgm', fields: ['LINE', 'ALPHA4'], root: 'LINES', autoLoad: true, baseParams: { action: 'getLines', pgm: 'GETLINE' } })
Comment