Screen choosers
Some tooltip text!
• 1 minute to read
• 1 minute to read
A screen chooser is a CRMScript that redirects to a custom screen or performs other actions. It can, for example, do calculations before displaying the screen.
The screen choosers are organized in a folder structure based on where in the system they are run from.
Redirecting
To redirect, call setVariable("url", String url)
with the new URL you want to redirect to. Remember to resend GET/POST variables if needed.
setVariable("url", getProgramTicket() + "&action=doScreenDefinition&idString=My_super_screen&entryId=" + getVariable("id"));
Note
The actual redirect happens after the entire script has run, not when calling setVariable()
.
Creating a screen chooser
- Sign in to SuperOffice Service.
- From the hamburger menu, select System Design and then select ScreenChoosers.
- Select the screen you want to redirect from.
- Enter a description (what and why) and set it to enabled.
- Write your script and click OK.
Tip
You can use URL parameters in your screen chooser.