kotecha_rohit
10-30-2009, 04:08 PM
Hi All,
I am getting list of java objects from database. which is list of city.
I have created one action script file City which includes cityId , cityName.
Now i want to map that java city object list to actionscript list but i am not getting how to do this.
Below is code :
public var cityList:ArrayCollection;
private function cityListHandler(event:ResultEvent):void{
cityList = event.result as ArrayCollection;
addContForm.cityList.dataProvider = cityList as City;
addContForm.cityList.labelField = "cityName";
}
In above code addContForm is Form component. and cityList is combobox.
I want to fill comobobox dynamically based on event.
Any help would be greatly appreciated.
Thanks and regards,
Rohit kotecha.
I am getting list of java objects from database. which is list of city.
I have created one action script file City which includes cityId , cityName.
Now i want to map that java city object list to actionscript list but i am not getting how to do this.
Below is code :
public var cityList:ArrayCollection;
private function cityListHandler(event:ResultEvent):void{
cityList = event.result as ArrayCollection;
addContForm.cityList.dataProvider = cityList as City;
addContForm.cityList.labelField = "cityName";
}
In above code addContForm is Form component. and cityList is combobox.
I want to fill comobobox dynamically based on event.
Any help would be greatly appreciated.
Thanks and regards,
Rohit kotecha.