IRdsLink.DeleteConstraint

Syntax

DeleteConstraint: RdsConstraintType;

Description

The DeleteConstraint property determines the behavior on attempt to delete elements in the linked dictionary.

Example

Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier. The dictionary includes the link with any other MDM dictionary.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dict: IRdsDictionary;

Link: IRdsLink;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Edit;

Dict := MObj As IRdsDictionary;

Link := Dict.Links.Item(0);

Link.DeleteConstraint := RdsConstraintType.Cascade;

MObj.Save;

End Sub Main;

After executing the example link parameters of the Dict_1 dictionary are changed. While deleting elements in the linked dictionary, elements that have links on the deleted element are also deleted in the current dictionary.

See also:

IRdsLink