Page 1 of 1

Master-detail report

Posted: Sat May 18, 2024 8:59 am
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.

Re: Master-detail report

Posted: Mon May 20, 2024 6:33 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Master-detail report

Posted: Mon May 20, 2024 9:01 pm
by progalion
Hi
Do I have to set the master component for the details band?

Thank you

Re: Master-detail report

Posted: Mon May 20, 2024 9:42 pm
by Lech Kulikowski
Hello,

Yes, you should set the MasterComponent property.

Thank you.

Re: Master-detail report

Posted: Mon May 20, 2024 10:22 pm
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

Re: Master-detail report

Posted: Tue May 21, 2024 8:33 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Master-detail report

Posted: Tue May 28, 2024 6:44 am
by progalion
Hello
It worked
Thank you so much.

Re: Master-detail report

Posted: Tue May 28, 2024 6:50 am
by Max Shamanov
Hello,

You are welcome!