|
|
Home /
Groups /
Adobe Flex
Flex newbie question - debugging a remote object call
Hi,Will Swain 04/03/08 05:53 A On Thu, Apr 3, 2008 at 5:55 AM, Will Swain <will@hothorse.com> wrote:Rick Root 04/03/08 08:17 A also check out the mx:Tracetarget tagStefan Richter 04/03/08 08:56 A or use Service Capture, trace(), Logging API, and/or debug mode on theDouglas Knudsen 04/03/08 09:08 A Excellent. Thanks Douglas and everyone else.Will Swain 04/03/08 09:17 A >Hi,Jason Presley 04/03/08 11:05 A What I have done is just dump the data into a datagrid. Here is some of my code:Jason Presley 04/03/08 11:05 A 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. 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 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 ----- 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 ----- 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 ----- ----- Excess quoted text cut - see Original Post for more ----- >and output it. 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||