ICalculatedCubeFormulasView.SourceNaming

Fore Syntax

SourceNaming: CubeFormulasViewSourceNaming;

Fore.NET Syntax

SourceNaming: Prognoz.Platform.Interop.Cubes.CubeFormulasViewSourceNaming;

Description

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

Fore 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.

Fore.NET Example

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

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    CubeInst: ICalculatedCubeInstance;
    View: ICalculatedCubeFormulasView;
Begin
    MB := Params.Metabase;
    CubeInst := MB.ItemById["CalcCube"].Open(NullAs ICalculatedCubeInstance;
    View := CubeInst.View[CubeInst.Sources.Item[0]];
    View.SourceNaming := CubeFormulasViewSourceNaming.cfvsrcnamNameId;
    CubeInst.SaveFormulas();
End Sub;

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