Add(Key: Integer);
Key. Key of the dictionary that should be hidden from the list of data source dimensions in the express report.
The Add method adds the dimension, which key is passed in the Key parameter to the list of hidden dimensions.
To determine number of invisible dimensions in dictionary, use the IEaxInvisibleDimensions.Count property.
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(0) As 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: