顶点有条件的突出显示,从另一个表链接的数据
我有两个单独的表,将数据存储在顶点中。提供报告的主表是当前的员工。我拥有的另一表本质上是终止的员工列表,其中包含其他信息。
我正在尝试找到一种方法,如果一个名称存储在两个表中,则该行将在报告中显示红色。
我将此代码作为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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个选择。说这是您的报告查询:
然后从内容正文中,展开列,并查找要以不同颜色看到的列,然后单击它。
在正确的框架上,您将看到一个称为HTML格式化的文本区域。
在那里使用一些HTML,例如:
我认为这会起作用。
Here is an option. Say this is your report query:
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:
I think this would work.