Add(Key: Integer);
Add(Key: uinteger);
Key. Key of the dictionary that is to be hidden from the list of data source dimensions in the express report.
The Add method adds the dimension, key of which 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 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.
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: