IEaxInvisibleDimensions.Add

Fore syntax

Add(Key: Integer);

Fore.NET syntax

Add(Key: uinteger);

Parameters

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

Description

The Add method adds the dimension, key of which 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.

Fore example

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

Add links to the Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    InvDim: IEaxInvisibleDimensions;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"EXPRESS_REPORT").Edit;
    Expr := MObj 
As IEaxAnalyzer;
    InvDim := Expr.InvisibleDimensions;
    InvDim.Add(Expr.Pivot.DimItem(
0).Key);
    MObj.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.

Fore.NET example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    InvDim: IEaxInvisibleDimensions;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById[
"EXPRESS_REPORT"].Edit();
    Expr := MObj 
As IEaxAnalyzer;
    InvDim := Expr.InvisibleDimensions;
    InvDim.Add(Expr.Pivot.DimItem[
0].Key);
    MObj.Save();
End Sub;

See also:

IEaxInvisibleDimensions