Maintain First Patient Context Across Multi-Page DataBand

Stimulsoft Reports.NET discussion
Post Reply
pixsdp
Posts: 3
Joined: Mon Mar 23, 2026 2:39 am

Maintain First Patient Context Across Multi-Page DataBand

Post by pixsdp »

test01.mrt
(16.65 KiB) Downloaded 14 times
test01.json
(38.91 KiB) Downloaded 12 times
I want two databand in same a4 with first patient name, the issue occure when right databand has data more than one page then another page display next patient name, that wrong it should display first patient name. :cry:
Lech Kulikowski
Posts: 7729
Joined: Tue Mar 20, 2018 5:34 am

Re: Maintain First Patient Context Across Multi-Page DataBand

Post by Lech Kulikowski »

Hello,

In this case, you need to use a copy of your data source for the patient name.

Thank you.
Attachments
test01_modified.mrt
(20.08 KiB) Downloaded 14 times
pixsdp
Posts: 3
Joined: Mon Mar 23, 2026 2:39 am

Re: Maintain First Patient Context Across Multi-Page DataBand

Post by pixsdp »

Lech Kulikowski wrote: Mon Mar 23, 2026 8:54 pm Hello,

In this case, you need to use a copy of your data source for the patient name.

Thank you.
Hi ,
We need to filter data by profiletype like this:
O = One Day
C = Continue

For the report:
Show 1 AN per page only
If the AN changes, start a new page immediately
Do not mix multiple ANs on the same page

Also:
If one AN has a lot of records and spans multiple pages, keep showing the same AN on those pages
Only move to the next AN after finishing the current one

Currently, we have an issue with the patient name in the report:
When one AN spans multiple pages,
the next page sometimes shows the patient name from the next AN, which is incorrect

Expected behavior:
All pages belonging to the same AN should display the correct patient name of that AN
The patient name must not change until the report moves to a new AN

Could you please clarify how to properly structure the data source or grouping to fix this?
And whether using a separate data source for the patient name is the correct approach in this case?

Thank you.
Lech Kulikowski
Posts: 7729
Joined: Tue Mar 20, 2018 5:34 am

Re: Maintain First Patient Context Across Multi-Page DataBand

Post by Lech Kulikowski »

Hello,

In this case, you need to use the group bands. The modified report in the attachment.

Thank you.
Attachments
test01_modified2.mrt
(20.23 KiB) Downloaded 13 times
pixsdp
Posts: 3
Joined: Mon Mar 23, 2026 2:39 am

Re: Maintain First Patient Context Across Multi-Page DataBand

Post by pixsdp »

Lech Kulikowski wrote: Tue Mar 24, 2026 3:49 pm Hello,

In this case, you need to use the group bands. The modified report in the attachment.

Thank you.
Hi,

From my file, you can see that different patients (different names or AN) are appearing on the same page. I want the report to start on a new page whenever the patient changes, even if the patient has medications only on one side — either the right side (Continue) or the left side (Oneday).

Currently, I am filtering by profileType in the databand. What would be the best approach to handle this? :cry: :cry:

Thank you.
Attachments
test01_modified2me.mrt
(26.48 KiB) Downloaded 11 times
Lech Kulikowski
Posts: 7729
Joined: Tue Mar 20, 2018 5:34 am

Re: Maintain First Patient Context Across Multi-Page DataBand

Post by Lech Kulikowski »

Hello,

In this case, you can use the master-detail option instead of grouping.

Thank you.
Attachments
test01_modified3.mrt
(28.85 KiB) Downloaded 10 times
Post Reply