Notifications

6 views

Description

Advanced / scripted view rules do not override user preference but normal view rule works.

Steps to Reproduce

1) Go to Any build of Helsinki/Istanbul/Jakarta(trackui-03-03-2015_03-28-2017_1755)
2) Go to View Rules
3) Click New
4) Name it anything
Change the Table to Incident
Check the Advanced box
In the script field, add the following code:
(function overrideView(view, is_list) {
if(gs.hasRole("itil"))
answer = 'Mobile';
})(view, is_list);
5) Click Save
6) Go to incident list
7) Open any record - You're forced to Mobile as expected
8) Change the View to any other view, Password/Metrics/Major Incidents
Expectation: You're forced back into Mobile view
Actual: Your user preference is honored and you can see the view you change to.

Workaround

After carefully considering the severity and frequency of the issue, and risk of attempting a fix, it has been decided not to address this issue. We do not make this decision lightly, and we apologize for any inconvenience. If you have any questions regarding this problem, contact ServiceNow Customer Support.

 

The other ways by views can be enforced are following.

1.Navigation handler: https://docs.servicenow.com/bundle/helsinki-platform-user-interface/page/administer/navigation-and-ui/concept/c_NavigationHandler.html

2. SwitchView on client side: https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_GMODV3-switchView_S

3. Business Rules


Related Problem: PRB907335

Seen In

There is no data to report.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-11-29 06:54:18
Published:2018-11-29