Creating conditions to cross-tab headers

Stimulsoft Reports.NET discussion
victorscapin
Posts: 5
Joined: Wed Apr 05, 2017 2:41 pm

Creating conditions to cross-tab headers

Post by victorscapin »

Hello,

I'm trying to create a condition for the column of crosstab. What i want to do is:
Based on the value of the colum "produto", which is dynamic, i want to change the header's style, but for some reason it always applies the condition of the last column that is created, in my case, "DIESEL A-S10 PURO", as you can see on attach.

What am i doing wrong?

Regards
Attachments
crosstab.jpg
crosstab.jpg (214.26 KiB) Viewed 5640 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Creating conditions to cross-tab headers

Post by HighAley »

Hello.

The Cross-tab is a complicated component.
There is no exact DataSource row for each band instance.
The calculation goes through all rows for each cell.
So you should use conditions different way.
You could read about this on the User Manual.

Thank you.
victorscapin
Posts: 5
Joined: Wed Apr 05, 2017 2:41 pm

Re: Creating conditions to cross-tab headers

Post by victorscapin »

Hi,

Thanks for answering.

I looked at the manual, but the examples does not fit my case.
What i need is to change the header color based on the title, the cells must remain intact. Is there a way to do it using crosstab or i would have to create static columns?
Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating conditions to cross-tab headers

Post by Alex K. »

Hello,

We need some additional time to prepare a sample for you.

Thank you.
victorscapin
Posts: 5
Joined: Wed Apr 05, 2017 2:41 pm

Re: Creating conditions to cross-tab headers

Post by victorscapin »

Hello,

Ok, thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating conditions to cross-tab headers

Post by Alex K. »

Hello,

In this case, you can add Tag for the Header Column and then use it in the Condition.
Please check the sample report in the attachment.

Thank you.
Attachments
HeaderCondition.mrt
(24.47 KiB) Downloaded 444 times
victorscapin
Posts: 5
Joined: Wed Apr 05, 2017 2:41 pm

Re: Creating conditions to cross-tab headers

Post by victorscapin »

Hello, i'm trying to apply on my case.

What doest the tag mean? It's not the value nor a property of cross-clomun, i didn't understand what the tag is.

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating conditions to cross-tab headers

Post by Alex K. »

Hello,

Please check the Interaction property.

Thank you.
Attachments
Capture.PNG
Capture.PNG (72.24 KiB) Viewed 5582 times
victorscapin
Posts: 5
Joined: Wed Apr 05, 2017 2:41 pm

Re: Creating conditions to cross-tab headers

Post by victorscapin »

Hi,

Success!

Thanks a lot.
Attachments
crosstab solved.jpg
crosstab solved.jpg (41.09 KiB) Viewed 5578 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating conditions to cross-tab headers

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply