Is it possible to bypass the shutdown event script of a perspective view?

Here is my current setup:

  • I have a perspective view with an onShutdown System Events that is enabled (script)
  • the script function is to check if there are irregularities found on the view data. (this will be triggered when navigating to another screen)
  • if there are irregularities, a popup will be displayed stating the irregularity.
  • the popup is displayed but the view changed to the selected screen.

What I want to do:

  • retain the current view while the script is executed. only move to the selected screen when the script found no issues.

  • please give me pointers on how to retain the current view while executing the script.

It is almost impossible to prevent a browser from navigating wherever a user wishes to go. Security can block access upon arrival at a particular page, but security cannot stop a user from leaving a page. If you have incomplete conditions in a session, your only reliable option will be to disable the components on other screens that need those conditions satisfied, while displaying a banner (in a dock, perhaps) that indicates the problem. (And presumably offers a button to navigate back to the incomplete page).

You might be able to minimize the problem by disabling all navigation on the problem page after editing begins, and making the condition-checking script perform the final navigation when the conditions are satisfied. Run that script from a button, not upon navigation.

4 Likes

Agreed. Your field validity check needs to occur BEFORE you allow a user the opportunity to navigate. Once you're in the shutdown script of a View there is no going back.

1 Like

Thanks for your inputs! I think I'll just either make the view to be a popup or remove all navigations on the view.