Tree business object on band

Stimulsoft Reports.WPF discussion
Post Reply
Niqu
Posts: 81
Joined: Wed Aug 08, 2012 9:08 am

Tree business object on band

Post by Niqu »

Hello.

I have a business object that look like tree - it has one parent (or zero if it is roof) and can have some children. I want to display it, but I have got some troubles.
There is a HierarchicalBand and I saw your examples about it, but all examples are about data source. I couldn't find any about business object. The main different for me is that I didn't know exactly what should I put in "Key Data Column" and "Master Key Data".
Maybe you will have some advice? Perhaps is it impossible to use object like this in HierarchicalBands?

In attachment I am sending report and project to fill report data.

Thank you in advance for any help.
Attachments
Report.mrt
(6.32 KiB) Downloaded 178 times
StimulsoftWpfApplication2.zip
(1.68 MiB) Downloaded 192 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Tree business object on band

Post by Alex K. »

Hello,

Most probably, in this case, you need use master-detail report instead Hierarchical.
Please check the modified report in attachment.

Thank you.
Attachments
ReportTree.mrt
(9.01 KiB) Downloaded 191 times
Niqu
Posts: 81
Joined: Wed Aug 08, 2012 9:08 am

Re: Tree business object on band

Post by Niqu »

Thank you for answer. Yes it is good solution, but in this case Children also can have Children (I didn't add more business object, becouse was problem with names), so it will not work exactly as I wanted.
However, I flattening my tree to list, so problem solved.

Thank you for help once again.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Tree business object on band

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.

Thank you.
Post Reply