Hide tree picker levels for location selection coming from WSD

Yopisn
Tera Contributor

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.

6 REPLIES 6

Raj_Esh
Kilo Sage
Kilo Sage

Hi @Yopisn 

 

This can be achieved but needs the customisation of the widget. The question is where your using the location tree picker?

--Raj

Yopisn
Tera Contributor

Hi @Raj_Esh, the location tree picker is used on the backend through reference fields to cmn_location table

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. 

 

 

 

--Raj

Yopisn
Tera Contributor

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.