This page is for application designers. It explains how to set up actions in response to an event, such as a user mouse-click.
todo-Fiona - Indraft: Layout component also needs updating as there is a new properties section
Often in an application, you want to trigger an action based on an event that occurs on the dashboard:
- OnClick: the user mouse clicks in an area or on a button
- OnEnter: the user presses the Enter key in a data field
- OnBlur: the user moves their mouse pointer out of a data field.
The event is triggered whether or not the field has changed. - OnChange: the user moves their mouse pointer out of a data field in which they have changed data.
Notice that this event is not triggered by the user typing into a field.
You configure an event handler on a specific layout component, and link it to a stream-action or actionflow. When the user triggers the event, PhixFlow runs the stream-action or actionflow.
You can set event handlers on the following components:
Buttons
Areas
Buttons
Data fields:
- Boolean
- Date
- Datetime
- Number
- String
Data fields:
- Boolean
- Date
- Datetime
- Number
- String
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Add to component
Action method
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Event Handler Properties
For full details on event handlers, see Connecting Actionflows to Events.
Basic Settings
Field | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Event Type | Select the type of event that will trigger an action:
The list shows only the events available for this type of component. | ||||||||||||||||
Action Method | Available when Event Type is selected. Select the type of action:
| ||||||||||||||||
Action | Available when Action Method is Table-Action.
| ||||||||||||||||
Actionflow | Available when Action Method is Actionflow. To select an actionflow, do one of the following:
| ||||||||||||||||
Other | Available when Action Method is Other. Select from the drop down:
|