Understanding Dynamic Actions

Learn how dynamic actions can provide complex client-side behavior declaratively without the need for JavaScript.

About Dynamic Actions

Learn about dynamic actions.

Dynamic actions enable you to declaratively define how components respond to various user interactions (such as button clicks, items changing, and so on) without any complex coding or JavaScript knowledge.

When you create a dynamic action, you specify an action that will be performed when a defined set of conditions occur. You can also specify which elements are affected by the action and how and when they are affected.

A dynamic action consists two parts: Triggers and Actions. The Trigger defines the condition upon which the Action takea place. The Action enables you to dynamically do anything you would normally achieve using a combination of JavaScript and CSS such as showing or hiding page components, setting values, executing PL/SQL code and so on.

When working with dynamic actions, keep in mind that the more dynamic actions you add to a page, the greater your overall page size. The dynamic action framework emits additional code to the client for each dynamic action defined, which then must be downloaded and executed by the framework in the client.

The process of implementing a dynamic action involves the following steps:

  1. Create (or use an existing) page component such as an item, button or region. This component is referenced within the dynamic action, in defining when it fires.

  2. Create a dynamic action on the application page that invokes the action.

  3. Run your application to test the dynamic action.

Tip: See Debugging Dynamic Actions for information on how to debug problems.

Tip:

To view dynamic action examples, install the sample app, Sample Dynamic Actions. To learn more, see Installing Apps from the Gallery.

For guidance on creating Dynamic Actions that use Generative AI, see About Including Generative AI in Applications.

About Dynamic Action Events

Learn about supported dynamic action events.

You can define dynamic actions to fire based on events that happen on the page. APEX includes four different categories of events: Browser events , Framework events , Component events , and Custom events. This section describes all supported events, including the internal JavaScript event name in brackets.

Browser Events

Note: Refer to the W3C UI Events specification for details about browser events or consult a reputable JavaScript reference. The events that begin with apex are events that wrap native touch events.

Framework Events

Component Events

These events are available when there is a component (either an item, region, or dynamic action) available to your application that triggers a custom event. These events appear in the following format Event name [Component Name], for example the Change Order event triggered by the Shuttle native item type appears as Change Order [Shuttle]. Component events are either triggered from native components shipped with APEX, or from plug-in components you have installed into your application.

Custom Events

About Supported Actions

Learn about supported action types.

After you specify Dynamic Action attributes in the Property Editor, you define the TRUE Action or FALSE Action you want to perform. The following section lists supported action types.

AI

Component

Execute

Miscellaneous

Navigation

Notification

Style