IEaxInvisibleDimensions.Add

Syntax

Add(Key: Integer);

Parameters

Key. Key of the dictionary that should be hidden from the list of data source dimensions in the express report.

Description

The Add method adds the dimension, which key is passed in the Key parameter to the list of hidden dimensions.

Comment

To determine number of invisible dimensions in dictionary, use the IEaxInvisibleDimensions.Count property.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.

Add links to the Dimensions, Express, Metabase, Pivot system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    Slice: IEaxDataAreaPivotSlice;
    InvDim: IEaxInvisibleDimensions;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Expr := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    // Get analytical data area slice
    Slice := Expr.DataArea.Slices.Item(0As IEaxDataAreaPivotSlice;
    // Get invisible dimensions and add the first dimension of data source to the list
    InvDim := Slice.InvisibleDimensions;
    InvDim.Add(Slice.Pivot.DimItem(0).Key);
    // Save changes
    (Expr As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the first dimension of the express report data source is added to the list of invisible dimensions.

See also:

IEaxInvisibleDimensions