Limit selections on Tree picker

Steveneg
Tera Expert

Hi community, 

I was trying to figure out how to set a limit to the tree picker for the location reference field on incident form. But I couldn't find a solution to that...

Basically, we have a location hierarchy that looks like this: 
1 : Global location
1.1: country x
1.2: country y
1.1.1: city x
1.2.1: city y 

The requirement is to limit the selection tree to the first level and global. So only Global location and 1.1 & 1.2 should be available from the tree picker. 

Has anyone an idea on how to achieve that ? 

I have found out that this sys_property: glide.ui.group_heirarchy.max_nodes property was responsible for that. As it was not in our instance yet, I decided to create it, but it doesn't seem to work... (Tried both Hierarchy and Heirarchy btw)

Thanks in advance everyone ! 

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, I would suspect that you would use a reference qualifier to filter out the records that you did not want selectable.
Otherwise, perhaps an onChange client script to prevent population of the lower-level options, although this might result in a poor user experience.

Hi Tony, 

Thanks for taking the time to respond! Indeed, Reference qualifier will be my go to solution if I can't make it work with the system property. The only thing that is annoying with the reference qualifier solution is that the Tree Picker is still showing the little "+" sign even though I'm hiding all children. And I'd like to get rid of it (without script, ideally).