Hello, I'm trying to populate a datagrid with data from a web service. I do not know what I'm doing wrong please help. Everything compiles but nothing is populated in the grid.
Here's my CFC Code <cfcomponent> <cffunction name="getData" access="remote" returntype="query"> <cfquery name="ELogs" datasource="Error"> SELECT * from ErrorLog </cfquery> <cfreturn ELogs> </cffunction> </cfcomponent> Here's my Flex Code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; [Bindable] private var myData:ArrayCollection; private function resultHandler (event:ResultEvent):void{ myData = event.result as ArrayCollection } ]]> </mx:Script> <mx:WebService id="myService" wsdl="http://www.hawaiihotels.com/WSTest/Simple1.cfc?wsdl" load="myService.getData();" result="resultHandler(event)"/> <mx:DataGrid dataProvider="{myData}"/> </mx:Application> Thanks Davide -- 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/