This page is for application designers who want to configure actions.
Insert excerpt |
---|
| _action_concepts |
---|
| _action_concepts |
---|
nopanel | true |
---|
|
When you are creating a stream item action for a stream, use this property tab to add an expression that evaluates to the new value for that stream attribute.
- Create a Stream Item Action.
- In the Basic Settings → Attributes to Update section there is a grid of attributes.
- In the grid, double-click on a attribute.
- PhixFlow opens the stream item action attribute property tab.
Stream Item Action Attribute Properties
This property tab is not available from the repository. It only opens from the Stream Item Actions properties.
...
Field | Description |
---|
Order | Enter the order in which the attribute expression will be evaluated. |
Attribute | Select the name of the stream attribute that will be populated. |
Expression | Enter an Expression to generate a new attribute value. To refer to stream attributes, pipes and elements in the expression, use: <attribute-name> to refer to the current value of the record you are about to update.<pipe-name> to refer to lookup pipes on the same stream as the action. The pipe cannot reference _out variables directly.<dashboard-element-name> refers to selected records from other dashboard views using their dashboard element names.
Panel |
---|
| For example: - A dashboard element name is
ACCTS. - In the dashboard, the user will select records in a grid view.
- For the selected records, you want the action to sum the values in the
amount attribute.
Enter an expression: Code Block |
---|
sum(ACCTS.amount) |
|
You can also use the following prefixes: _out.<attribute-name> to refer to the current value of an attribute in the action. For example, in the screenshot above, you could refer to the value for the attribute ChargeAmount in VATAmount with the expression _out.ChargeAmount .
_context.<context-variable-name> refer to any context variable defined for this action.
_gridRow.<stream-view-attribute-name > to refer to the edited value of an attribute when the Filter Type is Edited Items.
_gridRow contains a recordset pointing to an individual row that had has been modified.
MessagesYou can use the following message functions in the expression. When the action runs, any messages are written to the system console and logs.
Note |
---|
If PhixFlow reports an error | will stop , it stops the action from being completed for the current | stream item in the stream. However, the error does not stop the action from updating | / or inserting other stream items. |
|