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!

Redirecting from modal page

User_97NGROct 9 2022 — edited Oct 9 2022

From page A I am opening modal page, using apex_util.repare_url and js apex.navigation.dialog This works well. Now in that dialog I have a button, which should do the following actions.
Execute custom SQL Update
Redirect to the page, where the dialog was initiated from. No parameters need to be passed along, only simple redirect is enough
So to achieve the second item, I've tried the same approach - using `apex_util.repare_url / apex_util.get_url` to obtain destination, then in dynamic actions:
Event: Click
Selection Type: Button
Button: Swap
Action: Execute JavaScript Code
Code: `apex.navigation.redirect($v("P18_HOMEPAGE_URL")); `

What I get is an error in console:
`Refused to display 'https://...' in a frame because it set 'X-Frame-Options' to 'deny'.`
I've checked the P18_HOMEPAGE_URL and it looks valid url including cs and other components.
I've also looked towards the possibility of having some return value from apex.navigation.dialog indicating that the button has been pressed and reload the calling page from within the page, but can't figure out if it's possible at all.

What is the proper way to redirect to any page from modal page or to get return value from apex.navigation.dialog to reload the page in JS code?

PS: my display name modification is pending...

This post has been answered by fac586 on Oct 9 2022
Jump to Answer
Comments
Post Details
Added on Oct 9 2022
6 comments
2,672 views