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!

Changing 'CSS Classes' column attribute dynamically based on row values

SmuckersJan 14 2021

I have been using the "HTML Expression' attribute of a report column to dynamically change the background color of the contents based on the row value using SPAN tags, i.e.:
<span #CSS_STYLE#>#COLUMN_VALUE#</span>
I need to change that column to a link. HTML Expression does not exist for a link, so my current color formatting method will no longer work. I wanted to use the "CSS Classes" attribute to dynamically set the CSS Class based on the column value. However, apparently this field does not utilize the # replacement syntax. I created classes for the background colors I need, created a column called CSS_CLASS to generate the correct class name and set that attribute to: #CSS_CLASS#. However, That just makes Apex put the value directly into the generated HTML (i.e. "<span class="#CSS_CLASS#">"
Has anyone been able to dynamically change the CSS Class of a report column based on the value?

This post has been answered by fac586 on Jan 14 2021
Jump to Answer
Comments
Post Details
Added on Jan 14 2021
4 comments
8,116 views