Master-detail report

Stimulsoft Reports.WEB discussion
Post Reply
progalion
Posts: 10
Joined: Mon Nov 13, 2023 9:39 am

Master-detail report

Post by progalion »

Greetings

I have a question about master detail reports
consider I have two datasources : Categories - Products
but I can't create relation between these two , is there any alternate way to make them master detail?
for example with code or other bands etc...

any help would be greatly appreciated.
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Master-detail report

Post by Lech Kulikowski »

Hello,

You can add a filter for the details band:
Products.CategoryID == Categories.CategoryID

Thank you.
progalion
Posts: 10
Joined: Mon Nov 13, 2023 9:39 am

Re: Master-detail report

Post by progalion »

Hi
Do I have to set the master component for the details band?

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

Re: Master-detail report

Post by Lech Kulikowski »

Hello,

Yes, you should set the MasterComponent property.

Thank you.
progalion
Posts: 10
Joined: Mon Nov 13, 2023 9:39 am

Re: Master-detail report

Post by progalion »

HI

I tried what you said but the result is not what I expected , I don't know what part I did wrong.
ReportMasterDetail.mrt
(138.48 KiB) Downloaded 466 times
Thanks
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Master-detail report

Post by Lech Kulikowski »

Hello,

Please set the MultipleInitialization=true property for the detail databand.

Thank you.
progalion
Posts: 10
Joined: Mon Nov 13, 2023 9:39 am

Re: Master-detail report

Post by progalion »

Hello
It worked
Thank you so much.
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Master-detail report

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply