<viewparameter>
This tag allows an arbitrary parameter to pass from one view to the next; parent must be a <viewlink> tag.
Easily added to a board’s display or input view, each <viewparameter> element is given a name, and the text embedded within the element contains the value of the parameter. This feature helps support more advanced board building by making the parameter available in XML data when you open the viewlink-targeted view.
| Attribute | Allowed Values | Requirements | Description |
|---|---|---|---|
| name | text | Required | Name of the parameter that will be available in the ViewParameter node of the XML data of the targeted view. |
Examples
Copy Code
<viewlink type="link" name="Input">
<viewparameter name="recordcount">
<expression name="recordcount">count(*)</expression>
</viewparameter>Edit
</viewlink>
Any data put between the <viewparameter> and </viewparameter> tags passes by the name in the open tag. Multiple parameters can pass on one <viewlink>. To capture it on the linked view and display the value in the parameter, use something like the following:
Copy Code
<value-of select="/data/ViewParameter[@name='parameterName']"/>
To use the tag in an IF test:
Copy Code
<if test="/data/ViewParameter[@name='parameterName'] = 'Test data!'">
This is Test Data!
</if>