- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 06:19 AM
Hello all,
I have a requirement, in a list view, I want to make a field (u_enable) editable to only one Assignment group,
On the form view, I have written a UI policy to show the 'Enable' field and make it mandatory, if the Assignment Group is some abc group.
But in the list view, every other Assignment group is able to Edit the field.
So, please help me on, the field can be visible on the list view, but other than abc assignment group, no other group can edit it.
Please help me how can I do this?
Regards,
Lucky
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 07:31 AM
Hi @Lucky1,
I've tweaked the script for you. This should work. It's tried and tested on my PDI.
answer = checkUser();
function checkUser(){
if (gs.getUser().isMemberOf('62826bf03710200044e0bfc8bcbe5df1')) { //replace the sys_id with your assignment group
return true;
}
else{
return false;
}
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 07:30 AM
Hello Satish,
I have also written the same right?
Regards,
Lucky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 07:31 AM
Hi @Lucky1,
I've tweaked the script for you. This should work. It's tried and tested on my PDI.
answer = checkUser();
function checkUser(){
if (gs.getUser().isMemberOf('62826bf03710200044e0bfc8bcbe5df1')) { //replace the sys_id with your assignment group
return true;
}
else{
return false;
}
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie