简体   繁体   English

Crystal Reports交叉表中的动态颜色更改

[英]Dynamic color changing in a Crystal Reports crosstab

I need to know how we can have crosstab values dynamically change color. 我需要知道如何使交叉表值动态更改颜色。

What I did is in the background I have written a condition: 我所做的是在我编写条件的背景下进行的:

if {ESCROW_MASTER.EBM_NOTIFICATION_AMOUNT}>100.00 
then 
crred 
else 
cryellow 

But this is applying to the whole page 但这适用于整个页面

I'm not quite sure what you mean by "it is taking to hole page", but if you want to dynamically change the values of the cross-tab values, you can use the following code for your formula: 我不太确定“进入孔页面”的含义,但是如果要动态更改交叉表值的值,则可以对公式使用以下代码:

If currentfieldvalue > 100.00 Then Red Else Yelow

Since you are probably summing up the values, but checking a single value of EBM_NOTIFICATION_AMOUNT , if the last value is greater than 100, it will make all of your cells red. 由于您可能要对这些值求和,但是要检查单个值EBM_NOTIFICATION_AMOUNT ,如果最后一个值大于100,它将使所有单元格EBM_NOTIFICATION_AMOUNT红色。 By using currentfieldvalue , the crosstab will always see what each individual cell's value is before determinig what color to use. 通过使用currentfieldvalue ,交叉表将始终在确定要使用哪种颜色之前查看每个单个单元格的值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM