IDynamicInstance.OperationsVisibility

Syntax

OperationsVisibility: DynamicInstanceOperationsVisibility;

Description

The OperationsVisibility property returns information which dictionaries will display changes.

Example

Executing the example requires that the repository contains MDM table dictionary with set dynamic loading of elements and with the DYNDIM identifier.

Add links to the Dimensions and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Dim: IDynamicInstance;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Dim := MB.ItemById("DYNDIM").Open(NullAs IDynamicInstance;
    // Display names of child dictionaries
    For i := 1 To Dim.ChildrenInstancesCount Do
        Debug.WriteLine("Child dictionary name: " + Dim.ChildInstance(i - 1).DimInstance.Name);
    End For;
    // Display information about main dictionary changes application
    Select Case Dim.OperationsVisibility
        Case DynamicInstanceOperationsVisibility.Local:
            Debug.WriteLine("Changes of principle dictionary are not applied to other dictionaries");
        Case DynamicInstanceOperationsVisibility.Global:
            Debug.WriteLine("Changes of principle dictionary are applied to child dictionaries");
        Case DynamicInstanceOperationsVisibility.PreSet:
            Debug.WriteLine("Changes of principle dictionary are applied to dictionaries of the set " 
                    + Dim.PreSetMark);
    End Select;
End Sub UserProc;

After executing the example the console displays names of child dictionaries and information whether changes of main dictionary are applied to other dictionaries.

See also:

IDynamicInstance