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