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!

Returning multiple errors with a validation of the type "PL/SQL Function Body Returning Error Text"

apex_studentDec 14 2017 — edited Dec 14 2017

Hi everyone,

APEX-Version: 5.1.2

is it possible to return multiple errors in a validation with the type "PL/SQL Function Body Returning Error Text"?

I already achieved this by manually adding HTML tags around my error strings but that doesn´t seem to be a clean solution.

I know that it´s possible to call the JavaScript function "apex.message.showErrors" with an array of errors (https://docs.oracle.com/database/apex-5.1/AEAPI/apex-message-namespace.htm#AEAPI-GUID-B896DF40-8145-426A-889B-657CBC288769), so I tried to create an array with my errors and return that to the validation. But all special characters get escaped so APEX shows the whole array as a string.Does anybody know a solution for this?

Best wishes

Mike

This post has been answered by fac586 on Dec 14 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2018
Added on Dec 14 2017
3 comments
1,500 views