
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2016 07:42 AM
Hi everyone
I've checked the other posts in the community and found that I can either use a ScriptInclude "DisplayFilter" or the list control to restrict users to use the breadcrumb and filter.
But on our list control for sysapproval_approver no roles were set and the property "omit filter" was disabled.
The only scrit include, business rulle, or whatever with "DisplayFilter" was the incidentDisplayFilter Script Include.
The first thing I tried was setting the list control property "Filter roles" to public. After clearing the cache and reloading the navigator the filter and breadcrumb were still not visisble for ess users.
Then I created the following script include to achieve my goal and I also cleared the cache and reloaded the navigator. But still ess users aren't able to see it.
Any further suggestions? I tried it with different itil users...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2016 06:59 AM
Hi all
I think the solution is:
You need to actively allow an ess user the filter. Either by setting the list control filter roles to pbulic or by adding a script inlcude that returns always true.
BUT: it's not working right away. Even if you clear the ServiceNow cache and the browser cache you have to wait several hours till it works.
In my case I recognized on the next work day that "by magic" it worked now.
So to all of you a big thank you for your posts.
Christina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2016 09:01 AM
Hi Christina,
What list are you trying to get the filter from? Is it a module or a gauge on a homepage? Also, are you wanting to give filter access to itil or ess users? I duplicated your script include in my dev instance and it appeared to work for ess users, but it shouldn't even be necessary for itil users.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2016 01:43 AM
Hi Brad
I want to give filter access to ess users. For itil users it's working.
The module to open the list is configured as a list of records with the arguments
state=requested&sysparm_fixed_query=approver=javascript:getMyApprovals()^ORapprover.manager=javascript:gs.getUserID()
By the way the Requested Items list also shows no filter for ess users... Only the incident list and there the script include is working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2016 02:01 AM
sysparm_fixed_query parameter used to make the filter non editable. Remove this and should become editable again.
You can define the query using the condition field of the module.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2016 06:00 AM