Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Interface Reference : IPartitionPolicyDetail interface : IPartitionPolicyDetail examples : Setting a partition policy detail as read-only
 
Setting a partition policy detail as read-only
The following code illustrates how to set a partition policy detail read-only:
define variable policy as IPartitionPolicy no-undo.
define variable detail as IPartitionPolicyDetail no-undo.

assign
policy = service:GetPartitionPolicy("OrderlineDate")
detail = policy:Details:Find("OldData")
detail:IsReadOnly = true.

service:UpdatePartitionPolicy(policy).
See also:
*IDataAdminElementinterface
*IPartitionMapinterface
*IPartitionPolicyinterface
*IPartitionPolicyDetailinterface
*ITenantGroupSetinterface
*ITenantGroupinterface
*IPartitionMapinterface