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 :)
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)HiThe 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 thisfunction myLabelFunc(item):String {
var type=typeof item; // always return {Object}return item._???????
}how do i know which properties the variable 'item' has ?thanksShlomi
On 4/18/05, Shlomi Cohen <[EMAIL PROTECTED]> wrote:
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)
> 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
- 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 the Yahoo! Terms of Service.