how to make only one field editable in list view and rest of them as non editable

Srini19
Tera Contributor

Hi Expert,

Need to make only one field editable in the list view. below is the use case. Please let me know your advise with some example if possible.

 

UC2
GIVEN THAT, I AM an XXX user
WHEN I open a list of SCTASKs (list view) which are assigned to my assignment group
THEN I'm unable edit any of the columns except "Assigned To" column. 

 

Thanks

Srini

 

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

You will need to create 3 list edit ACLs for this requirement:

  1. Create an ACL for the table using "SCTASKs.none" with no restriction
  2. Create an ACL for all fields in the table using "SCTASKs .*" with Advanced checkbox as true and in the script write -  answer = false;
  3. Create an allow ACL for the field you want to be editable using "SCTASKs .Assigned to"
    Again, Advanced checkbox will be true and in the script:
    answer = checkUser();
    function checkUser(){
        if(gs.getUser().isMemberOf(current.getValue("assignment_group"))){
            return true;
        }
        return false;
    }

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

 

Best Regards
Aman Kumar

View solution in original post

4 REPLIES 4

Aman Kumar S
Kilo Patron

Hey,

You will need to create 3 list edit ACLs for this requirement:

  1. Create an ACL for the table using "SCTASKs.none" with no restriction
  2. Create an ACL for all fields in the table using "SCTASKs .*" with Advanced checkbox as true and in the script write -  answer = false;
  3. Create an allow ACL for the field you want to be editable using "SCTASKs .Assigned to"
    Again, Advanced checkbox will be true and in the script:
    answer = checkUser();
    function checkUser(){
        if(gs.getUser().isMemberOf(current.getValue("assignment_group"))){
            return true;
        }
        return false;
    }

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

 

Best Regards
Aman Kumar

Hi Aman,

 

I have written the above 3 list edit ACL's but still can't edit the assigned to field.

 

Thanks

Srini

This has to work, please make sure whatever you have written is correct.

Also, with list edit make sure users also has write access for assigned to field

Best Regards
Aman Kumar

Trying to think of a way for people to not be able to edit the fields in list view? Is there an easy way to do this for a global application? I see that a UI Policy will not work for this.