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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to redirect to different page after pressing Delete?

Geert01Nov 18 2022

Hi guys,
I have a 'Normal' page (with a classic report). When pressing the 'edit' on a row, the user is redirected to a Modal page. This Modal page has a master-detail section:
image.pngWhen pressing the 'Master-edit' the user will be redirected to another (non-chained) modal page.
When the users pressed the Delete button on that page, I want to delete the record, and then redirect the user to the classic report. But I cannot manage to do that. The redirect branch does not get called, and when I close the modal page via the Close Dialog process, the user will be redirected to the previous modal page (which is then empty because the master just got deleted). I have tried using the attributes field of the Dialog section
image.pngbut cannot manage to add a value I can use to differentiate between a 'Delete-Close' model and a 'non-delete' close model. In the case the user does not delete the master record and saves or cancels the master-edit screen, he should be redirected to the first modal page.
How can I get the application to redirect to the classic report on the 'Normal' page only when the user deletes the master record?
I tried to install my application on apex.oracle.com, but my exported DDL file contains 'collate' clauses (no idea how to eliminate those) and apex.oracle.com raises errors because of this.
I hope somebody knows the answer to this question without a working example on apex.oracle.com

This post has been answered by fac586 on Nov 18 2022
Jump to Answer
Comments
Post Details
Added on Nov 18 2022
2 comments
562 views