Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Interface Reference : ITablePermission interface : ITablePermission examples
 

ITablePermission examples

The following code retrieves an ITablePermission object from the service, edits the properties, and passes the object to the service to be committed to the database:
define variable tblPerm as ITablePermission no-undo.
define variable domain as IDomain no-undo.

tblPerm = service:GetTablePermission("Customer").
tblPerm:CanCreate = "xx@ABCDomain".
tblPerm:CanWrite = "xx@ABCDomain".
service:UpdateTablePermission(tblPerm).
See also:
*IDataAdminElementinterface
*IFieldPermissionSetinterface
*IPartitionOwnerinterface
*ITablePermissionSetinterface