- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 07:02 AM
Hi All,
I'm trying to hide "Edit" in the change task related list by using advance script in list control for people without change_manager role and also there is an OR condition with respect to state.
Please review my code,
var answer;
if(gs.hasRole == "change_manager" ) || (parent.state=='3' || parent.state=='4' || parent.state=='-2' || parent.state=='-13' || parent.state=='-14' || parent.state=='2' || !parent.active;)
{
answer=false;
}
else{
answer=true;
}
But what happens is the EDIT button is not visible to anyone with any role except ADMIN i even revoked all changes but the EDIT button is missing from the related list.
But NEW button is visible to Users
Can someone help me debug this issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 09:24 AM
The change_task table should be editable to the user. Make sure the MPI
Change Manager has write access to the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2016 06:27 AM
Hi David,
Again thanks for the information i updated the same and is working as expected.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2016 04:53 AM
Hi David,
I just created two ACL's on Change task and it helped me achieving the requirement.