Hide tree picker levels for location selection coming from WSD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2024 11:32 AM - edited ‎09-12-2024 12:15 PM
Hello Community,
I am going through a request where we need to hide some levels in the tree picker for location selection.
Since the data is created through WSD Indoor Mapping and synched to the WSD location tables (inheriting cmn_location), the following hierarchy is created in the location table (identified throught the "Location type" field): Region > Site > Campus > Building > Floor > Area (Optional) > Room/Space. This hierarchy makes sense in Indoor Mapping when configuring the floor maps.
However, when selecting a location on forms (eg. user's location) and using the tree picker feature, we see the same hierarchy, but we don't need to see Region and Site levels. We want users to see the hierarchy directly from the Campus level.
Is there a way to do that?
I tried using reference qualifier to hide the levels by filtering the "Location type", but is breaks the tree picker.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2024 07:28 AM
Hi @Yopisn
This can be achieved but needs the customisation of the widget. The question is where your using the location tree picker?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2024 12:17 PM
Hi @Raj_Esh, the location tree picker is used on the backend through reference fields to cmn_location table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 09:20 AM
Hi @Yopisn
Currently, what' the reference qualifier your using on the variable? You may need to write a script include and call it in variable reference qualifier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 11:13 AM - edited ‎09-17-2024 11:14 AM
Hi @Raj_Esh,
If I take the previous exemple which is user's location, the field is the OOTB configuration, there is no reference qualifier. It only has an attribute "Tree picker" set to True.
As mentioned, if I try using a reference qualifier to hide the levels by filtering the "Location type" to exclude "Region" and "Site", it breaks the tree picker.