ICompoundDimensionSources.ForcedHideSourceName

Syntax

ForcedHideSourceName: Boolean;

Description

The ForcedHideSourceName property controls displaying of the name of a composite dictionary in several data sources.

Comments

Available values:

True. Data sources names are displayed in composite dimension name.

False. Default value. Data sources names are not displayed.

Used in express report in case of multiple data sources.

It is displayed in the interface as the As a Composite Dimension checkbox on the Selection tab on the side panel in the Private Dimensions group.

Example

To execute the example, add link for the Dimension system assembly. The repository is supposed to contain an express report with the EXPRESS_REPORT identifier. The report should have several data sources. Before executing the example, select the As a Composite Dimension checkbox on the Selection tab of report side panel in the Private Dimensions group.

Sub UserProc;
Var
    MB: IMetabase;
    obj : IMetabaseObjectDescriptor;
    CompoundDim: ICompoundDimension;
Begin
    MB := MetabaseClass.Active;
    obj :=  MB.ItemById("EXPRESS_REPORT").Children.Item(0).Children.Item(0).Edit;
    CompoundDim := obj As ICompoundDimension;
    CompoundDim.Sources.ForcedHideSourceName := True;
    obj.SaveDescriptor;
End Sub UserProc;

After executing the example data source name is displayed in the composite dictionary name.

See also:

ICompoundDimensionSources