DeduplicateCondition: DimElementDeduplicate;
The DeduplicateCondition property determines method of elements' selection when deleting duplicates in the dictionary.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Dimens: IStandardDimension;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("TAB_DIM").Edit;
Dimens := MObj As IStandardDimension;
Dimens.DeduplicateCondition := DimElementDeduplicate.Max;
Dimens.DeduplicateExpression.AsString := Dimens.Attributes.Id.Id;
MObj.Save;
End Sub Main;
After executing the example for table dictionary the condition to remove duplicates by the maximum identifier value is set. Table dictionary identifier: TAB_DIM.
See also: