How i can override view rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 01:42 AM
Hello,
i have problem with my new module.
I try to open lists with a new view. I use "sysparm_view" in URL address. It's working good in incident list but not working in change request list, because have view rules.
How i can override view rule via url params or other way?
Thanks,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 02:06 AM
Hey Robert,
There are actually a number of ways in doing is. I would however recommend you use the ACL security feature. One way of doing it is to enable your security debugging and to look for the specific thing you wish to restrict and add the required role to that entry.
You need to look for the "Read" access and then add the roles that may have access to it.
So to simplify:
Type in "debug" in your filter on the left hand side. Then choose "Debug All Security". Go to the form where you wish to restrict something. Scroll down and look for a entry like this for example. Click on the blue link to it.
IMPORTANT! YOU MUST BE SECURITY ADMIN TO CHANGE THIS! If you scroll a bit down you should see "Requires Role".
If it is blank, everyone can see it - add the roles you want, then only the users that have those specific roles will be able to see it.
Hope this helps you.
PS. don't try and do this with scripting - the ACL overrides this...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 02:44 AM
Hi Gysbertus ,
Thanks for answer but i do not want to change permission for change request record . I want change a view when ITIL user opened URL . In other way should run view rules .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 02:47 AM
Ok, so you want to apply a certain view if the user has the ITIL role?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 02:55 AM
No, i want switch view depending on the module.
My custom module:
Link type: URL(from Arguments:)
Arguments: change_request_list.do?sysparm_view=my_custom_view&sysparm_filter_pinned=true
In Incidents works well but Change Requests have view rules and overrides my sysparm_view.