This page explains how to set context parameter properties parameters for an action.
An action can take into account values or attributes to decide whether or not to run. It is not possible to refer to one context parameter from another.
This setting properties tab is not available from the repository. It opens from an action properties → Context Parameters section.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Basic Settings
Field | Description |
---|---|
Order |
Enter the order in which context parameters will be evaluated. |
Name |
Enter the name of the context parameter. Either select an attribute name from the drop-down list, or enter a different name. |
Expression |
Enter the expression for the context parameter. |
Unlike stream action attribute expressions, context parameter expressions can |
Code Block |
---|
_prompt.<Form Field Name> |
evaluate to a list of values as well as single values. The context parameter expressions can refer to:
|
Code Block |
---|
<View name or alias>.<Attribute name or alias> |
|
It is not possible to refer to one context parameter from another.
The values returned by the context parameter expressions can be referenced by the Validation expression, the Filter, the Maximum and Minimum Items expressions, any Stream Action Attribute expressions and any dashboard opened by this action.
The context values are referenced using the syntax:
Code Block |
---|
_context.<context parameter name> |
Unlike stream action attribute expressions, context parameter expressions can evaluate to a list of values as well as single values.
Use the notation:
The expression can include the message functions debug(message), info(message), warning(message), and error(message) |
, which write messages to the system console logs. |
Remember that error(message) function |
stops the action from |
completing. |
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
A view called
|
Referring to a Context Parameter
The values returned by the context parameter expressions can be referenced by:
- the validation expression
- the filter
- the maximum and minimum items expressions
- any stream action attribute expressions
- any dashboard opened by this action.
The context values are referenced using the syntax:
Code Block |
---|
_context.<context parameter name> |