ICompoundDimensionSource.ForcedHideSourceName

Syntax

ForcedHideSourceName: Boolean;

ForcedHideSourceName: boolean;

Description

The ForcedHideSourceName property returns whether data source name is hidden in a composite dictionary.

Comments

Available values:

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier. The express report contains several data sources. Displaying the first data source is disabled.

Add links to the Dimension, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Obj: IMetabaseObject;
    Discr: IMetabaseObjectDescriptor;
    CompoundDim: ICompoundDimension;
    Source: ICompoundDimensionSource;
Begin
    
// Get repository
    MB := MetabaseClass.Active;
    
// Get express report and private dimensions
    obj := MB.ItemById("EXPRESS").Edit;
    Discr := obj.Children.Item(
0);
    CompoundDim := Discr.Children.Item(
0).Edit As ICompoundDimension;
    Source := CompoundDim.Sources.Item(
0);
    // Display whether the first data source name is displayed
    Debug.WriteLine("Displaying data source name " + Source.Name + " is hidden:");
    Debug.Indent;
    Debug.WriteLine(Source.ForcedHideSourceName);
End Sub UserProc;

Imports Prognoz.Platform.Interop.Dimensions;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Obj: IMetabaseObject;
    Discr: IMetabaseObjectDescriptor;
    CompoundDim: ICompoundDimension;
    Source: ICompoundDimensionSource;
Begin
    
// Get repository
    MB := Params.Metabase;
    
// Get express report and private dimensions
    obj := MB.ItemById["EXPRESS"].Edit();
    Discr := obj.Children.Item[
0];
    CompoundDim := Discr.Children.Item[
0].Edit() As ICompoundDimension;
    Source := CompoundDim.Sources.Item[
0];
    
// Display whether the first data source name is displayed
    System.Diagnostics.Debug.WriteLine("Displaying data source name " + Source.Name + " is hidden:");
    System.Diagnostics.Debug.Indent();
    System.Diagnostics.Debug.WriteLine(Source.ForcedHideSourceName);
End Sub;

After executing the example the console window displays the message whether displaying of the first data source is hidden.

See also:

ICompoundDimensionSource

Related work items

Requirement 1492721