Making a GroupHeaderBand a component?

Stimulsoft Reports.JS discussion
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

Hey Lech, thanks for sending that over. However, I'm now trying to take it one step further. I am able to now create the Current + Previous info, but I am unable to get the databand to recognize that there are more than 1 object.

For example: looking at my JSON, I have 2 Totals within [ProjectRevisionFunding] that are objects within the great [CurrentProjectRevision] object, I want to get a total of both of their 'Total' values. I've tried doing the method of creating relationships, but the system is not recognizing that there are more than 1 object.

So rather than 12,360 I can only see 9,888
Attachments
Screen Shot 2024-01-03 at 2.55.17 PM.png
Screen Shot 2024-01-03 at 2.55.17 PM.png (19.81 KiB) Viewed 1199 times
Screen Shot 2024-01-03 at 2.52.01 PM.png
Screen Shot 2024-01-03 at 2.52.01 PM.png (236.42 KiB) Viewed 1199 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

You should add sub detail level.

Thank you.
Attachments
TIPProjectComparison3.mrt
(76.62 KiB) Downloaded 134 times
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

This is awesome, thank you very much Lech!

1 last question, If I now wanted to add alternating highlighted rows between these databands, how would I do that?

I've tried (Line % 2 == 0) but it doesn't seem to work
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

You can use an additional variable instead Line.

Thank you.
Attachments
TIPProjectComparison4.mrt
(78.49 KiB) Downloaded 129 times
Post Reply