After yesterdays introduction into the new Error Handling Function Callback, I want to continue with another new feature in the error handling area – Error Display Location for Processes.
In previous versions of APEX, an error raised in a process was always displayed on the rather frightening “Error Page”. Showing the error inline, so that the user actually sees what he has entered is much more user friendly. That’s why Application and Page Processes of processing point
- “On Submit – Before Computation and Validations” and
- “On Submit – After Computations and Validations”
have a new attribute called “Error Message Display Location” which allows developers to select
- “Inline in Notification” or
- “On Error Page”
as error display location of a process.
This new setting which defaults to “Inline in Notification” for new processes can be used to specify where a process error message should be displayed. In previous versions of APEX, process error message have always been displayed on the error page.
“On Error Page” should be used if a page contains a manually created tabular form (using apex_item.xxx calls in the SQL statement), because a re-rendering of the page with an inline error would discard changes made by the user. For errors displayed on the “Error Page”, the user can use the browser back button to preserve the entered values.
The new attribute is not visible for processes firing during page rendering, because that would end in a recursion if we try to render the page again with the error displayed inline. The same regions, processes, … would fire again with the same error and we would be in the same troubles as before.
As always, any feedback welcome!