Define Events in Your Application
An event occurs when something happens in your application. Some examples are when a page loads (lifecycle event), a button is clicked (component event), and when a variable's value changes (variable event). An event's type depends on how it is triggered; for example, a button or a menu would trigger a component event.
Type of Event | Description | How to Define |
---|---|---|
Component events |
An event associated with a UI component in a page, including those in dynamic components. It’s possible to choose which event the component triggers, but available events will depend on the component. For example, an event like |
Define a component's event and event listener in the component's Properties pane in the Page Designer. See Start an Action Chain From a Component. |
Variable events |
An event specific to a variable that occurs when the value stored in the variable changes. The only available variable event is |
Define a variable's event and event listener in the Variables editor. See Start an Action Chain When a Variable Changes. |
Custom events |
A user-defined event that can only be triggered by the Fire Event action ( |
Create a custom event in the Action Chains editor or in the Events editor, then create an event listener for your custom event in the Event Listeners editor. See Start an Action Chain By Firing a Custom Event. |
Lifecycle events |
Predefined events that are automatically triggered during a page’s lifecycle:
You can associate action chains with these events to augment a page or flow's default lifecycle. For example, if you want to initialize some component variables when a page opens, you can create an event listener in your artifact that listens for the |
Create an event listener for a lifecycle event in the Event Listeners editor. See Start an Action Chain From a Lifecycle Event. |