<mx:DataGrid dataProvider="{searchResultAC}"> <mx:columns > <mx:DataGridColumn headerText="Name" dataField="content" width="300"/> </mx:columns> </mx:DataGrid>
I need to create a data table in search widget to show all the fields of search result, e.g., a list or DataGrid. When I tried to use the searchResultAC which is an ArrayCollection, it seems it has the following fields: content, geometry, graphic, link, point, symbol and title. But I need to output the data into my datagrid, so that I can show all the fields in my datagrid. <mx:DataGrid dataProvider="{searchResultAC}"> <mx:columns > <mx:DataGridColumn headerText="Name" dataField="content" width="300"/> </mx:columns> </mx:DataGrid> But right now, if I set the �??show up�?� fields from SearchWidget_Louisville.mxml, all the fields go to content as a whole part. How do I separate them and show them in my datagrid? Thanks a lot!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.