Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
This page provides details of the properties for the
action node and associated expressions. These are part of actionflows. Insert excerpt _action_calculate _action_calculate nopanel true
Overview
Use a
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Live Search | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Example
View file name Open Calculate Example.mp4 height 250
Initially there is an actionflow which opens a new screen containing a dynamic text field. The aim of this example is to populate this dynamic text field with a message set by an attribute in a calculate node. The steps for this are:
- Create a
node by dragging and dropping a node from the create section in the toolbarInsert excerpt _action_calculate _action_calculate nopanel true - Name the calculate something meaningful, e.g. Set Message
- Disconnect the
node from theInsert excerpt _action_screen _action_screen nopanel true Insert excerpt _driving_interface_connection_point _driving_interface_connection_point nopanel true - Connect the
to theInsert excerpt _driving_interface_connection_point _driving_interface_connection_point nopanel true
nodeInsert excerpt _action_calculate _action_calculate nopanel true - Connect the
to theInsert excerpt _action_calculate _action_calculate nopanel true
node, using the component input connection point - 'ScreenToOpen'. This is the name of the outermost area/form on the screen, enabling data to be passed to it.Insert excerpt _action_screen _action_screen nopanel true - Create a calculate attribute
- Name this Message
Add the following expression
Code Block "You have successfully set up a calculate node"
- Map the calculate attribute to the dynamic text field on the screen
Right click on the connection and click Configure Mappings
- Drag the Message attribute from the calculate (LHS) to the Message attribute on the open screen (RHS)
- Close the mapping screen
- The actionflow configuration is complete.
- Always remember to test the actionflow to make sure it works.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Basic Settings
Field | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter the name for the action node. | ||||||||||||||||||||
|
| ||||||||||||||||||||
Pass Through | Specify whether or not to allow data that has not been processed to pass through to the next action node.
|
Calculate Attributes
Calculate actions process data using expressions; see pages in the topic Expressions and PhixScripts.
This section has a toolbar with standard buttons. The grid contains a list of the expressions that the calculate action will perform.
- To add a new expression, in the section toolbar click
to open a new expression and set the properties.Insert excerpt _add _add nopanel true - To edit an existing expression, double-click it in the list to open its properties.
- To remove an expression, select one and in the section toolbar click
.Insert excerpt _delete _delete nopanel true
Calculate Attributes Properties
Basic Settings
Field | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Name | Enter the name of the calculate attribute. | ||||||||
Type | Select one of the data types:
| ||||||||
Attribute Name |
| ||||||||
Expression | Enter an expression. To work in a larger pop-up window, click . See also: | ||||||||
Order | Where the calculate action runs multiple expressions, enter a number to indicate the order in which this expression will be run. Remember that an expression that generates a value should run before an expression that uses the value. |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|