Hi Guys
 
Thanks , but i already saw this one , and frankly its not enough , its only talks about primitive types and say that if you have complex object you need to write AS code for it (which will be discovered automatically).
 
Now this one is important - There is a property of a node item that is called "backingObject"
macromedia don't have any documentation on it (Why ??) i found it using  the debugger.
this object holds all the members of the complex objects , so you can refere them as something like this
 
node.backingObject.java_member_name
 
Have fun with it
 
Shlomi
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
Sent: Tuesday, April 19, 2005 16:40
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to populate tree control from web service result (server side java objects)

Sorry,
Check the " Developing Macromedia Flex Applications " documentation i mean :)
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000778.htm
 
Dirk.
-----Original Message-----
From: Dirk Eismann
Sent: Tuesday, April 19, 2005 3:40 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] How to populate tree control from web service result (server side java objects)

Check the "" documentation:
 
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Shlomi Cohen
Sent: Tuesday, April 19, 2005 3:20 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] How to populate tree control from web service result (server side java objects)

Hi
 
The label in the tree shows fine , but trying to use the labelFunction was a little bit confusing.
how ActionScript map my Java objects to AS objects , ? can someone send a GOOD article about this?
 
if i have a function that get a node like this
 
   function myLabelFunc(item):String {
      
        var type=typeof item; // always return {Object}
        return item._???????
       }
how do i know which properties the variable 'item' has ?
 
thanks
 
Shlomi
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Monday, April 18, 2005 22:51
To: flexcoders@yahoogroups.com
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
______________________________________________________________________

______________________________________________________________________
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