[英]Change column color in Oracle apex
First of all I recommend using css. 首先,我建议使用CSS。 If you don't like CSS just go directly to IR section in my answer
如果您不喜欢CSS,请直接进入我的答案中的IR部分
th:nth-child(even),
td:nth-child(even){
background-color: red !important
}
or 要么
th:nth-child(2),
td:nth-child(2) {
background-color: red !important
}
th:nth-child(4),
td:nth-child(4) {
background-color: blue !important
}
or 要么
th#C152380905075548116,
td[headers="C152380905075548116"] {
background-color: red !important;
}
th#C152381026269548117,
td[headers="C152381026269548117"] {
background-color: blue !important;
}
where C152380905075548116
and C152381026269548117
are columns id that should be replaced. 其中
C152380905075548116
和C152381026269548117
是应替换的列ID。
If you really need to use native IR functionalities you should follow 3 steps: 如果您确实需要使用本机IR功能,则应遵循3个步骤:
eg: 例如:
select
...
VALUE1||'<span style="display: none">red</red>' as Artikl
VALUE2||'<span style="display: none">blue</red>' as "Broj gresaka"
..
from
..
Actions > Format > Highlight
Actions > Format > Highlight
Name = Red background (Artikl)
名称=红色背景(Artikl)
Sequence = Sequence
顺序=顺序
Enabled = Yes
启用=是
Highlight Type = Cell
高光类型=单元格
Background Color = #FF7755
背景颜色=#FF7755
Text Color = null
文字颜色=空
Column = Artikl
列= Artikl
Operator = Contains
运算符=包含
Expression = red
表情=红色
and 和
Name = Blue background (Broj gresaka)
名称=蓝色背景(Broj gresaka)
Sequence = Sequence
顺序=顺序
Enabled = Yes
启用=是
Highlight Type = Cell
高光类型=单元格
Background Color = #99CCFF
背景颜色=#99CCFF
Text Color = null
文字颜色=空
Column = Artikl
列= Artikl
Operator = Contains
运算符=包含
Expression = blue
表情=蓝色
Security > Escape special characters
to No
Security > Escape special characters
为“ No
It is not the perfect solution but it works :-) 这不是完美的解决方案,但它可以工作:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.