Have you tried something like this in a change event handler:
search.participantName= event.target.selectedItem.myValue

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sandip_patil01
Sent: Tuesday, September 20, 2005 2:12 PM
To: [email protected]
Subject: [flexcoders] How to pass selected value from combox

Hi All,

I am still not able to find how to pass value selected from combox 
to my java method.
Here what I done,

I have my combo box populated with data retrived from database as
 <mx:ComboBox id="item" dataProvider="{listInfo}">
where "listInfo" is populated with records from database.
Let say with this I am getting two records displayed in combo box.

Now out of these 2 displayed value I want to pass id of one record 
to my java method.SO how to achive this.

Like whatever values eneter by user in text box I am passing as 

search.participantName=participant.text;

where this "search" is my as object
and i am passing this "search" as my dispatch event as 

dispatchEvent({type:'searchRecords',eventSearchProp:search});

from here I am passing "participant" value.

The same way i wanna to pass value selected from combo box.

So plz help me out.

Thx in advance

 





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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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