顶点有条件的突出显示,从另一个表链接的数据

发布于 2025-02-03 10:16:08 字数 939 浏览 3 评论 0原文

我有两个单独的表,将数据存储在顶点中。提供报告的主表是当前的员工。我拥有的另一表本质上是终止的员工列表,其中包含其他信息。

我正在尝试找到一种方法,如果一个名称存储在两个表中,则该行将在报告中显示红色。

我将此代码作为SQL查询将其放入报告查询中:

    select ID,
          PAINT_SHOP,
          "LOCKER_#",
          LOCKER_LOCATION,
          DEPT,
          ASSOCIATE_NUMBER,
          NAME__CINTAS_,
          AUDIT_NOTES_,
          LOCKER_TRANSFER_REQUESTED
     from LOCKER_AUDIT
     where (LOCKER_LOCATION = :P12_LL or :P12_LL is null)
     select
        NAME__CINTAS_,
            case when LOCKER_TERM_LIST.NAME = 'TERMINATED' then 'salmon' else 'black' end as event_color
    from Locker_Audit, LOCKER_TERM_LIST where LOCKER_AUDIT.NAME_CINTAS_ = LOCKER_TERM_LIST.NAME 

*locker_audit->报告存储的表 *locker_term_list->表存储所谓的员工数据,

我收到此错误:

I have two separate table that store data in Apex. The main table that feeds the report is current employees. The other table I have is essentially a list of terminated employees with other information on it.

I am trying to find a way that if a name stored in both tables, that row would show up red on the report.

I put this code as an SQL Query into the report query:

    select ID,
          PAINT_SHOP,
          "LOCKER_#",
          LOCKER_LOCATION,
          DEPT,
          ASSOCIATE_NUMBER,
          NAME__CINTAS_,
          AUDIT_NOTES_,
          LOCKER_TRANSFER_REQUESTED
     from LOCKER_AUDIT
     where (LOCKER_LOCATION = :P12_LL or :P12_LL is null)
     select
        NAME__CINTAS_,
            case when LOCKER_TERM_LIST.NAME = 'TERMINATED' then 'salmon' else 'black' end as event_color
    from Locker_Audit, LOCKER_TERM_LIST where LOCKER_AUDIT.NAME_CINTAS_ = LOCKER_TERM_LIST.NAME 

*LOCKER_AUDIT --> Table for data storage of report
*LOCKER_TERM_LIST --> Table storing termed employee data

I am receiving this error:
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沦落红尘 2025-02-10 10:16:08

这是一个选择。说这是您的报告查询:

select x.*
    ,case when y.employee_status = 'TERMINATED' then 'salmon' 
    else 'black' end as event_color
from current_employees x, old_employees y 
where y.employee_id = x.employee_id 

然后从内容正文中,展开列,并查找要以不同颜色看到的列,然后单击它。

在正确的框架上,您将看到一个称为HTML格式化的文本区域。

在那里使用一些HTML,例如:

<span style="color:#EVENT_COLOR#">#YOUR_COLOURED_COLUMN#</span>

我认为这会起作用。

Here is an option. Say this is your report query:

select x.*
    ,case when y.employee_status = 'TERMINATED' then 'salmon' 
    else 'black' end as event_color
from current_employees x, old_employees y 
where y.employee_id = x.employee_id 

Then from the content body, expand COLUMNS and look for the column you want to see in different color and click on it.

On the right frame you will see a text area called HTML Formatting.

Use some HTML there, like:

<span style="color:#EVENT_COLOR#">#YOUR_COLOURED_COLUMN#</span>

I think this would work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文