Locking row item/s from deletion for select few roles on the basis of another boolean formatted line
I need help in the below query,
I have a boolean formatted line item in source module published on a dashboard. As soon as the Boolean flag is marked “True” by ‘Role A or Role B’, the expectation is for corresponding row item/s to get locked from deletion for all roles except Role A & B on all the dashboards(two) wherever the row item is reflecting with a delete flag.
Please suggest a solution apart from 'giving selective access to Role A & B to the requisite list or source module' since the delete action is dependent on the boolean flag
@VIGNESH.M has a very good solution if that is your use case.
My idea was to use a system module that would be based on business rules you define, an assumption that your use case was a little more simple. If I'm wrong, let @VIGNESH.M and I know. We'll get you to the finish line.
Step 1: Create the system module. This is where you will set up your business rules that determine what can and cannot be deleted. You can put this on a dashboard, or keep it in the background so the user cannot override your decisions. In this case I have a simple rule. If Keep Me! is True then you cannot delete this county.
Step 2: Create a delete list action. that deletes counties that are marked for deletion. Notice only the counties that meet our business rules will be deleted, thus "locking" the other list items.
Step 3: Add the delete action to a dashboard so users can remove the list items that meet your business rules.