- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 10:30 AM
Any idea how to call isMemberOf() from client side (onLoad) or any alternatives ?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 10:39 AM
Hi,
You can write a Display Business Rule on the required table and store the value in Scratchpad variable as mentioned below:
g_scratchpad.grp = gs.getUser().isMemberOf(''); //Mention the name of the Group you want to check
Based on this scratchpad value you can check on the client side as required:
if(g_scratchpad.grp =='true')
{
......Write your validations here as required
}
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 10:39 AM
Hi,
You can write a Display Business Rule on the required table and store the value in Scratchpad variable as mentioned below:
g_scratchpad.grp = gs.getUser().isMemberOf(''); //Mention the name of the Group you want to check
Based on this scratchpad value you can check on the client side as required:
if(g_scratchpad.grp =='true')
{
......Write your validations here as required
}
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 11:21 AM
This is perfect for me, Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2018 01:21 PM
This doesnt work in a business rule..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2019 10:40 AM
I have a variable (from variable set) on a service catalog that should be visible only to a group's members. How do it work for catalog item in service portal? Where should the BR be applied?
Thanks in Advance!