IDbClass.SupportsElementDependents

Syntax

SupportsElementDependents: Boolean;

Description

The SupportsElementDependents property returns whether the class tracks changes in its elements.

Comments

If class tracks changes of its elements the property returns value True, otherwise - False.

This property is relevant for MDM dictionary, table and composite MDM dictionaries. If in the dictionary editor on the Description tab the Track Links to the Elements From Other Objects checkbox is selected, on deleting the element, from which other repository objects depend, the dialog box with the warning that the deletion will affect other objects is displayed.

Default value is False.

Example

To execute the example, add a link to the Metabase assembly.

Sub UserProc;
Var
    Man: IMetabaseManager;
    Classes: IDbClasses;
    Cls: IDbClass;
    i, c: Integer;
Begin
    Man := MetabaseManagerFactory.Active;
    Classes := Man.Classes;
    c := Classes.Count;
    For i := 0 To c - 1 Do
        Cls := Classes.Item(i);
        Debug.WriteLine("Name: " + Cls.Name + "; Changes in elements: " + Cls.SupportsElementDependents.ToString);
    End For;
End Sub UserProc;

After executing the example the development environment console displays a list that consists of classes names and messages whether they track changes of their elements.

See also:

IDbClass