House of Fusion
Home of the ColdFusion Community

Search flex

November 20, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  Adobe Flex

Flex newbie question - debugging a remote object call

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi,
Will Swain
04/03/08 05:53 A
also check out the mx:Tracetarget tag
Stefan Richter
04/03/08 08:56 A
>Hi,
Jason Presley
04/03/08 11:05 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Swain
04/03/2008 05:53 AM

Hi, Sorry for the noob question. I am calling a cfc via remote object: <mx:RemoteObject     id="dataManager"     showBusyCursor="true"     destination="ColdFusion"     source="cfcs.portfolio">      <mx:method name="getPortfolio" result="returnHandler(event)" fault="Alert.show(event.fault.faultString)"/>      </mx:RemoteObject> I'm assuming that the method name should correspond to the function name that I want to call in the cfc? I don't seem to get any errors, so I'm assuming this call is happening fine, but how do I check? Is there the equivalent of cfdump in Flex? Cheers Will PS, after this, I want to 'loop' over the result of the remote object call and output it.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
04/03/2008 08:17 AM

On Thu, Apr 3, 2008 at 5:55 AM, Will Swain <will@hothorse.com> wrote: > > <mx:method name="getPortfolio" result="returnHandler(event)" > fault="Alert.show(event.fault.faultString)"/> > > I'm assuming that the method name should correspond to the function name > that I want to call in the cfc? Yeah. > I don't seem to get any errors, so I'm assuming this call is happening > fine, > but how do I check? Is there the equivalent of cfdump in Flex? Not really. Run your app in debug mode and put a breakpoint in the returnHandler() function. Then you can inspect the results. Rick

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stefan Richter
04/03/2008 08:56 AM

also check out the mx:Tracetarget tag Regards, Stefan On 3 Apr 2008, at 13:17, Rick Root wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas Knudsen
04/03/2008 09:08 AM

or use Service Capture, trace(), Logging API, and/or debug mode on the server.  Checkout the link below for a preso on debugging: http://adobechats.adobe.acrobat.com/p91186888/   :) DK On Thu, Apr 3, 2008 at 8:51 AM, Stefan Richter <stefan@flashcomguru.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Swain
04/03/2008 09:17 AM

Excellent. Thanks Douglas and everyone else. will or use Service Capture, trace(), Logging API, and/or debug mode on the server.  Checkout the link below for a preso on debugging: http://adobechats.adobe.acrobat.com/p91186888/   :) DK On Thu, Apr 3, 2008 at 8:51 AM, Stefan Richter <stefan@flashcomguru.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jason Presley
04/03/2008 11:05 AM

What I have done is just dump the data into a datagrid.  Here is some of my code:    private function returnHandler(e:ResultEvent):void    {        dgUsers.dataProvider = e.result;    }    <mx:DataGrid id="dgUsers" x="10" y="260" width="643" click="populateFormHandler()" height="164">        <mx:columns>            <mx:DataGridColumn headerText="User ID" dataField="userID" />            <mx:DataGridColumn headerText="User Name" dataField="username" />            <mx:DataGridColumn headerText="First Name" dataField="firstname" />            <mx:DataGridColumn headerText="Last Name" dataField="lastname" />        </mx:columns>    </mx:DataGrid> I have an app that I built to just try to do some of the basics which includes a login and CRUD functionality.  You can download it and hopefully learn from the source code.  http://www.jasonpresley.net/downloads/flexibleapp.zip Hope that helps! Jason ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists