Save Action
- Zoe Baldwin
- Anthony George
This page provides details of the properties for the save node, which is part of an actionflow.
Overview
Use a Save node to insert, update or delete records for a selected table. Save nodes will save any attributes which are mapped to it and ignore any that have not been included, unless 'Autosave attributes' is ticked (see below).
A save node must be attached to a table with a Type of Transactional.
Example
In the actionflow instance illustrated in the screenshot above, an application has a Company Edit Form. When the application user makes a change and clicks the button, the actionflow runs.
- The calculate node sets the following attributes:
- Status to 'Pending Approval'
- StatusUpdate to the current time
- StatusUpdatedBy to the user's name.
- The save node saves any attributes on the driving input form that link to the table on the save node.
This means if any additional fields are added to the backing table and input form they do not need to be mapped to the save node.
Allocating Primary Key Values to New Records
When the save node is inserting a new record to the table, PhixFlow allocates a unique primary key value to the record. How PhixFlow allocates a value is determined by the Table properties → Advanced → Primary Key Generator.
- Internal: By default, PhixFlow automatically allocates a unique, numeric value to the primary key attribute.
- Sequence: Configure PhixFlow to allocate a value from your own sequence using the Primary Key Generator Sequence option. see Stream > Data Generation Options and Sequence.
Properties Tab
If this item is within or belongs to another, its parent name is shown here. See the Parent Details section on the Common Properties page for more details.Parent Details
Basic Settings
Field | Description |
---|---|
Name | Enter the name for the action node. |
Show in the Repository | An application can have many actionflows, and an individual actionflow can have many nodes. This can lead to many items being listed under Actionflow in the repository. Use this option to omit the node from the repository. to display this node in the repository. to omit this node from the repository. |
Type |
|
Table | The table in which the records will be updated. This table must have a Period of Transactional. |
Auto Save Attributes | Tick to save unmapped attributes from the driving input form or view, matched by identifier.
|
Attributes
A list of attributes to be updated manually. Click to show the list of attributes for the table. Drag the attributes you want to add to the save node into this list.
In the list:
- to edit the attribute's properties, double-click an attribute; see View Attribute
- to delete an attribute, right-click and select Delete
Attributes not added to this list will not be changed unless 'Auto Save Attributes' is ticked. If a record is being inserted and an attribute is not present in the save node, the default value for this field will be _NULL
We recommend that you always enter a description to explain the purpose of this item.Description
See the Common Properties page, Access Permissions section. Security Tab
Access Permissions
See the Common Properties page, Audit Summary section. Audit Tab
Audit Summary
Learn More
For links to all pages in this topic, see Understanding Actionflows.
Terminology changes in progress As part of the redesign of PhixFlow, we are changing the following terms: dashboard → screen
stream → table
stream attributes → attributes
stream item → record
stream set → recordset
stream view → view
stream item action → record-action
stream action → table-action
driver class → database driver