Restrict Bulk update in list view

Saurabh Kolte
Kilo Contributor

Hello I want to restrict bulk update of one field in list view. But I want to allow users to update only one record in list view at a time. If he/she uses to update multiple records in list view it should not be allowed. Can somebody please help in this issue.

Thanks,

Saurabh

1 ACCEPTED SOLUTION

Dominik Simunek
Tera Guru

That's really interesting requirement. You have to allow list editing by having list-edit ACLs returning true - otherwise users won't be able to update field values in list. However in those ACLs you don't know if it is being updated as part of multiple records or not as you still have just "current" object. One work-around could be to use "onCellEdit" client scripts where you could check if there is only one (then allow) or more sysIDs (then restrict) selected (Client script types ). The problem is that this is not real security as it could be avoided - it checks only on client, not server side. So it depends how critical it is to restrict it or if it is more just user guidance to avoid mistakes using list editing.


View solution in original post

5 REPLIES 5

Bharath40
Giga Guru

Hi Saurabh,



We have one role list_updater role , all users with this role can bulk update list view. Try writing ACL with gs.hasRoleExactly return false for that field. This is just an idea this should help you to start.


Dominik Simunek
Tera Guru

That's really interesting requirement. You have to allow list editing by having list-edit ACLs returning true - otherwise users won't be able to update field values in list. However in those ACLs you don't know if it is being updated as part of multiple records or not as you still have just "current" object. One work-around could be to use "onCellEdit" client scripts where you could check if there is only one (then allow) or more sysIDs (then restrict) selected (Client script types ). The problem is that this is not real security as it could be avoided - it checks only on client, not server side. So it depends how critical it is to restrict it or if it is more just user guidance to avoid mistakes using list editing.


Hello Dominic,


The workaround for on cell edit client script is working fine. But as you said I will still try to implement it with ACLS.



Thank you so much,


Saurabh


Hi Saurabh,

 

Were you able to achieve the solution for this using ACL ?