Creating a dynamic action plug-in
A dynamic action is a piece of code that can handle page events (onchange
, onclick
, and so on). It is actually the APEX implementation of JavaScript event handling. For example, you can show or hide an item or a region at a specific moment. And that moment can be, for example, when a user clicks on an item with the mouse, or when a user enters some text in an item. These moments are called events. There are several events which we already described in the Controlling the display of regions and items with Dynamic Actions recipe in Chapter 1, Creating a Basic APEX Application.
A dynamic action plug-in offers the same functionality, but you can customize the appearance of the affected objects. In this recipe we will show you how you can make a dynamic action plug-in which changes the color of a text item when a user enters some text in another text item.
Getting ready
No preparations needed, except that you should have an existing page with a region where you...