[英]Oracle Apex Change link column color
I have Interactive report in apex application where first column USER_GID
includes links or is a link column.我在顶点应用程序中有交互式报告,其中第一列
USER_GID
包含链接或者是链接列。
How do i change the color of the link?如何更改链接的颜色?
Here column USER_ID
contains links.这里
USER_ID
列包含链接。
So 23, is a link and i want to change its color to blue.所以 23 是一个链接,我想将其颜色更改为蓝色。
So the links are distinguished.所以链接是有区别的。
How can i do that?我怎样才能做到这一点?
Apex 20.2顶点 20.2
As I don't have your table, I used Scott's EMP
.因为我没有你的桌子,所以我用了 Scott 的
EMP
。 The idea is: if DEPTNO
column represents a link (I used the one to Google), paint it differently for each department number.这个想法是:如果
DEPTNO
列代表一个链接(我用的是谷歌的链接),则为每个部门编号绘制不同的颜色。
Interactive report's query would then look like交互式报告的查询看起来像
select
'<a href="https://www.google.com" style="color:' ||
case when deptno = 10 then 'red'
when deptno = 20 then 'green'
else 'pink'
end ||
'">' || deptno || '</a>' detpno,
--
empno, ename, job
from emp
order by ename
Don't forget to set deptno
column's "Escape special characters" property to "No".不要忘记将
deptno
列的“转义特殊字符”属性设置为“否”。
The result is then那么结果就是
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.