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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to align number right in Display Only control?

Blue BirdFeb 22 2019 — edited Feb 25 2019

In APEX 514 I have a few fields set as Display Only type control downwards on the form and I fill this fields over code. Numbers are between 0 and 999. I want to align them right, like numbers usually are. I tried to use LPad function in the form LPad(0, 3, ' '), but it doesn't add 2 spaces before. But if I use for example * (asterix) instead of space using LPad(0, 3, '*') or any other visible char, then this character is used and visible. Why used space isn't aplied the same way as for example in SQLDev? See below:

pastedImage_2.pngpastedImage_1.png

I can't find any property setting to achieve this. Do I have to use some special Chr code for such cases, that 0 will be right aligned and I won't see any visible chars in front?

This post has been answered by fac586 on Feb 24 2019
Jump to Answer
Comments
Post Details
Added on Feb 22 2019
13 comments
4,074 views