Page 1 of 1

--Ignore Navigation for specific screens

PostPosted: Tue Oct 04, 2016 11:27 am
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




It's super easy to enable standard Browser navigation for an application. Simply set the application parameter

Code: Select all
Application.navigation

to true.

If navigation is enabled, it's possible to use the browser buttons, Back and Forward, to navigate between your screens. But sometimes, you don't want navigation for specific screens, e.g. open a screen as modal "popup". The modal popup is just a detail of another screen and not a real navigation target.

It's possible to disable navigation for screens. You have different options:

  • Implement the interface com.sibvisions.apps.vaadin.IIgnoreNavigation in your work-screen class
    (best option for base work-screen classes)
  • Add the annotation com.sibvisions.apps.vaadin.IgnoreNavigation to your work-screen class
    (good for specific work-screen classes)
  • Set the parameter #IGNORENAVIGATION, e.g.
    Syntax: [ Download ] [ Hide ]
    HashMap<String, Object> mpParams = new HashMap<String, Object>();
    mpParams.put("#IGNORENAVIGATION", Boolean.TRUE);
           
    getApplication().openWorkScreen(StatusWorkScreen.class.getName(), Modality.Modal, mpParams);
    (good for on-demand work-screens)