IDbClass.SupportsElementDependents

Fore Syntax

SupportsElementDependents: Boolean;

Fore.NET Syntax

SupportsElementDependents: Boolean;

Description

The SupportsElementDependents property returns whether the class tracks the changes 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.

Fore Example

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

Sub Main;
Var
    Man: IMetabaseManager;
    Classes: IDbClasses;
    Cl: IDbClass;
    i: Integer;
Begin
    Man := MetabaseManagerFactory.Active;
    Classes := Man.Classes;
    For i := 0 To Classes.Count - 1 Do
        Cl := Classes.Item(i);
        Debug.WriteLine("Name: " + Cl.Name + "; Elements changes: " + Cl.SupportsElementDependents.ToString);
    End For;
End Sub Main;

After executing this example a list that consists of classes names and messages whether they track changes of their elements.

Fore.NET Example

This example is an entry point for any .NET assembly.

Public Shared Sub Main(Params : StartParams);
Var     
    Man: IMetabase;
    Classes: IDbClasses;
    Cl: IDbClass;     
    i: Integer;
Begin
    Man := Params.Metabase;
    Classes := Man.Classes;
    For i := 0 To Classes.Count - 1 Do
        Cl := Classes.Item[i];
        System.Diagnostics.Debug.WriteLine("Name: " + Cl.Name + "; Elements changes: " + Cl.SupportsElementDependents.ToString());
     End For;
End Sub Main;

After executing this example a list that consists of classes names and messages whether they track changes of their elements.

See also:

IDbClass