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!

Conditional format mask for row based on column value

Keegan_WApr 11 2017 — edited Apr 12 2017

Hi,

I am trying to format rows in a classic report based on the value of one column.

What I have successfully done is:

  • Bold the font if a column is a certain value
  • Put a % sign at the end if a column is a certain value

I did this by adding case statements to the region definition SQL statement and creating two hidden columns called FONT and PER then referencing them in the HTML Expression of each column attribute:

pastedImage_0.png pastedImage_1.png

The last thing I need to do is put a different format mask on in the same way.

  • Some values need this format mask (comma separated, showing no decimals): 999G999G999G999G999G999G990
  • Some need this format mask (showing 1 decimal place): 999G999G999G999G990D00 **these are the same ones I applied the % sign to

How can I accomplish this without applying the same format mask to the entire column?

What I have:

pastedImage_5.png

What' I'm trying to accomplish:

pastedImage_6.png*** Ignore the color highlighting. Just looking to have comma separation and no decimals for the top 3 rows, and decimals with a % sign on the bottom row.

Thank you!

This post has been answered by Pierre Yotti on Apr 12 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2017
Added on Apr 11 2017
26 comments
3,203 views