Have your ColdFusion WebService return an Array of Structs. In you Flex code on the "result" event handler for the WebService operation take the event.result and will a line like this create your ArrayCollection.
myArrayCollection = event.result as ArrayCollection; Then bind the myArrayCollection to the dataProvider of the DataGrid. Roughly something like: <mx:WebService id="wsSomeService" wsdl="http://localhost:8500/com/renaun/SomeService.cfc?wsdl" useProxy="false" showBusyCursor="true"> <mx:operation name="getItems" result="dpItems = event.result as ArrayCollection;"/> </mx:WebService> <mx:DataGrid dataProvider="{ dpItems }" /> Renaun --- In flexcoders@yahoogroups.com, "Dale Fraser" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm a real beginner, and know CF inside out. So I want to use Flex 2. I've > read a bit online and got a webservice call working displaying the current > time from a cfc. > > > > Now I have a cfc generated using the wizard which is a database related one, > not sure what to do from here. I seems to generate an array of objects, and > each object defines a row in the table, this all makes sense. > > > > But how do get this into a flex data grid. > > > > I assume I need to loop over the array and populate the data grid using an > Action Script function. Conceptually simple, but I'm hoping people can > explain the best way to do this and perhaps post a simple sample that takes > a table into a data grid. > > > > PS: I'd rather not use the full generate wizards available, I'd rather learn > how to do it line by line on the Flex side. > > Regards > Dale Fraser > > <http://dale.fraser.id.au/> http://dale.fraser.id.au > -- 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/