How to create a Home button [message #1817490] |
Sat, 23 November 2019 13:32  |
Eclipse User |
|
|
|
Hello,
I would like to create a button that opens the default Outline as where the application starts, is the same with navigation handlers. I would like to know how to set parent Page active.
Kind Regards
|
|
|
|
|
Re: How to create a Home button [message #1819068 is a reply to message #1819051] |
Tue, 07 January 2020 03:14  |
Eclipse User |
|
|
|
Ok, well that's a complex subject. Scout already handles some navigation history events: when you switch between outlines, you'll notice that the URL changes. When you click back/forward, Scout brings the correct outline to the front. You can do more if you want, but you must deal with all the state that exists on the UI server (and not only in the browser). Maybe you've noticed that all the state of your application is still there, when you hit Ctrl + R in your browser. That's because the state lives on the UI server. This also means, you cannot simply use the local browser history to navigate in a Scout application, you also need to bring the model on the UI server in the correct state, which is not easy to do when you think of modal dialogs, background tasks, and dozens of open forms in tabs.
Maybe you could implement DeepLinkHandlers for your cases: they bring the model in the correct state depending on information stored in the URL and they're already supported when you navigate the browser history. See this question on StackOverflow for more infos:
https://stackoverflow.com/questions/36409145/scout-eclipse-neon-different-url-for-for-different-pages
|
|
|
Powered by
FUDForum. Page generated in 0.44835 seconds