The question was, who should fire that event ? The date change view fires the "change date" event and a command updates the model for the date..
Who should then fire the "get new data" event, the commmand, the main.xml, I think its some "central" part of the app that should do that... Grant. ........................................... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PROTECTED] > http://www.bluetube.com/bti -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Sunday, February 18, 2007 11:27 AM To: [email protected] Subject: RE: [flexcoders] cairngorm event that will affect all models, where to put the logic. When the date changes, fire off the same event that will execute the command that got you data in the first place, should be simple. Dimitrios Gianninas Optimal Payments Inc. -----Original Message----- From: [email protected] on behalf of Grant Davies Sent: Sat 2/17/2007 10:34 PM To: [email protected] Subject: [flexcoders] cairngorm event that will affect all models, where to put the logic. Hey guys, have a cairngorm architecture question. I have a dashboard where various charts are based on a global date. I have my datemodel and commands etc that update the datemodel based on the date event being fired. What I also need to happen is if the date changes, I need to get fresh data for the charts, the charts are attached to models for their specific type of data. so when a date change occurs, i need to go and get the relevant data for the charts , which updates their models, I'm not sure where i should subscribe to this change of date since I don't want to make it chart specific. Should it be in the overall application controller, in the main.mxml file or what ? this event is more like a "if the date changes referesh all the data for all the models" Grant ........................................... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PROTECTED] > http://www.bluetube.com/bti <http://www.bluetube.com/bti> A Tribal > Chicken Designs Affiliate <http://www.tribalchicken.com/>

