Use "dot.down" notation on the result object.

For example:
var oResult:Object = event.result[0];  //maybe just event.result this depends 
on the actual structure of the result object
var sName:String = oResult.name;

Use a result handler function, call it from the result event in the data 
service tag, and in that function, use a debugger to examine the structure of 
your result object if needed.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ???
Sent: Wednesday, November 16, 2005 7:24 PM
To: [email protected]
Subject: [flexcoders] A problem of dataService

hello,

             I have a problem with DataService.When I use RemoteObject to get 
the data from the database,it return a ResultSet type object.But I want to get 
one field of the data object,for example,I want to get the "name" field from 
the database,and use in the Label tag as follow: <mx:Label 
text="Welcome!{theUserName}"/>.How can I do in the mxml file?  
P.S:My english is so poor,so if you can't quiet follow me, forgive me.

  Thanks very much!


                                

        Snail from China
[EMAIL PROTECTED]
          2005-11-17






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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

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