
how to create Dynamic action
event : change on item
action : alert, confirm ,execute java script
1- how to use false action
2- event /change item
3- action disable item,enable item
4- client side condition
event change item
action show/hide opposite action
fire on initialization
event :click & double click on button
action :clear item, set focus , set value [static]
event : get focus
action: set value
event
Key-down, Key-press , Key-Release
action : alert
event:
mouse button press
mouse button Release
mouse enter
mouse leave
mouse move
action : alert
event :page Load
page unload
action :
disable button
alert
java script position in page
event : resize resource load select
action : alert
selection type : JavaScript expression
event :Before Refresh , After Refresh , change Item
Action : Refresh Region, Alert
Event: Before Page Submit , Page load , change Item
action : enable Item ,Disable Item
event: Dialog Close
Action : Refresh Region
calendar event
date changed
event changed
view changed
action : alert
event: selected change
action :expand Tree ,collapse tree
event :Interactive Grid Mode change
Action:alert
event :Interactive Grid Page change
Action:alert
event :Interactive Grid Report change
Action:alert
event :Interactive Grid Raw Initialization
Action:alert
event :Interactive Grid save
Action:alert
event :Interactive Grid View change
Action:alert
event :Interactive Grid selection change
Action:alert ,
execute JavaScript code to get column value to item,
set value with JavaScript expression to get column value to item
---code for execute JavaScript
if (apex.region("EMP_REGION"))
{
var grid = apex.region("EMP_REGION").widget().interactiveGrid("getViews", "grid"); var model = grid.model; var record = grid.getSelectedRecords()[0];
if (record) { $s("P6_EMPNO", model.getValue(record, "ENAME"));
}
}
----- ---
code for set Value using JavaScript expression
(this.data && this.data.selectedRecords && this.data.selectedRecords.length == 1) ? this.data.model.getValue( this.data.selectedRecords[0], "COMM") : ""
---
event :Custom event
Action : Alert
Action : Open Region
Close Region
Action : Clear
disable,enable
show,hide
Refresh
Set Focus
Action : set value
Set Type: Static Assignment
JavaScript Expression,
SQL Statement,
PL/SQL Expression,
PL/SQL Function Body
Event: Dialog Closed
Action : set value
Set Type: Dialog Return Item
event : Button Click
Action : Execute Pl/SQL Code Submit
event : Button Click
Action :Cancel Event
event : Button Click
Action : Add Class (apex class & custom class)
Selection Type
Item(s)
Button
Region
Column(s)
jQuery Selector
JavaScript Expression
Delete a Row From Classic Report with a Dynamic Action
event : click on button
action :Redirect [Plugin]
How to install and use Sample Dynamic Actions Sample Application
Dynamic Action on interactive grid column
Dynamic actions enable developers to define complex client-side behavior declaratively without the need for JavaScript.
About Dynamic Actions
Dynamic actions provide a way to define complex client-side behavior declaratively without the need for JavaScript. Using the Dynamic Action Create wizard, you specify an action that is performed when a defined set of conditions occur. You can also specify which elements are affected by the action, and when and how they are affected.
About Dynamic Action Events
You can define dynamic actions can to fire based on events that happen on the page. Oracle Application Express 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.
Creating a Dynamic Action
Creating a dynamic action involves specifying when the action happens (with optional conditions), what action or actions are performed, and what elements are affected by the action. To learn more about any Property Editor attribute, select the attribute and click the Help tab in the central pane.
Editing Dynamic Actions
Once you create a dynamic action, you can modify attributes defined during the creation process, specify attributes not available during the process (such as specifying an Authorization Scheme) and add additional true actions.
Defining Dynamic Action Event Scope
After creating the dynamic action, the scope of the action can be modified to trigger only once, for the lifetime of the current page, or until triggering elements are updated by a Partial Page Refresh (PPR).
Deleting a Dynamic Action
Delete a dynamic action by selecting it in Page Designer and selecting Delete from the context menu.
Debugging Dynamic Actions
Learn how to debug dynamic actions in Oracle Application Express.