dlbjr
29 Oct 2007, 10:57 AM
Code I am using
new Ext.form.ComboBox({
fieldLabel: 'Project Type',
hiddenName:'ptype',
store: new Ext.data.JsonStore({
proxy: 'task/ProjectTypeList.asp',
root: 'rows',
fields: ['item_id', 'item_desc']
}),
valueField:'item_id',
displayField:'item_desc',
typeAhead: true,
mode: 'remote',
triggerAction: 'all',
emptyText:'Select a type...',
selectOnFocus:true,
width:190
}),
Here is the data returned by 'task/ProjectTypeList.asp'
"rows": [{"item_id": "2007100909205335901","item_desc": "Production"},{"item_id": "2007100909205335902","item_desc": "Safety"}]
The items do not show up in the drop down. Any assistance appreciated.
dlbjr
new Ext.form.ComboBox({
fieldLabel: 'Project Type',
hiddenName:'ptype',
store: new Ext.data.JsonStore({
proxy: 'task/ProjectTypeList.asp',
root: 'rows',
fields: ['item_id', 'item_desc']
}),
valueField:'item_id',
displayField:'item_desc',
typeAhead: true,
mode: 'remote',
triggerAction: 'all',
emptyText:'Select a type...',
selectOnFocus:true,
width:190
}),
Here is the data returned by 'task/ProjectTypeList.asp'
"rows": [{"item_id": "2007100909205335901","item_desc": "Production"},{"item_id": "2007100909205335902","item_desc": "Safety"}]
The items do not show up in the drop down. Any assistance appreciated.
dlbjr