There's a better way to call the CFC that does the needed conversions automatically... check out the source code for this (right-click, and hit view source):
 
 
Specifically, look at the <mx:RemoteObject> tag.
 
Shan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bacardi Bryant
Sent: Thursday, July 06, 2006 9:37 AM
To: [email protected]
Subject: [flexcoders] Working with CFC's

Hi,

I’m a complete newbie to flex, but have been charged with building a dashboard in flex. Our app. is ColdFusion and I would like to do some simple stuff like output query results from cfc in dashboard.

Kinda following tutorial I wrote:

               

<mx:Application xmlns:mx=http://www.adobe.com/2006/mxml

 layout="absolute" fillColors="[#2b5e9b, #ffffff]" viewSourceURL="srcview/index.html">

               

               

<mx:HTTPService id="feedRequest"

                                url=""

                                useProxy="false" />

<mx:Canvas label="MyInfo" width="100%" height="100%" activate="feedRequest.send()">

<mx:DataGrid x="0" y="0" width="228" id="dgStories" dataProvider="{feedRequest.lastResult.name}”

height="338" editable="false" enabled="true">

However the result set is populated in the grid.

Is there something special that I should do? Can flex parse a cfquery object, or should the cfc output xml?

Please help.

Thanks,

Bacardi Bryant

regActionTM Programmer

International Environmental Associates


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 7/4/2006

__._,_.___

--
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




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 7/4/2006

Reply via email to