Interesting that i got an article from a co worker recently about flex not for every CF developer Viewpoint: Not Every ColdFusion Developer Should Be A Flex Developer".
Then another coworker asked if i had any flex books, i explained that i have been relying heavily on other flex/cf blogs to find answers to questions as i would encounter pushing the flex envelope.
He said something about wanting to connect a record set to a datagrid, which made me think a little more critically about the complexities of flex. Was he getting his recordset from an XML file, from a web service (wsdl) or was he getting a query set returned via a remoting call. Probably the latter, I did not ask. I have experimented with each technique and have found the remoting, once it was configured properly, to be the cleanest and preferred method of getting data from the back end. Since i am using ColdFusion, there is lots of detailed help about using remoting to call a CFC that returns the familiar query type and assigning the result to an ActionScript variable of type ArrayCollection. This allows a fairly painless handoff of data to then be displayed to a datagrid or other MXML control.
Sample code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment