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