Sam is updating an application with a report (Page 10) and form (Page 11), where the form page has Page Mode "Normal." She wants to update the form page to a modal dialog, so it can be called from multiple report pages.
Sam has already changed Page Mode to "Modal Dialog", removed the breadcrumb region, added a button region to the dialog footer, and moved the buttons to the new region.
Whenever she opens the form page from a different report page (Page 15), it keeps returning to the original report page (Page 10) when she cancels or submits the form page.
Which three steps must Sam perform to get the modal page to always return to the report page from which it was called? (Choose three.)
Click on the arrows to vote for the correct answer
A. B. C. D. E. F. G.BCD.
https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r50/apex-adv-demo-projects-2848027/APEX_Advanced_Demo_Projects%To get the modal page to always return to the report page from which it was called, Sam must perform the following three steps:
Create a Dynamic Action of type Close Dialog that fires whenever the DELETE, SAVE, or CREATE button is pressed. This step is necessary to close the modal dialog after the user submits or cancels the form. To create this Dynamic Action, Sam should go to the Dynamic Actions section of the Page Designer and click on "Create" to create a new Dynamic Action. She should set the "Event" to "Click" and select the DELETE, SAVE, and CREATE buttons as the affected elements. The "Action" should be set to "Close Dialog" with the option "Close Dialog Only" selected. Finally, she should give the Dynamic Action a name and save it.
Create a Dynamic Action of type Cancel Dialog that fires when the CANCEL button is clicked. This step is necessary to cancel the changes made on the form and return to the calling page. To create this Dynamic Action, Sam should go to the Dynamic Actions section of the Page Designer and click on "Create" to create a new Dynamic Action. She should set the "Event" to "Click" and select the CANCEL button as the affected element. The "Action" should be set to "Cancel Dialog" with the option "Close Dialog Only" selected. Finally, she should give the Dynamic Action a name and save it.
Update the branch to return to the correct calling page. This step is necessary to redirect the user back to the calling page after they have finished using the modal dialog. To update the branch, Sam should go to the "Branches" section of the Page Designer and select the branch that redirects to the form page. She should then change the "Target" of the branch to an item holding the calling page. If no such item exists, she should create a hidden page item to hold the calling page and update the calls to the form page to populate the item. Finally, she should save her changes.
Option A is also helpful as it ensures that the modal dialog is closed when the user clicks on the DELETE, SAVE, or CREATE button, but it is not strictly necessary since Step 1 already includes a Close Dialog Dynamic Action. Option B may be required if the CANCEL button has a predefined action that needs to be overridden. Option D is not needed because Step 1 already includes a Close Dialog Dynamic Action. Option E is not necessary since Step 3 already addresses this issue. Option F is not necessary since Step 3 already covers the creation of a hidden page item if needed.