The Reportal scripting capability enables developers to leverage the power of Reportal with greater flexibility for report interface customization. Scripting functionality is added to Reportal to enable the user to, for example:
- Perform custom permission control.
- Build aggregated table definitions based for example on user information (e.g. enduser role or company) or parameter values (e.g. selected project and question/question type).
- Build the domain (valid values) of parameters dynamically.
- Mask a parameter domain dynamically, based for example on information about the user (usertype, company or role).
- Send email.
The target audience for using Reportal Scripting is developers familiar with programming in Microsoft developer tools. The scripting Language is Microsoft JScript.NET.
A syntax highlighter is enabled by default in all areas in Reportal where scripts can be written (go to Syntax Highlighter for more information). If the BETA CodeCompletion component is not enabled, this syntax highlighting will be used. When the syntax highlighter is in use, each time the Tab key is pressed, the current line of script is indented one step. Each press of the Shift-Tab keys removes one indent from the line. Note that the Tab key does not insert a tab in the text. To disable the syntax highlighting, in Survey Designer, go to the Design page > Item Editor menu and uncheck the “Syntax highlighting in editors” box. Refer to the Survey Designer documentation for further details.