Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Tom Chiverton
On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the controller 
does with that is it's own buisness.

-- 
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



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/
 


RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Dimitrios Gianninas

Exactly :) 

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Monday, February 19, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models, where to 
put the logic.

On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the controller 
does with that is it's own buisness.

--
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



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




-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



--
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/
 


RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
Ok... 

The controller should listen for the data change event and then dispatch
the get other related data ?  This should be in the controller which
right now just maps an event to a command and does not other
processing...

?

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Monday, February 19, 2007 8:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models,
where to put the logic.


Exactly :) 

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get
data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the
controller does with that is it's own buisness.

--
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Tom Chiverton
On Monday 19 Feb 2007, Grant Davies wrote:
 Ok...

 The controller should listen for the data change event and then dispatch
 the get other related data ?  This should be in the controller which
 right now just maps an event to a command and does not other
 processing...

No, the controller does what it does now- listens for the data change and 
invokes a command.
The command however, can then dispatch 'get other data'.

-- 
Tom Chiverton
Helping to continually orchestrate dot-com services



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/
 


RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
That's how I did it :)  glad I put it in the correct place :)

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 11:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Grant Davies wrote:
 Ok...

 The controller should listen for the data change event and then 
 dispatch the get other related data ?  This should be in the 
 controller which right now just maps an event to a command and does 
 not other processing...

No, the controller does what it does now- listens for the data change
and invokes a command.
The command however, can then dispatch 'get other data'.

--
Tom Chiverton
Helping to continually orchestrate dot-com services



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





RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Dimitrios Gianninas
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: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
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/ 

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

winmail.dat

RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Grant Davies
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:27 AM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
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/

 



Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Bjorn Schultheiss
Does it require the first event's result handler to be called before  
firing the get new data event?



On 19/02/2007, at 3:42 AM, Grant Davies wrote:


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: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On

Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:27 AM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
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/







RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Dimitrios Gianninas
the part of the app that holds the date control...

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sun 2/18/2007 11:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models, where to 
put the logic.
 
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:27 AM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
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/

 


-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

winmail.dat

Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Paul Andrews
Why should the part of the app with the date control know that a get data
event is required?

Paul

- Original Message - 
From: Dimitrios Gianninas [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, February 18, 2007 9:38 PM
Subject: RE: [flexcoders] cairngorm event that will affect all models, where
to put the logic.


the part of the app that holds the date control...

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sun 2/18/2007 11:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models, where
to put the logic.

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:27 AM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
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/




-- 
WARNING
---
This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient.  No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message.  If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful.  If you have received this e-mail in
error, please notify the sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé.  L'expéditeur original ne renonce à
aucun privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation.  Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système.  La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux.  Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.



--
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