Hi, I just upgraded from beta 3 to flex builder 2 and i have following issue that i couldn't resolve. So looking for some pointers, i'm sure some of you bumped into this issue.
I have a datagrid, and i'm filling it with the data that is received through HTTPService with resultFormat "e4x". In beta, i had to convert the response to ArrayCollection and use it as dataprovider for the datagrid. The same did not work with flex builder 2. The example in help system used XMLList, so i tried converting the response to XMLList but i still have issues. Nothing is displayed in the grid. Can one of you send me an example that uses HTTPService to get the data and populate into datagrid ? Thanks. Here is my example: var http1:HTTPService = new HTTPService(); http1.resultFormat = "e4x"; http1.url = "myData.xml"; http1.addEventListener("result", process_Response); http1.send(); public var XML_gridAlarms:XMLList; public function process_Response(event:Event):void { XML_gridAlarms = XMLList(event.target.lastResult.alarms); } <mx:DataGrid x="5" y="5" width="100%" height="100%" id="gridAlarms" alternatingItemColors="[#ffffff, #c4d7db]" editable="true" showDataTips="true" dataProvider="{XML_gridAlarms}"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="Column 1" dataField="identifier"/> <mx:DataGridColumn headerText="Column 2" dataField="date_time"/> <mx:DataGridColumn headerText="Column 3" dataField="remedy_ticket_id"/> <mx:DataGridColumn headerText="Column 4" dataField="priority"/> <mx:DataGridColumn headerText="Column 5" dataField="status"/> <mx:DataGridColumn headerText="Column 6" dataField="owner"/> <mx:DataGridColumn headerText="Column 7" dataField="comment"/> </mx:Array> </mx:columns> </mx:DataGrid> Sathish Pottavathini -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/