Can I do conditional coloring with stimulsoft?

Stimulsoft Dashboards.WIN discussion
Post Reply
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Can I do conditional coloring with stimulsoft?

Post by ynsemratk » Tue Apr 20, 2021 6:57 am

I have a column named "Adi" in my data source. This column is of string type. If the value in the previous "Name" column is the same as the next value, I want to make the style color of those columns red. How can I do? I sent my report to you. Thank you.
Attachments
KonsolideGenel.mrt
(17.28 KiB) Downloaded 19 times
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Can I do conditional coloring with stimulsoft?

Post by Lech Kulikowski » Tue Apr 20, 2021 9:42 pm

Hello,

Please send us a test data for your report and the necessary result, we will try to find a solution for you.

Thank you.
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Re: Can I do conditional coloring with stimulsoft?

Post by ynsemratk » Wed Apr 21, 2021 7:43 am

When the "Adi" column is the same, let the color be the same as in the pdf file I sent.sorry i don't know english very much. I hope you understand.
Attachments
sample.pdf
(192.1 KiB) Downloaded 25 times
expdata.rar
(538 Bytes) Downloaded 18 times
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Re: Can I do conditional coloring with stimulsoft?

Post by ynsemratk » Wed Apr 21, 2021 7:45 am

when the column that says "ÜRÜN ADI" in the report is the same.
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Can I do conditional coloring with stimulsoft?

Post by Lech Kulikowski » Fri Apr 23, 2021 9:55 pm

Hello,

You can use the following expression in the Condition:
(PreviousIsNull(new_table,"Adi") ? false : new_table.Adi == Previous(new_table,"Adi").ToString()) || (NextIsNull(new_table,"Adi") ? true : new_table.Adi == Next(new_table,"Adi").ToString())

Thank you.
Attachments
Screenshot 2021-04-23 235417.png
Screenshot 2021-04-23 235417.png (151.15 KiB) Viewed 343 times
Post Reply