Alert.show(cvcompanyValue.selectedItem.data);

selectedItem 'holds' the complete object in the dataprovider that is selected.  This is a really neat uber kewl treat, eh?

Ironically a coworker asked me the same question minutes ago.


DK

On 8/23/06, michrx7 <[EMAIL PROTECTED]> wrote:
Ok, so I've created a combo box with id cvcompanyValue, then I call my
coldfusion cfc and return a query with two fields "data" and "label".
Data holding a list of company IDs and label holding the corresponding
company names. Then I set the combobox provider to the result and
everything populates as it should.

I can easily return the selected label in the combobox using:

Alert.show(cvcompanyValue.selectedLabel.valueOf ());

But, how do I return the data of the selected combobox (my original
IDs)? Do I have to sort through the ArrayCollection until I find the
matching label? I can't imagine there isn't something like:

Alert.show(cvcompanyValue.selectedData.valueOf());

Help please!





--
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/







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to