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!

Can we display apex_application.g_print_success_message in exception block in APEX 4.2

Sruthi TamiriMar 30 2017 — edited Apr 2 2017

Hi Team,

I have a Query as shown below but the messages is not displayed, only when i user RAISE_APPLICATION_ERROR then it  got displayed but showing error code as well.

How to avoid error code please.

begin

lv_from_email_id := null;

select distinct email_address into lv_from_email_id from email_table where USER_INTRANET_ID=lower(:APP_USER);

exception when no_data_found then

apex_application.g_print_success_message  := '<font size="7" color="green"> <b>User do not have access ';

end;

raise;

end;

(or)

begin

lv_from_email_id := null;

select distinct email_address into lv_from_email_id from email_table where USER_INTRANET_ID=lower(:APP_USER);

exception when no_data_found then

RAISE_APPLICATION_ERROR (-20020,'User do not have access');

raise;

end;

Regards,

Sruthitamiri

This post has been answered by fac586 on Mar 30 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2017
Added on Mar 30 2017
11 comments
851 views