Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Return from a Modal to the Same Place it was called from - 21.2.3

Joe RApr 1 2022

Version: 21.2.3
Hello,
I have a question on how to return from a Modal page to the same place it was called from on the Parent page.
I have a Tab Container with 3 Regions. The 3rd Region has another Tab Container with 4 Regions. All these Regions are Interactive Reports and all have a link to display the Detail of the row in a Modal page. 2 of the Reports are using the "Link to Custom Target" in the Report Attributes and the others are using a Column as a Link.
What I'd like to happen is when the Modal is closed I like the Region that the Modal was called from to display on the Parent. Currently it goes to the top of the page.
I've tried to return the Static ID I put on the Regions in the Close Dialog Items to Return property on the Modal and in the Dialog Close DA on the Parent Page I have a Dynamic Action:
Action: Set Value
Set Type: Dialog Return Item
Return Item: <page item from the Modal>
Affected Item: <page item on the Parent to receive the value>
Then a 2nd Action of Execute Javascript of:
$('#' + $v('P40_ACTIVE_REGION') + '_tab').find('a').click();
(P40_ACTIVE_REGION is a hidden page item for receiving the value from the Modal)
However, the page does not go to the Region it came from. As I said it goes to the top of the page.
Can someone help me in getting this to work?
Thanks,
Joe

This post has been answered by fac586 on Apr 11 2022
Jump to Answer
Comments
Post Details
Added on Apr 1 2022
17 comments
1,739 views