SourceNaming: CubeFormulasViewSourceNaming;
SourceNaming: Prognoz.Platform.Interop.Cubes.CubeFormulasViewSourceNaming;
The SourceNaming property determines a format of data source designation in elements names in the calculated cube formulas.
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(Null) As 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.
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(Null) As 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: