[flexcoders] How to assign a data provider to a combo box

2005-08-04 Thread terry_hrtn
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); } Yahoo! Groups Sponsor

RE: [flexcoders] How to assign a data provider to a combo box

2005-08-04 Thread João Fernandes
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

Re: [flexcoders] How to assign a data provider to a combo box

2005-08-04 Thread Manish Jethani
On 8/4/05, terry_hrtn [EMAIL PROTECTED] wrote: Is there a way to assign a data provider to combo box at run time using action script instead of mxml? Yups, simply set the dataProvider property. comboBox.dataProvider = newDataProvider; Manish Yahoo! Groups Sponsor