- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 09:16 AM
We have a table with list of Records. 2 different groups should see different views based on their roles. As shown in images, the table "posts" has 2 views "My Posts" and "Risk Admin". I created 2 modules with different names under application menu and mentioned view name in "View Name" field. But when I open them, I could see only one view applied. I can change views in List Control, when I change it applies across the table where ever it's used. It looks like View Name does not have an impact on this. I thought of using ACL to restrict but I could see an error message "Security constraints prevents you from viewing this", which looks bad in front of customer. Can anyone help me?
Posts Module:
List Of Records:
Posts(RiskAdmin module) :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 10:09 AM
Try impersonating your target users. As an admin you can select a view and this will apply as a user preference that will bypass the view you did setup in the module. So your users might be alright with the configurations you made.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 09:24 AM
In stead of that create one module, create view rule
http://wiki.servicenow.com/index.php?title=Restrict_Form_Views_by_Role#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 10:02 AM
I followed the process mentioned in above link. However I got below error. Does this work on scoped application? If yes, do we have any syntax changes?
org.mozilla.javascript.EcmaError: "view" is not defined.
Caused by error in Business Rule: 'Risk Admin Form View' at line 3
1: function onDisplay(current, g_scratchpad)
2: {
==> 3: x_22344_a_b_c_post_listGetViewName();
4: }
5:
6: function x_22344_a_b_c_postGetViewName()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 10:06 AM
Well, I am in FUJI, so I can not see 'Advanced' check box.