Expand my Community achievements bar.

Not able to populate data in the combo box

Avatar

Level 1
Hi Guys,



I m new to flex development and I want to populate the data
coming from the databasein the combobox.I am able to get the length
.but not able to populate the data.

Can anyone helpme out?



The code is below:

The data displayed in the combox box is displayed as
[object],[object] etc.I m sure that the data is coming from the
database and its not populated in the combo box.any help is
appreciated.

private function getParkinfo(event:ResultEvent):void

{ Alert.show(event.result.length.toString());



countries.dataProvider = event.result;





}

<mx:ComboBox id="countries" />

1 Reply

Avatar

Level 1
What does the data look like in the result? Is it XML? Post a
sample of it.