pex
04-24-2007, 09:23 AM
I have a non associative array that is generated on the server and encoded into json, it looks like this:
{"total":60,"data":[{"BO":"You best believe","FAN":"Fantasy","Noo":"Number" ....
etc.etc.
Now I want to use this data in a combobox, so for the reader I use:
reader: new Ext.data.JsonReader({
root: 'data',
totalProperty: 'total'
}, [
{name: 0, mapping: 0},
{name: 1, mapping: 1}
])
The mapping doesn't seem to work though, any ideas on how I can access the first and second index from the json array?
{"total":60,"data":[{"BO":"You best believe","FAN":"Fantasy","Noo":"Number" ....
etc.etc.
Now I want to use this data in a combobox, so for the reader I use:
reader: new Ext.data.JsonReader({
root: 'data',
totalProperty: 'total'
}, [
{name: 0, mapping: 0},
{name: 1, mapping: 1}
])
The mapping doesn't seem to work though, any ideas on how I can access the first and second index from the json array?