I have added a NoYes field called 'Field1' to SalesLine. Whenever i select some lines and click a button, this 'Field1' field is updated to yes for those selected lines.
Now if 'Field1' field value is yes, the line should not be editable by anyone. Only sys admin can edit the line. How to do that?
is this a good solution?
maybe on active method of salesLine:
if(Global::isSystemAdministrator() && this.Field1== NoYes::Yes)
this.allowEdit(False);