Importing Studio Reports Parameters
Applies to: Kyvos Reporting
You can import parameters stored in the repository and reuse them while designing reports. Parameters can be imported in two ways:
Individually: A copy of the parameter is imported into the report.
By reference: The parameter remains linked to the original in the repository. Any changes made to the source parameter automatically reflect in all reports using it by reference.
Steps to Import Parameters
On the Parameters screen, click the Import button.
The Import screen appears.
In the Category object selector, navigate to the desired folder to list available parameters.
In the list:
Select the Selected checkbox to import the parameter.
Select the By Ref checkbox to import it by reference.
Click Apply.
Click OK to complete the import and close the dialog.
Adding Validation Scripts for Parameters
You can define scripts to validate parameter values and apply dynamic behavior based on user input.
Steps to Add a Script
On the Parameters screen, click Add Script to open the Script Editor.
Write your validation script in the editor.
Click Compile to check the script.
Click OK to save or Cancel to discard changes.
Script Execution Behavior
Scripts support the OnChange() event, which is triggered when the user performs any of the following:
Action Type | Triggers Script |
|---|---|
Typing a value in a text box | ✅ |
Selecting or unselecting from dropdown | ✅ |
Checking or unchecking a checkbox | ✅ |
Script Capabilities
Access other report parameters (read-only).
Access parameter objects (even if not imported) and global business parameters.
Return True for valid input, or False to trigger a validation failure.
Display custom error messages if validation fails.
Prevent report generation if validation fails.
You can also modify parameter behavior based on the script outcome. For example:
if (paramA is invalid) {
disable paramB;
}Note
Affected parameters are reloaded dynamically on the Parameter Details screen.
For scheduled reports, the script runs only during task saving—not at runtime.