Databases Reference
In-Depth Information
Figure 16-4. Setting the action and creating the opposite action when the condition is FALSE
7.
Set Selection Type to Item(s) , and, in the resulting Item(s) shuttle, move P3_BODY to the
right region by double-clicking it or using the shuttle buttons. The end result should look
like Figure 16-5 . Click the Create Dynamic Action button to complete the wizard.
Figure 16-5. Selecting the affected items
Recapping the steps in the exercise, you created a dynamic action that fires any time the Change event for the item
P3_FROM is triggered. You set the condition so the action fires only when P3_FROM is null. The action is set to Disable,
which disables an item so the user can't navigate to it, and you chose to run the dynamic action whenever the page
is loaded. This ensures that the affected item is disabled to start with. You also chose to automatically generate
the opposite false action. This enables the item whenever the Change event is fired and P3_FROM is not null. In the
last step, you chose P3_BODY as the affected element. This indicates that it's P3_BODY that is enabled and disabled
depending on the state of the P3_FROM item.
Now, run page 3. Note that the Body item is disabled until you enter something in the From item and navigate
away. Conversely, if you delete all content from the From item, the Body item again becomes disabled, but only after
you navigate away from P3_FROM . This is OK, but it would be nicer if the Body item became enabled as soon as you
 
Search WWH ::




Custom Search