Vam*_*amC 1 oracle-apex oracle-apex-5.1
Using below, I'm able to change the background color the column in APEX classic report.
#static_id td[headers="TOTAL"]{background: rgb(164, 164, 164) !important;}
Run Code Online (Sandbox Code Playgroud)
How do I change the background color of a row? In this case, I want to change the color of my last row (Totals) Screenshot
I don't have Apex 5.1 any more; tested this on apex.oracle.com which currently runs Apex 22.1.0.
Classic report query:
select 1 rn, ename, job, sal
from emp
where deptno = 10
union all
select 2 rn, 'Total', null, sum(sal)
from emp
where deptno = 10
order by rn, ename
Run Code Online (Sandbox Code Playgroud)
Create a dynamic action:
True condition:
Action: Execute JavaScript code
Code:
$('td[headers="ENAME"]').each(function() {
if ( $(this).text() === 'Total' ) {
$(this).closest('tr').find('td').css({"background-color":"red"});
}
});
Run Code Online (Sandbox Code Playgroud)
Affected elements: type = Region, Region = Report1
Fire on initialization: yes
Run the page; the result looks like this:
| 归档时间: |
|
| 查看次数: |
3987 次 |
| 最近记录: |