ShowSourceName: Boolean;
ShowSourceName: Boolean;
The ShowSourceName property determines whether source names are displayed in composite dictionary element names.
Available values:
True. Source name is always displayed in composite dictionary element names.
False. Default value. If all fixed dimensions differ in sources (dimensions are based on different dictionaries), source names are not displayed in dictionary names. If there is at least one matching dimension in the sources (different source dimensions are based on one dictionary), source names are displayed in composite dictionary element names. In this case only names of the sources with matching dimensions are displayed.
Executing the example requires that the repository contains a virtual cube with the VirtCube identifier.
Sub UserProc;
Var
MB: IMetabase;
VCube: IVirtualCube;
Dimension: ICompoundDimension;
Begin
Mb := MetabaseClass.Active;
VCube := MB.ItemById("VirtCube").Edit As IVirtualCube;
Dimension := VCube.FactDimension As ICompoundDimension;
Dimension.Sources.ShowSourceName := True;
(VCube As IMetabaseObject).Save;
End Sub UserProc;
After executing the example virtual cube facts dimension parameters are changed: element names always display source names.
The requirements and result of the Fore.NET example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
VCube: IVirtualCube;
Dimension: ICompoundDimension;
Begin
Mb := Params.Metabase;
VCube := MB.ItemById["VirtCube"].Edit() As IVirtualCube;
Dimension := VCube.FactDimension As ICompoundDimension;
Dimension.Sources.ShowSourceName := True;
(VCube As IMetabaseObject).Save();
End Sub;
See also: