You can call methods on the tree via binding by using the observe tag discussed by Alex Ulhmann

On 18/05/2007, at 12:15 PM, Thind, Aman wrote:


Hey Adam,

Maintain the state of the tree in your model and map this state to the tree in your View using Data Binding.

The command changes the state and the bindings refresh your view.

You don't need to explicitly call methods on the tree.

Cheers,
Aman

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of achegedus
Sent: Thursday, May 17, 2007 10:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tree event using cairngorm

Hi Everyone!

I'm trying to write a dynamic tree using cairngorm, and I ran into a problem. I want to be able to expand a node, have it go to my webservice, return the xml and open the node. In the command that is handling the response to the webservice, i need to call the expandItem
method of the tree. And there's the trouble...

How do I call a method for a flex tree from a cairngorm command?

Any suggestions??

Thanks,
Adam


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.



Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((------------This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---------------))

Reply via email to