oracle颜色,oracle-apex - APEX更改IG中的行颜色 - SO中文参考 - www.soinside.com

我正在跟踪我在网上找到的示例,因为自从我在互联网上找到它以来,我知道它一定是正确的。我正在尝试在IG中搜索特定值,当找到该值时,行/行将用红色文本突出显示,在其下方是我遵循的逻辑和屏幕截图。请让我知道我想念的东西。他以员工为例,而我以汽车经销商为例。谢谢!"Here's another approach that works great:

For an IR with this query:

select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO,

OFFSITE

from EMP

Define for the column JOB the following Static ID: MANAGER_STATIC

Then create a DA After Refresh on Region where On True Execute the following javascript with Fire

on Page Load=ON:

this.affectedElements.find('td[headers="MANAGER_STATIC"]').each(function(i) {

var lThis = $(this);

if (lThis.text() == "MANAGER") {

lThis.parent().children().css({

"background-color": "#C0C0C0"

});

}

});

And every row that has the value of MANAGER will be highlighted and this will respect pagination.

eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS82ajZTOS5wbmcifQ==

eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9rTkpnaC5wbmcifQ==

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值