PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: mark_ellul on April 04, 2008, 09:54:27



Title: Same Command with 2 Different Notifications?
Post by: mark_ellul on April 04, 2008, 09:54:27
Hi,

I am developing a CRM tool using PureMVC and Flex...

So imagine I have screen with case summaries... this is the first screen after my splash screen comes up.

So I have a notification when the which says when all the startup has been done. I want to then run a command to load up all the case summaries...

I also want a refresh button on my case summary screen to refresh them... and get any new ones...

I was thinking that I would have one command LoadCaseSummariesCommand and in the ApplicationFacade I register that command against 2 notifications ...

One being STARTUP_COMPLETE and the other being REFRESH_CASE_SUMMARIES

I am just a little confused if that is the best approach or if there is another way to do it?

Thanks and Regards

Mark


Title: Re: Same Command with 2 Different Notifications?
Post by: puremvc on April 04, 2008, 02:12:48
Should be fine if the call does the same thing both times.

-=Cliff>


Title: Re: Same Command with 2 Different Notifications?
Post by: mark_ellul on April 07, 2008, 09:14:02
Thanks Cliff...