[flexcoders] Flex / Coldfusion / Combobox / Retrieve selected data value

2006-08-23 Thread michrx7
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/
 





Re: [flexcoders] Flex / Coldfusion / Combobox / Retrieve selected data value

2006-08-23 Thread Douglas Knudsen



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.
DKOn 8/23/06, michrx7 [EMAIL PROTECTED] wrote:
Ok, so I've created a combo box with id cvcompanyValue, then I call mycoldfusion 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 andeverything 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 originalIDs)? Do I have to sort through the ArrayCollection until I find thematching label? I can't imagine there isn't something like:
Alert.show(cvcompanyValue.selectedData.valueOf());Help please!--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 Knudsenhttp://www.cubicleman.comthis 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Flex / Coldfusion / Combobox / Retrieve selected data value

2006-08-23 Thread Tariq Ahmed






How about cvcompanyValue.selectedItem.data

michrx7 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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___