Hi, I am using one java method returning ArrayList which contains Map objects. java method:
public List fun3() { List ar = new ArrayList<Map>(); Map m=new HashMap(); m.put("Operation","New Account"); m.put("Status","Opened"); m.put("Count","50"); m.put("Urgent","true"); ar.add(m); Map m1=new HashMap(); m1.put("Operation","New Account"); m1.put("Status","InProgress"); m1.put("Count","25"); m1.put("Urgent","false"); ar.add(m1); Map m2=new HashMap(); m2.put("Operation","AccountUpdates"); m2.put("Status","Updates"); m2.put("Count","100"); m2.put("Urgent","false"); ar.add(m2); return ar; } then i create remote object and call this method in flex it is also returning data. But i want to group the data by operation field .I tried the following code but it doesn't work. <mx:AdvancedDataGrid id="myADG" width="25%" height="100%" initialize="gc.refresh();" showHeaders="false" itemClick="getnode()"> <mx:dataProvider> <mx:GroupingCollection id="gc" source="{Arr}"> <mx:grouping> <mx:Grouping > <mx:GroupingField name="Operation"/> </mx:Grouping> </mx:grouping> </mx:GroupingCollection> </mx:dataProvider> <mx:columns> <mx:AdvancedDataGridColumn dataField="Status" width="200"/> <mx:AdvancedDataGridColumn dataField="Count"/> <mx:AdvancedDataGridColumn dataField="Urgent" width="25" itemRenderer="rend"/> </mx:columns> </mx:AdvancedDataGrid> If anybody knows the solution please reply Regards, Pon