Hi,

 I am populating a combobox (say terms from database) now even the
selected id (The data column) is stored in the database. Is there any
easy way to set the selected item using the id or do I need to create
a function which goes thru the dataprovider and then get the selected
index and set it.

My code is as follows

<mx:ComboBox id="terms"
dataProvider="{termsSrv.result.mrTerms.status}" width="150"/>

the result of termsSrv looks like

  <?xml version="1.0" encoding="utf-8" ?> 
  <mrTerms>
  <status label="Net 30" data="1" /> 
  <status label="American Express" data="2" /> 
  </mrTerms>

and I have the selected data as "2" what do I need to do so that the
combobox will selected "American Express"

Regards
Rajesh J





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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


Reply via email to