Validating Parameters
Applies to: Kyvos Reporting
You can apply validations to parameters to ensure users do not enter invalid values. This is applicable when the parameter’s Input Type is set to EditText.
To enable validations, select the Validation checkbox on the tab header of the parameter configuration pane.
Types of Validations
You can define validations using:
Valid values (characters, numbers, or dates)
Invalid values (characters, numbers, or dates)
Runtime scripts (custom logic executed at runtime)
Number Type Parameters
You can specify numeric ranges using the From and To fields in a row:
Scenario | Configuration |
|---|---|
Specific numeric range | Enter starting value in From, ending value in To. |
Values greater than or equal to X | Enter X in From; leave To blank. |
Values less than or equal to Y | Leave From blank; enter Y in To. |
Positive and negative numbers are supported.
Decimal numbers are allowed.
Click Add to insert a new validation row.
Click Delete to remove a row.
Character Type Parameters
You can define valid character sets or character ranges.
To allow specific characters:
Manually enter characters in the input field, or
Click the ellipsis button to open the Character Set dialog.
Click characters to select them (they will appear highlighted).
Click again to deselect.
Click OK to apply and close the dialog.
To specify a character range:
Use Unicode values of characters in From and To fields.
Scenario | Configuration |
|---|---|
Specific character range | Enter Unicode values in From and To. |
Characters from X onward | Enter Unicode in From; leave To blank. |
Characters up to Y | Leave From blank; enter Unicode in To. |
Click Add to insert a new validation row.
Click Delete to remove a row.
Date Type Parameters
You can enter fixed date values or use predefined system dates from the dropdown:
CURRENT_DATE – Date of report execution
MONTH_START_DATE – First day of the current month
YEAR_START_DATE – First day of the current year
To define date ranges:
Scenario | Configuration |
|---|---|
Specific date range | Enter values in both From and To. |
From a date onward | Enter value in From; leave To blank. |
Up to a specific date | Leave From blank; enter value in To. |
Click Add to insert a new validation row.
Click Delete to remove a row.