Apply filter to WSD Location Integration with Picker widget - 'Location'

Julie Gordon
Mega Sage

Within the WSD Location Integration with Picker widget, the 'Location' option displays all Active buildings. 

location.jpg

 I need a filter to only show Active buildings on 1 Campus. 

 

I think I've found the part of the widget where it's being filtered, but when I make any changes, it shows No Results.

code.jpg

 

I've tried multiple ways but nothing works.  Any help is appreciated. 

1 ACCEPTED SOLUTION

Sarthak-  Again thank you for your time & suggestions. 

I was able to get my desired result using 'active=true^parent=7f986d051bc079504e8adca1b24bcbc3' .  For some reason it likes the Parent field, but not the Campus field & it wanted the sys_id of the parent. 

View solution in original post

7 REPLIES 7

@Julie Gordon ,

 

Can you please share full HTML code also? 

 

Or you can try with my code that I shared, you can call sn-record-picker from HTML only, pass the filter condition there it will work.

<sn-record-picker 
    field="number" 
    table="'incident'" 
    display-field="'incident'" 
    value-field="'number'" 
    search-fields="'number'" 
    page-size="100" 
    default-query="'active=true^state=1'">
</sn-record-picker>

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

 

I'm using the OOB HTML code from the WSD Location Integration with Picker service portal widget. 

JulieGordon_0-1762523696338.png

I was trying to edit the filter conditions in the Client Controller section, but obviously not working for me. 

Sarthak-  Again thank you for your time & suggestions. 

I was able to get my desired result using 'active=true^parent=7f986d051bc079504e8adca1b24bcbc3' .  For some reason it likes the Parent field, but not the Campus field & it wanted the sys_id of the parent.