access JSON key, val pairs

Nov 21, 2009 at 9:47 PM

FIrst let me say, the FlexBox is awesome!  The JSON I am binding to has this format:

 

var jsonresults = {"results":[
{"id":"ACCOUNTS PAYABLE","name":"2100-00-003","capacct":"true","index":123},
{"id":"OFFICE SUPPLIES","name":"3100-34-555"},
{"id":"EVENTS","name":"5478-44-905"},
{"id":"POSTAGE EXPENSE","name":"2578-34-234"}
],"total":4};

var jsonresults = {"results":[

{"id":"ACCOUNTS PAYABLE","name":"2100-00-003","capacct":"true","index":123},

{"id":"OFFICE SUPPLIES","name":"3100-34-555","capacct":"false","index":456},

],"total":2};

I can easily access the id and name pairs. Is there a way to get a handle on the capacct and index values via the FlexBox OnSelect function?

I need to access the values to write them to hidden fields on the form so they can be saved to a database.

Any help would be greatly appreciated.

Cheers,

Jeff Ronay