- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 04:46 AM
Morning!
I am looking to enfoce a view based on a role.
Example:
IF user has Role A, enforce View A
All other users enforce View B
View A = Finance Tranformaiton
View B = Default
Role A = Finance
I am trying to accomplish this via a scripted view rule, and am not having any success.
Looking to have the group of users with the role be enforced to the finance view. ALl other users would be sent to the default view, or the last view that they selected.
Any asisstance that you can provide with this scripted view rule would be greatly appriciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 07:25 AM
I was able to self solve for anyone that runs into a similar issue
(function overrideView(view, is_list) {
answer = view;
if (gs.hasRole("finance_transformation"))
answer = "Finance_Transformation";
})(view, is_list);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 07:25 AM
I was able to self solve for anyone that runs into a similar issue
(function overrideView(view, is_list) {
answer = view;
if (gs.hasRole("finance_transformation"))
answer = "Finance_Transformation";
})(view, is_list);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 11:50 AM - edited 08-05-2024 12:08 PM
Hi Patrick
May i know where do i write above script
regards
Harshal