Conditional formatting of a text component

Stimulsoft Reports.Web discussion
Post Reply
jlorue
Posts: 29
Joined: Thu Apr 15, 2021 6:33 pm

Conditional formatting of a text component

Post by jlorue » Wed Jun 09, 2021 12:29 pm

Hi,
I added in the report header a text component that shows an expression calculated based on MysQL table field, such as SUM(tableA.field1).
I need this text component to change its background color based on the calculated value (eg if the sum is greater than 10, get a green background color).

I have tried several options using the conditional formatting feature, but I could never get it work.

How should I configure the conditionl formatting in this case where the text component is showing the result of an expression?

Thanks,
Jose Luis
Lech Kulikowski
Posts: 3815
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional formatting of a text component

Post by Lech Kulikowski » Fri Jun 11, 2021 1:09 pm

Hello Jose,

Please try to use the Totals.Sum() function in the Conditions. If the issue still present, please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply