PDA

View Full Version : need assistance



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

jay@moduscreate.com
29 Oct 2007, 12:03 PM
try




{"rows": [{"item_id": "2007100909205335901","item_desc": "Production"},{"item_id": "2007100909205335902","item_desc": "Safety"}]}

dlbjr
30 Oct 2007, 4:42 AM
Still the same

jay@moduscreate.com
30 Oct 2007, 4:59 AM
change proxy to url

dlbjr
30 Oct 2007, 5:05 AM
Still the same - no data returned - no errors

dlbjr
30 Oct 2007, 5:06 AM
Got it working - combining the two suggestions

Thanks!