Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You cannot directly refer to a context parameter from another context parameter. However, you can refer to a dollar $ variable defined that is defined in another context parameter expression. Make sure the dollar variable will be calculated before the current context parameter expression is evaluated. This can be useful to avoid repeating the same calculation. For example, sometimes you need to use a value in both a stream item action and dashboard rule. 

In the action properties → Context Parameters section, there are two checkboxes that affect your context parametersInclude the Include Previous Context Parameters  adds  adds to the context parameters of your action any existing context parameters from the dashboard. You can overwrite them by including it in your action and giving it a new value.

...

FieldDescription
OrderEnter the order in which context parameters will be evaluated.
NameEnter the name of the context parameter.
Either select an attribute name from the drop-down list, or enter a different name.

Use these values asNew

Select an option to set these values as:

  • Default ValuesFixed Values: the context parameter has a default value can be changed interactively
  • Fixed Values: once set the value cannot be changed.
Expression

Enter the expression for the context parameter. 

Unlike stream action attribute expressions, context parameter expressions can evaluate to a list of values as well as single values.

The context parameter expressions can refer to:

  • data from the dashboard, view or form from which the action was initiated
  • $-variables used in other context parameter expressions on the same action.

Use the notation:

  •  to refer to values on a form:
       _prompt.<Form Field Name>   
  • to refer to attributes of selected records:
       <View name or alias>.<Attribute name or alias>   

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.

...