This example uses a mvc framework but dont get bogged down with the complexities, the methods for what you need to do are clear :)
http://trac.puremvc.org/Demo_AS3_Flex_CF_QueryCFC cheers Simon newtriks.com On 29 May 2008, at 18:47, Andrew Peterson wrote: > Hello, > > I would like to build a CRUD app using Flex and CF. Though I've done > the CF/Flex Wizard thingy, I really wanna see what's going on by > writing the code myself (with the help of you all, it seems :-). > > I can write the cfc, and i can call the cfc, and I can even dump the > cfc into a datagrid. That's really simple stuff. You don't need to > do an arraycollection or anything. However, I'm pretty sure you'd > need to do an arraycollection for textInput tags. Soo, import > ArrayCollection class, create bindable var myArray, and then what? > Can anyone share how this is done? > > Below is the mxml I use that builds the datagrid. Can someone take > this datagrid and pop those fields into textinput fields? I know > it's asking a lot, but this will go a long way to getting me up and > running. > > The CFC-to-Datagrid code: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application > xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > creationComplete="conn.getData();" > > > > <mx:RemoteObject id="conn" > destination="ColdFusion" > source="Flex528.UGTV.src.myCFC" > result="orderGrid.dataProvider=event.result;" > showBusyCursor="true" > /> > > <mx:DataGrid > id="orderGrid" > top="100" > left="10" > right="10" > bottom="10" > > > > <mx:columns> > <mx:DataGridColumn headerText="Code" width="50" > dataField="Code"/> > <mx:DataGridColumn headerText="LicenseeName" width="50" > dataField="LicenseeName"/> > <mx:DataGridColumn headerText="BusinessName" width="50" > dataField="BusinessName"/> > <mx:DataGridColumn headerText="FY" width="50" dataField="FY"/> > </mx:columns> > > </mx:DataGrid> > > </mx:Application> > > Thanks in advance. My next post will likely be titled, "Data from > TextInput to CFC (insert/update query)" :-) > > Sincerely, > Andrew > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5268 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
