I am returning an array from my cfc, that holds data that I need to
use to populate a combobox.
I am returing the array objects NAME and ID from my cfc, I am trying
to assign the return object NAME as the label of the combobox and
assign the return object ID as the data for the combo box.
this is the code I am trying, but I does not populate the combo box.
The trace works fine, and I can Alert.show both retuned array objects.
So I know I am geting hte correct data. I just cant seem to figure out
how to populate the combobox.
Can someone give me a bit of insight as how to do this.
trace(result.length);
for (var i:Number = 0; i < result.length; i++) {
branchID.dataProvider.addItem({label:result[i].NAME.Column1,
data:result[i].ID.Column2});
}
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/