Script Types
-
About Script Types
For each of the script types the following structure is used:Where do I find the script editor for this script?What’s the main purpose of this script?Short d...
-
Hide Scripts
A common use case for Reportal scripting is to be able to conditionally hide or show pages or elements of a page depending on either parameter values or user...
-
Filter Scripts
This script is used to dynamically create a filter expression. You can build your filter expression dynamically based on parameter values or a user role. Exp...
-
Date Filter Scripts
Date filter scripts allow you to create date-range filters based on date ranges defined in the Date Filter component, and thereby filter content in report co...
-
Report Level Scripts
Codelibrary ScriptThis script is used to write common script classes available from any other scripts in the report. Multiple Codelibrary scripts can be adde...
-
Page Level Scripts
To access the Page Script functionality:Right-click on the report page in the Report toolbox and select Script from the drop-down menu.The Page Script page o...
-
Component Scripts
All visual components in Reportal have a "hide" expression. If this expression evaluates to true for a component, then this component is hidden from the repo...
-
Render Scripts
Render scripts can be defined for the visual component types, to set properties for the components dynamically.Aggregated TableTo enter the script editor, ri...
-
Parameter Scripts
DomainThis script used to build up the domain for a parameter. To enter the script editor, right-click an appropriate parameter in the Report Tree and select...
-
Table Object Scripts
When you create a Table in Reportal, you will be presented with options in the menu showing you the Table objects available. In this example, the Content obj...
-
Export scripts
You may encounter a situation where you want to keep the content viewed on the screen as read-only and not exportable. For example, a simple script on the t...
-
Hierarchy Scripts
Adding a Hierarchy via script to a table row added to a tablevar qe : QuestionnaireElement = report.DataSource.GetProject("ds0").CreateQuestionnaireElement("...
-
Formula Scripts
Calculating a Value from Table Cell Values using a Basic Formula:var x = report.TableUtils.GetCellValue("AgeandGender", 1,1).Value; //tableID, rowID, ColIDva...
-
Content Scripts
Examplevar numberOfColumns : int = 4;var datapoints : Datapoint[];for (var j : int = 0; j < numberOfColumns; j++){var content : HeaderContent = new HeaderCon...
-
Validation
To avoid publishing reports that contain errors, Reportal has built-in features to verify that no scripts contain syntax errors.On preview and compilation of...