Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Action Properties
Creating Actions
You can create an action that is not associated with any stream. This is useful for actions that do not operate on stream data. For example you may want a button-click to open a different screen.
Actions created this way appear in the repository under Actions. You can also export this type of action.
You can also create an action that belongs to a stream. This option is available for backwards compatibility with applications designed with earlier versions of PhixFlow, that did not have stream item actions.
You can create actions on layout components, such as buttons. You can also create actions in grid cells that contain:
- strings
- numbers
- dates or date-times
- boolean true/false.
You can drag an action onto a stream view to create a set of Action Buttons which appear on the top of the stream view. Actions can also be dragged into the menus belonging to an Application Properties.
See also OLD Actionflows and Action Configuration for related pages.
action stream stream action action Stream View action pop-up action the initiated the stream item pop-up Update on stream item stream item stream item stream item listed will run: see Record-Action RuleStream stream Action evaluating Form Context Parameters Records Task Plan Action Stream Action Action by the Action ActionAccess Permissions
For details about how to control access to an action, see Common Properties → Access Permissions. screenrefresh stream which this of all forms views in PhixFlowor clickValues entered in the form view are referenced in expressions in the action with the form.
Code Block |
---|
_prompt.<form field name> |
For example, if there is a field on the form with the label Name
, then the value entered in that field by the user can be referenced in subsequent expressions as
Code Block |
---|
_prompt.Name |
If this is an update action, then the form will be pre-populated with the values from the selected record. Where multiple records are selected, then only those values which are common to all the selected records will be displayed. For insert action, when the form pops up all fields will be blank.
Additional Properties for Update or Delete Actions
Minimum Items Expr.
If the number of items selected on the view from which this action is initiated, or retrieved by the filter configured on this action, is less than this number then an error message will be generated and no updates or deletes will take place.
Using Variables in Expressions
In actions, the _form, _grid and _gridRow act on a specific record. The record depends on the structure of layout components on the screen.
_form
acts on the recordcurrently selected in the view
currently displayed on the form
_grid
acts on the record_gridRow
acts on the record