Limit selections on Tree picker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 09:15 AM
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 01:57 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 02:29 AM
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).