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!

Javascript API apex.lang.getMessage Not Returning Message

ZacDFeb 22 2018 — edited Feb 23 2018

Hello all,

In my APEX 5 app, I am trying to get a translated messaged to show up in an apex.confirm call on button click. I'm attempting this using the apex.lang.getMessage API, but it does not seem to be working for me. So, to start out, I created a custom message on the Globalization > Text Messages screen like so:

pastedImage_0.png

The button on my page is defined with a link behavior like this:

pastedImage_1.png

javascript:apex.confirm(apex.lang.getMessage('SFI_RELEASE_PICK_WARNING'),'P16_UNBOOK');

As far as I've been able to find, this seems like it should be all I have to do. However, when I click on the button in the app, All I'm getting is that message code back:

pastedImage_3.png

I also tried using the standard APEXIR_ACTIONS message (and a couple others), but got the same behavior: displaying the code and not the actual string.

Any help you can provide would be greatly appreciated. If there are any other ways of accomplishing a confirmation dialog like this before submitting a button action, I'd be open to hearing them.

This post has been answered by Tom Nagle on Feb 23 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2018
Added on Feb 22 2018
11 comments
1,370 views