RE: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Battershall, Jeff
Sandip, The way to get the data associated with the currently selected item is item.selectedItem.data If that data is simple, you can pass it as-is, if not you'd access it according to the datatype of the data such as data[0] or data[firstName] or what-have-you. You'd bind your web service

RE: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Gordon Smith
The selected item in the ComboBox is item.selectedItem. Do you know about the ASDoc? It tells you about the properties, methods, events, styles, and effects of every component. There should be a link to it at Start Macromedia Macromedia Flex

Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
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

Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Sandip Patil
Thx Oscar, For your response. I know this. 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

Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
Something like this? mx:Label text=Enter data / mx:TextInput id=txt_1/ mx:ComboBox id=item dataProvider={listInfo} change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata, {txt_1.text}/ -Oscar.

RE: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Gordon Smith
@yahoogroups.com Subject: Re: [flexcoders] How to pass value selected from combo box to my Java class method Thx Oscar, For your response. I know this. But along with this value selected from combo box i also want to pass whatever values User enter in text box