Re: [flexcoders] tree event using cairngorm
On Thursday 17 May 2007, achegedus wrote: How do I call a method for a flex tree from a cairngorm command? We pass the tree into the Event, and save a copy of this in the Command before calling the Delegate. When it returns, you've got the tree to hand then. -- Tom Chiverton Helping to simultaneously optimize network m-commerce on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[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
RE: [flexcoders] tree event using cairngorm
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.
Re: [flexcoders] tree event using cairngorm
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.---))