CheckObjectVerionOnUpdateFromPef: Boolean;
The CheckObjectVerionOnUpdateFromPef property determines if object version is checked during update.
Available values:
True. Object version check during update is enabled.
False. Default value. Object version check during update is disabled.
For details about object version control during update see the General Policy Settings article.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Policy: IMetabasePolicy;
Lic: Object;
Begin
// Get the current repository
MB := MetabaseClass.Active;
// Get license to be able to work with the security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
Policy := MS.Policy;
// Enable object version check during update
If Policy.CheckObjectVerionOnUpdateFromPef = False Then
Policy.CheckObjectVerionOnUpdateFromPef := True;
End If;
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example, object version check during update is enabled.
See also: