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.
- See How To: Save a Screenshot to PDF and Attach it to an Email for an example of using a view parameter to store the ID of a PDF file for use in a workflow.
- See How To: Use a Parameter to Transfer Data from a SmartForm to a SmartObject for an example of saving parameter data to a SmartObject.
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) |
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.
- When a view parameter has same name and type as a form parameter, the view parameter inherits the value of the form parameter.
- Do not create parameters with the same name as Reserved System Parameters