View Rules - Force the DEFAULT view? Not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 01:43 PM
Has anyone ever used a View Rule to force users to see the 'Default view'? I checked in sys_ui_view and it seems the Default view does not have a name (it is empty). Therefore I do not know what to return from my view rule. I am returning an empty string, but it is still allowing the users to change the view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2019 05:36 AM
Hello,
Assuming that users are accessing the records from a module taking them to a list of records and then users are selecting a record from the list (i.e Incident-->Open--->record). You can enforce the user preference of the view in the module arguments
sysparm_userpref.tablename_list.view=viewone&sysparm_userpref.tablename.view=viewtwo
So for example if you want to enforce users to have a default list view for incident list and record from module, you can give below arguments
sysparm_userpref.incident_list.view=&sysparm_userpref.incident.view=
Since default view has no value I have replace the viewone and viewtwo with blanks
Regards,
Jagadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 04:06 AM
Hi,
Thanks so much for this response!! I've spent so much time before I finally saw this solution.
What a relief that finally something works.
Maybe the only remark is that it worked for me in this form:
&sysparm_userpref.incident.view=defaultThanks again,
Aniko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 12:56 AM

