Hi guys
 
just wanted to share , it works fine.
 
all you have to do is add a member to your class that is called label (so you have a getter method called getLabel())
and the rest is magic.
 
Thanks very much Manish
 
 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Monday, April 18, 2005 10:51 PM
To: [email protected]
Subject: Re: [flexcoders] How to populate tree control from web service result (server side java objects)

On 4/18/05, Shlomi Cohen <[EMAIL PROTECTED]> wrote:

> do i have to return an xml string from the webservice or there is a better
> way to map the objects from the result into the tree control.

The top-level object in your tree can be assigned directly to the
Tree's dataProvider property.  If every object has a "label" property,
then that'll be used to the label; otherwise you can specify
a labelField to use another field, or a labelFunction to format the
data the way you want it displayed.  Look out for these properties in
the Tree documentation.

--
[EMAIL PROTECTED]
http://manish.revise.org/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


Yahoo! Groups Links

Reply via email to