Hi Chris. It sounds like you mostly got this working; are you saying
you're getting stuck on selectedIndex part of it?
But in general ya... I would an mx:RemoteObject, with a method where
upon completion have a result="resultHandler(event.result)" that assigns
the resulting data to a local array.
And then:
<mx:ComboBox dataProvider="{myArray}" labelField="myTitle"/>
Type deal. If I need the comboBox to have it's selectedIndex then to be
set, then I handle that in the resultHandler() (to use the above example).
This might be of help:
http://www.cflex.net/showfiledetails.cfm?ObjectID=111
chris.alvarado wrote:
>good afternoon everyone,
>
>so im finally diving into Flex and im really liking it so far.
>
>ive found some pretty good examples of working with data from remoting
>(specifically Coldfusion). however i havent found any examples of how
>to bind data to something like a combobox.
>
>in Flash with remoting what i would do is dump the resultset from CF
>into a dataset component then bind that component to the combobox and
>set the combobox's labelField property to whatever the name of the
>field from the resultset i wanted to display as the label. then, since
>i always bound the selectedIndex property i could just reference the
>selected item as dataset.items[dataset.selectedIndex].fieldName to get
>whatever data i wanted.
>
>however im not able to replicate this in Flex. how is everyone else
>handling databinding the data returned via remoting?
>
>thanks everyone!
>
>
>
--
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/