Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Same Command with 2 Different Notifications?  (Read 7156 times)
mark_ellul
Newbie
*
Posts: 8


View Profile Email
« 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
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: April 04, 2008, 02:12:48 »

Should be fine if the call does the same thing both times.

-=Cliff>
Logged
mark_ellul
Newbie
*
Posts: 8


View Profile Email
« Reply #2 on: April 07, 2008, 09:14:02 »

Thanks Cliff...
Logged
Pages: [1]
Print