define variable tblPerm as ITablePermission no-undo.
define variable fldPerm as IFieldPermission no-undo. define variable domain as IDomain no-undo. tblPerm = service:GetTablePermission("Customer"). fldPerm = tblPerm:FieldPermissions:Find("CustNum"). fldPerm:CanWrite = "xx@ABCDomain". service:UpdateTablePermission(tblPerm). |