Databases Reference
In-Depth Information
showHideEmpno();
//Register browser event (onChange)
$('#P1 DEPTNO').change(function(){showHideEmpno();});
});
Dynamic Action (New Method)
Starting in APEX 4.0 you can declaratively trigger actions based on browser events using Dynamic
Actions. Dynamic Actions are a preferred method over custom JavaScript functions because:
They are declarative, which allows developers to easily identify where the code is
stored.
They have a built-in framework to maintain consistency across an application.
They make it easy for non-JavaScript developers to apply event-based actions.
The following steps describe how to toggle the Employee field, as you did in the previous example,
using a Dynamic Action. This example will not go into detail for each step since the goal is to quickly
compare the manual method with the new method by creating Dynamic Actions. The second section of
this chapter will describe each of the available options in detail.
1.
On the page, right-click on the Dynamic Actions entry in the tree as shown in
Figure 7-3. This will bring you to the start of the Dynamic Action wizard.
Figure 7-3. Create Dynamic Action
Search WWH ::




Custom Search