CombinedIndicatorSelection: IDimSelection;
CombinedIndicatorSelection: Prognoz.Platform.Interop.Dimesnions.IDimSelection;
The CombinedIndicatorSelection property returns selection of all dimension metrics in view.
To get dimension metric selection in view, use IEaxObject.IndicatorSelection.
Executing the example requires that the repository contains regular report with the REPORT identifier containing table. Several metric types must be set up in one of fixed dimensions.
Add links to the Dimensions, Express, Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Slice: IEaxDataAreaSlice;
Grid: IEaxObject;
Index: Integer;
Sel, CombSel: IDimSelection;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("REPORT").Bind As IPrxReport;
Slice := Report.DataArea.Slices.Item(0);
Grid := Slice.Views.Item(0);
Sel := Grid.IndicatorSelection(EaxGridIndicatorType.FontSize);
CombSel := Grid.CombinedIndicatorSelection;
Debug.WriteLine("Metric dimension - " + Sel.Dimension.Name);
Debug.WriteLine("Combined dimension metric selection - " + CombSel.ToString("", ", ", False));
End Sub UserProc;
After executing the example the console displays name of metrics dimension, selection of this dimension metrics.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Report;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
Slice: IEaxDataAreaSlice;
Grid: IEaxObject;
Index: uinteger;
Sel, CombSel: IDimSelection;
Begin
MB := Params.Metabase;
Report := MB.ItemById["REPORT"].Bind() As IPrxReport;
Slice := Report.DataArea.Slices.Item[0];
Grid := Slice.Views.Item[0];
Sel := Grid.IndicatorSelection[EaxGridIndicatorType.egitFontSize As Integer];
CombSel := Grid.CombinedIndicatorSelection;
System.Diagnostics.Debug.WriteLine("Metrics dimension - " + Sel.Dimension.Name);
System.Diagnostics.Debug.WriteLine("Combined dimension metric selection - " + CombSel.ToString("", ", ", False));
End Sub;
See also: