How to set dynamic filter in simple list widget?

curtisnelson
Kilo Explorer

In Helsinki, I've added a simple list widget to our service portal.   How do I specify a dynamic filter so the list only shows the tasks for the current user? And which list page do I specify to show those tasks when clicked on?

Thanks

1 ACCEPTED SOLUTION

tltoulson
Kilo Sage

Hi Curtis,



To specify a Dynamic Filter, the easiest way is to capture the encoded query string for your filter using this wiki article: Encoded Query Strings - ServiceNow Wiki.   Then paste that filter string into the edit panel of the widget in the Service Portal Designer.



You can also edit the widget by navigating to the Service Portal page the widget is on, CTRL+Clicking the widget, and then selecting Instance Options from the context menu.



Screen Shot 2016-06-13 at 11.10.09 AM.png



The page can technically be any page with widgets that accept the following parameters: sys_id, table, view.



The out of box page for this is Ticket Form but just plain ol Form might work for it as well.



Kind regards,



Travis Toulson


View solution in original post

10 REPLIES 10

tltoulson
Kilo Sage

Hi Curtis,



To specify a Dynamic Filter, the easiest way is to capture the encoded query string for your filter using this wiki article: Encoded Query Strings - ServiceNow Wiki.   Then paste that filter string into the edit panel of the widget in the Service Portal Designer.



You can also edit the widget by navigating to the Service Portal page the widget is on, CTRL+Clicking the widget, and then selecting Instance Options from the context menu.



Screen Shot 2016-06-13 at 11.10.09 AM.png



The page can technically be any page with widgets that accept the following parameters: sys_id, table, view.



The out of box page for this is Ticket Form but just plain ol Form might work for it as well.



Kind regards,



Travis Toulson


Thank you very much for the helpful reply.


jesusemelendezm
Mega Guru

Hi Travis,


I need to add a widget to a page that show a list of a table and also allow end users configure the filter. Just like a typical ServiceNow list. Basically, all I need is the typical list view on the ServiceNow with its breadcrumb and filter.Can you please provide me some hints about it?


Hello Jesus,Did you figure out how to show the breadcrumb and filter?


I'm currently trying to do the same thing.