We are using a tree view in a lookup popup, and I was wondering if there was a way to only allow selecting the leave nodes.
We use the tree view at multiple locations, one to show a hierarchy with project locations and one to show product types and families.
To also use this view as lookup popup to select products and locations, the user should not be allowed to select product families, and not be allowed to put products in locations with branches,
The default procedure doesn’t seem to have an output parameter which makes it possible to enable / disable the select button, and I was wondering if there was another way to achieve this. ( For example, making the lookup value a column different from the PK and setting it to NULL or something ).
Solved
Only allow selecting leave nodes in Tree view lookup
Best answer by Leroy Witteveen
Hi
Have you tried setting Subjects → Settings → Tree Type to “Column” instead of “Hierarchical"?
In that type of tree the non leaf nodes aren't selectable.
It only works if you always have the same amount of parents though, as it decides the grouping based on Subjects → Data → Sort → Group until.
Kind regards,
Leroy Witteveen
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.