View - Parameters Tab
Use the Parameters tab to configure parameters of the view. This is an optional step when you create a view. Use parameters to pass data from one view to another, or from a view to a subview. You can update view parameters using rules, and you can use them like a variable to store values and use them again. View parameters can be Boolean, DateTime, Number, or Text. You can use the default value of a parameter or set the value of a parameter using rules. Parameter values can also be used in the expression builder.
Feature | Description | How to use it |
---|---|---|
Name | A unique name for the parameter (see Considerations) | Type the name of the parameter |
Data Type |
The data type of the parameter. It is important to choose the correct data type, especially if you need to use the value from a parameter as a SmartObject mapping. The following types are available:
|
Select the data type from the drop down list |
Default Value | The default value used when you run the view with parameters. Validation is performed on the input values according to the data type you use, for example if you use Number as mentioned above, you cannot enter text in runtime | Type a value if a default value should be used (optional) |
For an example on how to use rules to set view parameters, see the following KB article:KB001359 - How to use View Parameters to transfer data to a subview
When you click the Finish button in the top right corner, the properties page opens. You can set parameters before running the view by selecting Run with Parameters. Specify the parameters to test the view. You can also open the view by clicking the URL.
- Boolean values default to False and cannot be blank (null). Values accepted are:
- 1 or 0
- true or false
- yes or no
- The following HTML values are not allowed in Name of a parameter:
- <
- >
- &
- "
- '
- When you select to Run with Parameters and you have used parameters of type Number or Boolean, you must specify a value.
- When you use the DateTime parameter, you cannot type a value and must pick it using the Calendar control.
- Double-click a parameter to edit it.