Hi All ,
I was trying to get an object from backend which inturn consists of several object and I was trying to filter the object and assing it to the combobox , But I was getting [object object] .Can somebody please look at the code and let me know where it went wrong.
public function init():void {
measureTypesList = model.Lookups.getInstance().measureTypesList;
measureTypesList.filterFunction = measureTypeFilter;
measureTypesList.refresh();
measureTypesListCombo.dataProvider = measureTypesList;
invalidateProperties();
measureTypesList.dispatchEvent(new CollectionEvent("COLLECTION_CHANGE"));
}
private function measureTypeFilter(item:Object):String
{
trace(" The Value of Measure Type Filter IS "+item.MEASURE_TYPE);
return item.MEASURE_TYPE;
}
<mx:ComboBox id="measureTypesListCombo" width="200" />
object structure is like object
[ object[1] - which inturn consists of MEASURE_ID and something like that ] .There would be several objects like this .
THANKS , SUDEEP