This page is for application designers who need to configure specific operations that will change records in the table.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Creating a Record-Action
To create a record-action:
- either open a table's properties. In the Record-Action section, click
.Insert excerpt _add _add nopanel true - or open the repository branch for a table. Right-click Record-Actions and select
.Insert excerpt _add _add nopanel true
In both cases, PhixFlow opens a new record-action properties tab.
Properties
Use the following properties to configure the record-action.
Insert excerpt _standard_settings _standard_settings nopanel true
Basic Settings
Field | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter the name of the record-action. | ||||||||||||||||||||||||||||||||
Record-Action | Select the type of operation:
The remaining options available in Basic Settings depend on the type of operation you select.
| ||||||||||||||||||||||||||||||||
Attributes to Update | This option is available where Record-Action is Insert,Update or Delete. This section has a toolbar with standard buttons and The grid contains a list of attributes on which the record-action will operate. If the grid is empty, the record-action will operate on all attributes in the table. To add attributes to the grid, in the toolbar, click
To create a new attribute, click
The grid displays information from the record-action attribute:
To remove an attribute from the grid, use the
For Delete actions, use the expression to include information related to the action. For example, you may want users to add a reason for deleting the record. This means the Delete action has an audit record that also records the reason. The alternative is to use an Update action to record the information, then use a Delete action. However, this results in two audit records. | ||||||||||||||||||||||||||||||||
Filter Type | This option is only available where Record-Action is Delete or Update. Select an option from the drop-down list. The action will only apply to the records that:
| ||||||||||||||||||||||||||||||||
Target View | This option is only available where Record-Action is Delete or Update. Enter a view name. Where Filter Type is one of Selected ItemsRecords, Edited ItemsRecords or View Filter, PhixFlow takes the records from the named view. The user may have started the action on a different view. | ||||||||||||||||||||||||||||||||
Condition | This option is only available where Record-Action is Delete or Update and Filter Type is Action Filter. Create a filter to specify the records to which the action applies. Expressions in this filter can refer items on the view or dashboard from which this action was initiated, for example:
Configure this filter in the same way that you would a pipe filter. | ||||||||||||||||||||||||||||||||
Copy Values By Name | This option is only available where Record-Action is Insert or Update. Specify what to do if the dashboard from which the action was initiated includes more attributes than those listed in the properties grid Attributes to Update.
PhixFlow looks for a form field or view attribute with the same name as the attribute. If it finds a match, PhixFlow updates the attribute to the value of the form field or view attribute. If PhixFlow does not find a match, it does not update the attribute value. | ||||||||||||||||||||||||||||||||
Maximum Items Records Expr. | This option is only available where Record-Action is Delete or Update. Enter an expression that evaluates to a number. The number limits how many records (items) this action can affect. If this action applies to more than the maximum number of itemsrecords, PhixFlow updates only the specified number of items records and ignores the rest. Phixflow reads records in the order they are listed in the view from which the items they are selected. | ||||||||||||||||||||||||||||||||
Minimum Items Records Expr. | This option is only available where Record-Action is Delete or Update. Enter an expression that evaluates to a number. The number specifies the minimum number of records that the action must be applied to for this action to run. If fewer than this number of items records, the action will return an error and will not run. |
...