Hi Friends,
I want to block everyone from deleting records from one table. I should not be able to delete records even from a report(indirectly). Is there such a control i can define in navision table property or SQL for that table?
I know i can control thru roles and permission. any other way?
Thanks and Regards
Vineeth.R
0
Comments
Table properties do not help.
I want no one to delete any records from Product Group (5723) table. Accidentally data is getting deleted from here. We do not know which program is deleting it.
Without controlling the roles and permission of users is there a way to stop this?
thanks
Vineeth
Vineeth.R
This function is triggered also if the DELETE is done by C/AL code instead of the user.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
i tried the below code in codeunit 1 but it did not work. Can you please explain how to use the code
OnDatabaseDelete(RecRef : RecordRef)
ChangeLogMgt.LogDeletion(RecRef);
IntegrationManagement.OnDatabaseDelete(RecRef);
IF RecRef.NUMBER = 5723 THEN
ERROR('cannot delete');
Vineeth.R
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!