Global application menu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Global application menu

Oleg Richards
Hello Guys!

Another question :) I have an application. Here's workflow:  
EntranceTask (call login component) - UserRole(Supervisor, Filler,  
Viewer)Task. Last task is called from main application component  
called reporting. It has header, global main menu and task with user  
role. Main loop (based on user role) task calls different components  
and binds them via called and answer (thanks to Lukas). But i also  
want to have a menu. And for example i want to return to the main  
state from 2 level deep call answer chain. Ex: Main Loop Task called  
Sheet -> Sheet called template chooser -> Chooser called viewer. I  
want return from viewer to main sheet (via main menu fast view menu  
item). If i just answer from viewer i will return to chooser. Is any  
ideas of how to implement this? Or you will say me that i need to  
refactor my code to call answer paradigm in this situation ;) If  
so... I'll do. But how?

Cheers, Oleg
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Global application menu

Sebastian Sastre-2
Returning from 2 level deep will require 2 level answer :) did you try an
action that when a component anwers the parent also do an answer?

Sebastian Sastre

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Oleg Richards
> Enviado el: MiƩrcoles, 26 de Septiembre de 2007 16:55
> Para: [hidden email]
> Asunto: [Seaside] Global application menu
>
> Hello Guys!
>
> Another question :) I have an application. Here's workflow:  
> EntranceTask (call login component) - UserRole(Supervisor,
> Filler, Viewer)Task. Last task is called from main
> application component called reporting. It has header, global
> main menu and task with user role. Main loop (based on user
> role) task calls different components and binds them via
> called and answer (thanks to Lukas). But i also want to have
> a menu. And for example i want to return to the main state
> from 2 level deep call answer chain. Ex: Main Loop Task
> called Sheet -> Sheet called template chooser -> Chooser
> called viewer. I want return from viewer to main sheet (via
> main menu fast view menu item). If i just answer from viewer
> i will return to chooser. Is any ideas of how to implement
> this? Or you will say me that i need to refactor my code to
> call answer paradigm in this situation ;) If so... I'll do. But how?
>
> Cheers, Oleg
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside