ICalculatedCubeFormulasView.SourceNaming

Syntax

SourceNaming: CubeFormulasViewSourceNaming;

Description

The SourceNaming property determines a format of data source designation in elements names in the calculated cube formulas.

Example

Executing the example requires that the repository contains a calculated cube with the CalcCube identifier.

Sub UserProc;
Var
    MB: IMetabase;
    CubeInst: ICalculatedCubeInstance;
    View: ICalculatedCubeFormulasView;
Begin
    MB := MetabaseClass.Active;
    CubeInst := MB.ItemById("CalcCube").Open(NullAs ICalculatedCubeInstance;
    View := CubeInst.View(CubeInst.Sources.Item(0));
    View.SourceNaming := CubeFormulasViewSourceNaming.Name;
    CubeInst.SaveFormulas;
End Sub UserProc;

On executing the example a format of the first data source designation in the names of elements is set. Name of data source is displayed before the names of elements.

See also:

ICalculatedCubeFormulasView