- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 07:20 AM
I have a group with several users that require their own view of the INC form.
Here is what I did so far:
- created a new role for this group (GMM)
- assigned that role to the group
- created a new System UI --> View called 'GMM'
- created a View Rule on table = incident as advanced and added code below
(function overrideView(view, is_list) {
if (gs.getUser().hasRoles('gmm'))
answer = "GMM"; // set the new view to answer
})(view, is_list); - When I went to the INC form there was still no view called GMM, so I went to Form Layout and added the view 'GMM'.
- I impersonated a user in the group and still my default layout was 'Default'
What did I miss?
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 12:34 PM
Hi
change the code
Try this
(function overrideView(view, is_list)
{
if (gs.hasRole(''gmm''))
{
answer = "GMM"; // set the new view to answer
return answer;
}
})(view, is_list);
correct it in your code and try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2019 12:34 PM
Hi
change the code
Try this
(function overrideView(view, is_list)
{
if (gs.hasRole(''gmm''))
{
answer = "GMM"; // set the new view to answer
return answer;
}
})(view, is_list);
correct it in your code and try