Inforiver’son-load scripting feature enables you to list a set of actions to be performed on loading the visual. You can display messages, set the layout, hide columns, or apply filters as the visual is loaded. The scripts will be executed when you open the report, switch to the tab containing the visual, or refresh the visual.
Notice how all the scripts have been executed when the visual is loaded.
To see the scripts in action, click the Run now button
Executing on-load scripts
Let's look at some applications of on-load scripts.
1. Displaying messages
You can display custom text as a toast message notification. The supported types include alerts, information, warnings, and success messages among others. Learn more about the DISPLAYTOAST function.