oracle concepts for you
Friday, 21 September 2012
Showing / Hiding Regions Using Dynamic Action
In this topic, you create a region with page items and then create a dynamic action to only show the region if the commission percentage is not null.
You want to create a subregion under the Edit EMPLOYEES region. Right-click
Edit EMPLOYEES
and select
Create Sub Region
.
Select
HTML
for region type and click
Next
.
Accept the default and click
Next
.
Enter
Sales Specific Information
for Title and click
Create
.
The Sub Region was created successfully.
You want to create a couple of page items in the new sub region. Right-click the
Sales Specific Information
sub region and select
Create Page Item
.
Select
Number Field
for Item Type and click
Next
.
Enter
P2_SALES_AMOUNT
for Item Name and click
Next
.
Accept the default and click
Next
.
Accept the default and click
Next
.
Click
Create Item
.
You want to create another Page Item to display bonus information based on the P2_SALES_AMOUNT value. Right-click the
Sales Specific Information
sub region and select
Create Page Item
again.
Select
Display Only
for Item Type and click
Next
.
Enter
P2_BONUS
for Item Name and click
Next
.
Enter
Sales Bonus
for Label and click
Next
.
Accept the default and click
Next
.
Click
Create Item
.
The P2_BONUS page item was created successfully. You want to show the region if the Job Id is set to a Sales job. You can just add another true and false action to the Job is Sales dynamic action you created previously. Double-click the
Job is Sales
Dynamic Action.
Click the
True Actions
subtab.
Click the
Add True Action
button.
Select the
Show
quick pick link.
Under Affected Elements, select
Region
for Selection Type and select
Sales Specific Information
for Region and click
Create
.
Because you are modifying an existing dynamic action, the false action is not automatically created so you need to create it. Scroll down to the
False Actions
section and click
Add False Action
.
Select the
Hide
quick pick link.
Under Affected Elements, select
Region
for Selection Type, select
Sales Specific Information
for Region and click
Create
.
Click
Apply Changes
.
Click
Run
.
Notice the Commission Pct page item is enabled and the Sales Specific Information region is displayed.
If you change the Job Id to a different non-sales job, you notice that the Commission Pct page item is disabled and the Sales Specific Information region is hidden. Click the
Edit Page
button in the Developer Toolbar. in the next topic, you create a dynamic action that shows and calculates the Sales Bonus when the value of Sales Amount changes.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment