IStandardDimension.DeduplicateCondition

Syntax

DeduplicateCondition: DimElementDeduplicate;

Description

The DeduplicateCondition property determines method of elements' selection when deleting duplicates in the dictionary.

Example

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:

IStandardDimension