> I know this.
But you said "I want to pass value selected from combo box"
and you didn't say anything about a text box. You have to ask the right
question to get the right answer. :-)
If you have a TextInput control, you can get what the user
has entered by getting is 'text' property. As I said in my previous reply, the
ASDoc describes the properties of every component. Did you look up the
properties of TextInput?
- Gordon
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sandip Patil
Sent: Friday, September 16, 2005
11:51 AM
To: [email protected]
Subject: Re: [flexcoders] How to
pass value selected from combo box to my Java class method
But along with this value selected from combo box i
also want to pass whatever values User enter in text box.
Here what I all want it is,
Suppse I have text box and combo box.
When user enter something in text box & also
select value from combo box(which is already populated with data).I want both
these valus to pass my Java class's another method.
Assuming that you already
have a RemoteObject to call your Java Class. This
is what I would do:
<mx:ComboBox id="item"
dataProvider="{listInfo}"
change="myRemoteObject.getMyDataFromJava(item.selectedItem.mydata)/>
where mydata is the attribute name in
listInfo and which you wanto to
send to Java.
You should have a resultHandler to catch
the myRemoteObject.result, which
then you can use as a Dataprovider for another
control.
-Oscar.
"sandip_patil01"
To:
[email protected]
<[EMAIL PROTECTED]>
cc:
Sent
by:
Subject: [flexcoders] How to pass value selected from combo box to my
Java
[email protected]
class
method
09/16/2005 02:16
PM
Please respond
to
flexcoders
Hi all,
Can anybody tell me how to pass value selected
from combo box to my
service class method.
Here what I want is depending on the parameter
passed to method the
method should fetch records from database.
In this case I want to pass value selected from
combo box to my java
class method.So how I can achive this.
My code is ,
<mx:ComboBox id="item"
dataProvider="{listInfo}"/>
where this listInfo contains some data.
Now I want to pass one selected value from this
data to my java
class method sothat accordingly I can fire my
select query depending
on the value passed.
So can anybody please help me out.
Thanks in advance.
Sandip Patil
--
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
---------------------------------------------------------------------------
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---------------------------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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
YAHOO! GROUPS LINKS