Shouldn’t you use RemoteObject instead of httpService?

If you want to use HTTPService you should invoke it as a webservice.

If you’re using CFMX7 I would advise you to use RemoteObjects and the new gateway so you can have your cfc objects translated directly to AS3 classes.

 

João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bacardi Bryant
Sent: quinta-feira, 6 de Julho de 2006 15:46
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with CFC's

 

Oops, as you can see, I’m new to the list as well. The problem is the results ARE NOT being loaded into the datagrid.

 

Thanks,

 

Bacardi Bryant

regActionTM Programmer

[EMAIL PROTECTED]

 

International Environmental Associates

ph 713.623.5099 ext. 107

fx 713.623.5050

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bacardi Bryant
Sent: Thursday, July 06, 2006 9:37 AM
To: flexcoders@yahoogroups.com
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

 

__._,_.___

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




__,_._,___

Reply via email to