Requirement is to hide assignment groups from drop down if requestor is a member of the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 03:28 AM
Requirement is to hide assignment groups from drop down if requestor is a member of the group in catalog item.
Example i have a ABC variable which is referenced to sys_user_group table and will have active groups in drop down.
I have a variable XYZ where we need to give user name who need access, so when person name is given on ABC drop down only group which he is not member should be visible.
ABC is a variable in multirow and XYZ is single row variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 03:35 AM
Hi @sravya03 ,
You can use advance reference qualifier on your ABC field which is referencing to group table.
javascript:"sys_idNOTIN" + gs.getUser().getMyGroups()
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 03:49 AM
hi @Anubhav24
This is working but not for the XYZ variable but for person who is creating ticket(requested for)
In some cases ticket requested person is different from access needed person (XYZ Field value).
Could you pls tell for XYZ variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 05:20 AM
Hi Sravya,
In that case can you try to write a simple script include as below and call this script include in your reference qualifier as below:
javascript:new GetNonGroups().getnonusergroups(current.variables.<XYZ field name>);
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 06:49 PM