](*,) ](*,) ](*,) ](*,) ](*,) How do i add code to prevent a user from deleting data in a list i.e to prevent someone 4rom deleting a Hotel Floor before all the rooms are determined to be empty.
data in a list i.e to prevent someone 4rom deleting a Hotel Floor before all the rooms are determined to be empty.
Sure... permissions... and I suppose that they will change permissionsn after manually checking if all the rooms are empty.....
Noelit: You will need modifying the ondelete trigger and, in there, do the calculations required to check if they are allowed to delete the record, and, if not, give an error.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Wait.... what about setting up the proper permissions? That way you don't have to program anything.
RIS Plus, LLC
Sure... permissions... and I suppose that they will change permissionsn after manually checking if all the rooms are empty.....
Noelit: You will need modifying the ondelete trigger and, in there, do the calculations required to check if they are allowed to delete the record, and, if not, give an error.