What controls the display of a filter in the list

johannes5
Giga Expert

Hi ServiceNow Community Developers,


Happy New Year to all of you and all the best for 2015 and beyond!


I have an unlicensed user who is unable to see the filter for a list she is on, as a result she is unable to click the arrow (arrow.png) that allows her to specify her own conditions and be able to get a subset of data she wants to work with in the table. If I give her the itil role in Sandbox she is able to see the filter used in the list and is able to change it and build her own filter to get whatever data she wants. I therefore concluded that the reason why she cannot see the filter in production is because of her access, it looks like the system does not allow unlicensed users (users with no roles) to see the filter that is used by whatever list they are on, the system hides it so users can only see data from whatever filter is defined for that list.


The question I have though is, do you guys know where in the system is that defined? In other words where in the system does it specify that only users with certain role(s) can see the filter used in a list and be able to change it. Is this done in a UI Property or an ACL. I have looked in the system but I was not able to find where this is defined. Please advise.


Thanks,

Johannes

1 ACCEPTED SOLUTION

This is pretty unique functionality as you don't actually have to call the script include. By naming it <tablename>DisplayFilter it will automatically get called whenever that table's list is rendered.


View solution in original post

10 REPLIES 10

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Take a look at the following wiki article. There's a script include you can add per table that will allow ess users to see the filter.



Restricting Filters and Breadcrumbs - ServiceNow Wiki


Hi Brad,



Thanks for pointing me to this wiki article I think its very helpful. Do you know where and when do I call the script include? ESS / Unlicensed users are seeing a list of incidents and I would like to give them the ability to see the filter and be able to change it anyway they want want so they can work with whatever subset of data they want to work with. I can follow & understand the   script include example on the wiki but I am confused as to when and where and do I call it from because usually I call script includes either from client scripts or from the dictionary (reference qual or default value). Please advise.



Thanks,


Johannes


This is pretty unique functionality as you don't actually have to call the script include. By naming it <tablename>DisplayFilter it will automatically get called whenever that table's list is rendered.


It works, thank you very much Brad!