Reputation: 812
I have an oracle apex classic report. I calculated sum of column credit,debit and balance using compute sum property of classic report. But I have to color the row which contains the sum of these columns(ie: the last row in classic report), to highlight the value. How can I color this row containing sum of columns?
Upvotes: 1
Views: 2451
Reputation: 132590
You can achieve this by creating a bespoke report template. Copy the current report template under a new name e.g. "My Report with Sum", and change the report to use the new template.
Now modify the template as follows:
Copy the HTML under "Column Template 1" to "Column Template 2".
Modify the HTML of "Column Template 1" by adding a special class to the td
element to indicate that this row contains the sum e.g. class="sum-row"
.
:ENAME = 'Sum'
Next, add some inline CSS to the page properties that sets the colours you want when the special class (e.g. sum-row
) is present. You may need to be quite selective to override CSS settings already applied by APEX. For example (based on the APEX theme I happened to be in when I did this):
table.uReport>tbody>tr>td.sum-row {background-color: yellow}
You will probably need to experiment to get the CSS right for your case.
Upvotes: 3