IMsCalculationChainEntry.Description

Syntax

Description: String;

Description

The Description property determines description of element of calculation chain.

Comments

To get element name, use the IMsCalculationChainEntry.Name property.

Example

Executing the example requires that the repository contains a modeling container with the MS identifier containing a metamodel with the METAMODEL_CONVERT identifier.

Add links to the Metabase, Ms system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    MsKey: Integer;
    Meta: IMsMetaModel;
    CalcChain: IMsCalculationChainEntries;
    i: Integer;
    Entry: IMsCalculationChainEntry;
Begin
    mb := MetabaseClass.Active;
    MsKey := mb.GetObjectKeyById("MS");
    Meta := mb.ItemByIdNamespace("METAMODEL_CONVERT", MsKey).Edit As IMsMetaModel;
    CalcChain := Meta.CalculationChain;
    For i := 0 To CalcChain.Count - 1 Do
        Entry := CalcChain.Item(i);
        Entry.Description := Entry.Name + " (" + Entry.Key.ToString + ")";
        Debug.WriteLine(Entry.Description);
    End For;
    (Meta As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the description including element name and key is generated for all metamodel calculation chain elements. Generated descriptions are displayed in the console window.

See also:

IMsCalculationChainEntry