Two things, first - I'd use the NetConnection Debugger that ships with
the Flex 1.5 extras to try and get a better understanding of the
structure of the data types being returned...

Also you could try introspecting the object yourself in ActionScript
using for in loops, typeof(), instanceof tests etc. There's also a
ObjectDumper helper method...
try:

trace(mx.data.binding.ObjectDumper.toString(result, false, true,
false));

The public API for this static helper method is:

        public static function toString(obj, showFunctions,
showUndefined, showXMLstructures, maxLineLength, indent)


Secondly, but unrelated, is there any reason why you're using the
.result property on the RemoteObject method directly? I've never liked
this - I'd rather see you register a result and fault handler for the
method and then deal with the results as they are returned
asynchronously.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of dval823
Sent: Friday, May 06, 2005 7:19 PM
To: [email protected]
Subject: [flexcoders] Re: Newbie Question - referencing value in Remote
Object

Tried that with no luck

--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]>
wrote:
> Did you try:
> 
> ro.getCerts.result[i]['field_name']
> 
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of dval823
> Sent: Friday, May 06, 2005 2:50 PM
> To: [email protected]
> Subject: [flexcoders] Newbie Question - referencing value in Remote
> Object
> 
> I have a very simple coldfusion cfc that returns a query.
> 
> The remote object call is set up in flex, and it works.  I can
> populate a grid and a combobox, and display the length of the array:
> 
> Alert(ro.getCerts.result.length)
> 
> What is the syntax to access a single data point within the array.
> 
> I have tried many permutations of 
> 
> ro.getCerts.result[i].field_name
> 


> to no avail.  
> 
> Thanks in advance!
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to