Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hierarchy and select children from parent

Hello all,

I am using QV9SR4.

I have created a hierarchy of my data to show as a tree in a listbox. However, when I select a parent it only selects itself, not its children. Am I missing something - sample document attached.

Is this what HierarchyBelongsTo does? I'm afraid I find the help not very so - I wont embarrass myself and tell you how long it took me to work out how to use 'hierarchy'!

Thanks for any help.

Regards,

Gordon

5 Replies
spividori
Specialist
Specialist

Hi.

If I understood correctly, you should have closed and select the node to be selected children as well.

img1.JPGimg2.JPG
img3.JPG

Regards.

Not applicable
Author

Thanks for the reply - I was afraid that was how it was supposed to work.

Yuk. I dont like that.

I think using a standard multibox is better functionally even if it doesnt show the structure quite so well.

Regards,

Gordon

PS Do you know what HierarchyBelongsTo does? The manual is useless in this area - the examples are just an extended version of the syntax.

hdonald
Creator
Creator

Hi,

HierarchyBelongsTo might allow you to alter slightly the behaviour you don't like on the tree view when it's expanded - e.g. create an Ancestor Name whose selection picks up everything below it in the hierachy, then put an action on the PathName to select the relevant ancestor name if a single top level Name is selected - everything below it in the path then becomes a 'possible' selection - see attached example.

You could maybe add a macro to select those possible values if necessary,

Regards,

HD

brindlogcool
Creator III
Creator III

Hi Gordan,

Did you got the solution

Quamie
Contributor II
Contributor II

Your solution worked great, thanks!