UI Builder: Using a dynamic filter on a dropdown component

tcastleman
Tera Guru

Some background on what I'm trying to do, I'm working in an instance that uses dashboards in the native view. This particular dashboard has a tab full of metric analytics reports. You can drive into those reports and see the metrics. This dashboard also has a dropdown at the top for leads to report off certain leads. That dropdown drives those metrics on that tab. Everything works fine on the backend or native view. 

 

I was tasked with building this dashboard out in an experience we have been using for a year plus now. I have everything built out and my only blocker is figuring out how to use the dropdown component as a filter. 

 

So when a user chooses one or multiple leads in the dropdown that it will filter the metrics on that tab in the workspace.

 

I've tried using the filter component but can't get the users I want from a certain group to populate in the filter.

I've tried using the the filter script found on the component page as an event for the dropdown selection. 

I've tried doing this from a KB article shared with me but didn't have any luck. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1156652

 

So I'm hoping somewhere here can help as documentation isn't abundant for UI Builder at the moment on this topic.

1 REPLY 1

Akhila11
Tera Contributor

Hey even I tried the same article you have mentioned but it didn't work for me as well so I tried searching for passing encoded query to data visualization component and I found this article https://www.servicenow.com/community/next-experience-articles/ui-builder-filters-with-encoded-query-...

It worked for me hope this helps