cmj

Deletions Never Deleted

Discussion created by cmj on Mar 13, 2018
Latest reply on Mar 13, 2018 by Malcolm

I'm not allowing deletions in my DB for any users (set through permissions). However, I will have some "delete" buttons that will be tied to a script that changes a value in a field called "StatusDeleted". The record will not be actually deleted.

Reading through the forum suggests that using Find scripts tied to OnRecordLoad will create the found set that will not include my StatusDeleted = "Yes" .

I think I can cobble a script to handle this but I'm concerned about 1 button that's on a layout to show all records after performing a quickfind. The ShowAll button's script does just that. How would I change this script to show all but those records who's StatusDeleted = "Yes". Perhaps another Find buried in there?

Thank you.

 

ShowAll.JPG

Outcomes