Making a GroupHeaderBand a component?

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

Making a GroupHeaderBand a component?

Post by ericp »

Due to the complexity of my report, I needed to create a GroupDataBand + Databand to combine 2 objects in my JSON. Part of my report is comparing current data vs previous data. I am currently able to do it by having these GroupHeaderBands separate (in my second screenshot), but what I really want it to do is to have them show grouped and not all current data and then all previous data.. (almost like a component if it were a regular Databand)

When I try to move the GroupHeaderBand up together, it does not display correctly as it seems to need the Databands next to the GroupHeaderBand to show the correct information. (as you can see in the screenshot with red markings, it's just repeating the first project number)
Attachments
Screen Shot 2023-12-19 at 9.43.37 AM.png
Screen Shot 2023-12-19 at 9.43.37 AM.png (99.92 KiB) Viewed 2414 times
Screen Shot 2023-12-19 at 9.41.19 AM.png
Screen Shot 2023-12-19 at 9.41.19 AM.png (205.48 KiB) Viewed 2414 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data for analysis. Also, please provide the necessary result. We will try to find a solution for you.

Thank you.
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

Hi Lech, please see the attached for the MRT file that we're working on.
Attachments
TIPProjectComparison.mrt
(149.18 KiB) Downloaded 99 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue. Please check the last release build.

Thank you.
Attachments
Screenshot 2023-12-21 234901.png
Screenshot 2023-12-21 234901.png (123.21 KiB) Viewed 2269 times
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

Lech that is how I left the mrt file. What I want to do is to make Groupdataband2 as a subcomponent to Groupdataband1. As you can see right now we’re showing all of the info for Groupdataband1 and then info for Groupdataband2. Ideally we want it to be like this format:

Groupdataband1 object 1
Groupdataband2 object 1
Groupdataband1 object 2
Groupdataband2 object 2
Etc..

Right now for format is doing

Groupdataband1 object 1
Groupdataband1 object 2
Groupdataband2 object 1
Groupdataband2 object 2
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your task. Your groups are the same. Could you sho the necessary result?

Thank you.
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

Please see the screenshot below as I try to better explain:

Currently in the MRT File, I have 2 separate GroupHeaderBands (1 for CurrentProject Info and 1 for PreviousProject Info) I'm trying to create a table that puts them right next to each other so that it is easier to compare the difference between Current and Previous. I have been unable to do this (as you can see in the current MRT file, it displays all CurrentProject Info and then all PreviousProject Info. This is hard because as our list gets longer, we will have to scroll up and down more in order to see the differences between the two.
Attachments
Screen Shot 2023-12-26 at 12.46.40 PM.png
Screen Shot 2023-12-26 at 12.46.40 PM.png (730.07 KiB) Viewed 2173 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

In that case, you should use master-detail construction instead of the grouping.
You can add master source with all Object ids and two details Current and Previous.

Thank you.
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Making a GroupHeaderBand a component?

Post by ericp »

Hey Lech, I have tried and having issues doing it. Could you please send an example?

In an earlier ticket you mentioned to use Grouping: viewtopic.php?t=61429

So if I try to use the Master-Detailed Source, I run into that same duplicate issue.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Making a GroupHeaderBand a component?

Post by Lech Kulikowski »

Hello,

Please check the modified report.

Thank you.
Attachments
TIPProjectComparison2.mrt
(74.27 KiB) Downloaded 101 times
Post Reply