IndicatorSelection(Type: Integer): IDimSelection;
IndicatorSelection[Type: integer]: Prognoz.Platform.Interop.Dimesnions.IDimSelection;
Type. Metric type of analytical data area slice.
The IndicatorSelection property returns metrics dimension selection.
The values of the Type parameter are presented in the EaxSliceIndicatorType enumeration.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.
Add links to the Dimensions, Express, Metabasee system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Slice: IEaxDataAreaSlice;
IndSel: IDimSelection;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
// Get data slice
Slice := Express.DataArea.Slices.Item(0);
// Get metric dimension selection
IndSel := Slice.IndicatorSelection(EaxSliceIndicatorType.Color);
// Display to the console metrics dimension identifier
Debug.WriteLine("Metric dimension identifier - " + IndSel.Dimension.Ident);
End Sub UserProc;
After executing the example, the console displays metrics dimension identifier.
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;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Slice: IEaxDataAreaSlice;
IndSel: IDimSelection;
Begin
// Get repository
MB := Params.Metabase;
// Get express report
Express := MB.ItemById["EXPRESS"].Bind() As IEaxAnalyzer;
// Get data slice
Slice := Express.DataArea.Slices.Item[0];
// Get metric dimension selection
IndSel := Slice.IndicatorSelection[EaxSliceIndicatorType.esitColor As Integer];
// Display to the console metrics dimension identifier
System.Diagnostics.Debug.WriteLine("Metrics dimension identifier - " + IndSel.Dimension.Ident);
End Sub;
See also: