Hierarchical Setting Parent Value

Stimulsoft Reports.NET discussion
Post Reply
admin@secsol.co.uk
Posts: 82
Joined: Wed Jun 01, 2022 8:26 am

Hierarchical Setting Parent Value

Post by admin@secsol.co.uk »

Hi,

Is it possible to set the Parent value for a Hierarchical band from a business Object field rather that setting a value?

I tried setting the value using an expression SelectedSection.ParentSection - where ParentSection is an int value and it didn't throw an error but didn't show any data either.
Lech Kulikowski
Posts: 7782
Joined: Tue Mar 20, 2018 5:34 am

Re: Hierarchical Setting Parent Value

Post by Lech Kulikowski »

Hello,

Unfortunately, setting the "Parent Value" property of a Hierarchical band from a business object field is not supported. This property does not support expressions.

Thank you.
admin@secsol.co.uk
Posts: 82
Joined: Wed Jun 01, 2022 8:26 am

Re: Hierarchical Setting Parent Value

Post by admin@secsol.co.uk »

Is there any way of setting it in code?

If you look at the attached image (Section Tree) I am using the Section Parent and Section Number to group the tree.

I have set the Parent to 0 and If I pick a top level section like Variations (i.e. Section Parent = 0) the report works fine.

But if the user only wants some of the tree printed and picks say section VAR 1 (section Parent = 11) nothing prints.

I would need to set the Parent to be 11 to get this to print.

(Ignore the top level WHOLE ESIMATE as this is not actually part of the tree)
Attachments
Section Tree.jpg
Section Tree.jpg (29.96 KiB) Viewed 151 times
Post Reply