Terry,

 

What you can do is to assign a result event to your webservice method and then bind the result to the combo box dataprovider.

 

  <mx:WebService wsdl="YourWebServiceUrl " id="MyWebService ">

        <mx:operation name="MyFunction" result=”someFunction(event)”/>

      </mx:WebService>

 

<mx:Script>

<![CDATA[

            function someFunction(event){

                        mycombo.dataProvider = event.result;

            }

]]>

</mx:Script>

 

 

João Fernandes

Secção de Desenvolvimento

Departamento de Informática


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of terry_hrtn
Sent: quinta-feira, 4 de Agosto de 2005 16:32
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to assign a data provider to a combo box

 

Is there a way to assign a data provider to combo box at run time using
action script instead of mxml?

I've tried:
function setCombo(){
      MyWebService.MyFunction.send();
      MyComboBox.setDataProvider(MyWebService.MyFunction.result);
}







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




Reply via email to