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!

Change the action of the OK button after an error in a dialog

Jurgen TurkstraFeb 5 2022

When a modal dialog does display an unexpected database error, an OK-button is shown at the bottom. The button action is set to 'javascript:window.history.go(-1)'.
Does anybody knows how to change this button action? It would be great if this could be changed so it will close the dialog.
Right now the effect of the OK-button is that the dialog is closed and the user is redirected to the page which was opened before the 'open a dialog'-page was opened.
See for an example the following app: https://apex.oracle.com/pls/apex/jurgenturkstra/r/back/
You do start at the home page.
Open the page 'Page which opens dialog'.
Click the button 'Open dialog with error'.
Click the OK-button.
You are now back at the home page. For a better user experience this should be the page 'Page which opens dialog'.
Thanks in advance,
Jurgen

Comments
Post Details
Added on Feb 5 2022
2 comments
571 views