How can we use OOB "SN Desktop Filter Widget" in Service Portal

chanch
Kilo Expert

I am trying to use OOB "SN Desktop Filter Widget" in Service Portal by creating clone of it, name as "SGAS Desktop Filter". Also passed table name and initial query in Server script and when I click on "Run" button of filter, nothing happened.
I understand there should be communication between filter widget and data table widget however there is no any document or article in ServiceNow communities, docs and youtube to understand about the OOB "SN Desktop Filter Widget" in Service Portal.

1 ACCEPTED SOLUTION

Rishabh Jha
Mega Guru

Hi @chanch 

If you're trying to show a data list, with the filter options at the top, you should probably use the "Data Table from Instance Definition" widget on your page. You can select the table, fields etc. that you want the widget to show, and as it has the filter widget included, and everything set-up to be used readily. All you need to do is to pass "enable_filter: true" in the widget instance option on the page, and it should show you the filters, and the filters will work without you needing to make any explicit changes.

Please refer to the screenshots below for reference:

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

Thanks & Regards,

Rishabh Jha

Aavenir (https://www.aavenir.com/)

 

View solution in original post

3 REPLIES 3

Rishabh Jha
Mega Guru

Hi @chanch 

If you're trying to show a data list, with the filter options at the top, you should probably use the "Data Table from Instance Definition" widget on your page. You can select the table, fields etc. that you want the widget to show, and as it has the filter widget included, and everything set-up to be used readily. All you need to do is to pass "enable_filter: true" in the widget instance option on the page, and it should show you the filters, and the filters will work without you needing to make any explicit changes.

Please refer to the screenshots below for reference:

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

Thanks & Regards,

Rishabh Jha

Aavenir (https://www.aavenir.com/)

 

Thanks a lot Rishabh. Now it works as expected. 

Hi Rishabh Jha,

But if i want to put this Filter Breadcrumb Widget with My Request widget , which is shown in the Service Portal Request Tab then how can i attach it to that table so that it responses as per the displayed My Request Table