IndicatorsDimension: IDimInstance;
IndicatorsDimension: Prognoz.Platform.Interop.Dimensions.IDimInstance;
The IndicatorsDimension property determines metrics dimension for a map.
Metrics dimension is a dimension using selected elements of which the map will be painted over and other visual elements will be set up.
To determine time scale dimension for a map, use IEaxDataAreaSlice.TimeLineDimension.
To determine dimension of map observed objects, use IEaxDataAreaSlice.ObjectivesDimension.
Executing the example requires:
Express report with the EXPRESS identifier containing table and map.
Facts dimensions with the 10124 key.
Calendar dimension with the 10127 key.
Territory dimension with the 10152 key containing arrows.
Add link to the Dimensions, Express, Metabase, Pivot system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
DataArea: IEaxDataArea;
Slice: IEaxDataAreaSlice;
Facts, Calendar, Terrytory, GeoLoc: IDimInstance;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
// Get data area
DataArea := Express.DataArea;
// Get data slice
Slice := DataArea.Slices.Item(0);
// Determine dimension roles
// Facts dimension
Facts := Express.Pivot.Dimensions.FindByKey(10124).DimInstance;
Slice.IndicatorsDimension := Facts;
// Time scale dimension
Calendar := Express.Pivot.Dimensions.FindByKey(10127).DimInstance;
Slice.TimeLineDimension := Calendar;
// Observation objects dimension
Terrytory := Express.Pivot.Dimensions.FindByKey(10152).DimInstance;
Slice.ObjectivesDimension := Terrytory;
// Arrows direction dimension
Arrows := Express.Pivot.Dimensions.FindByKey(10152).DimInstance;
Slice.SecondaryObjectivesDimension := Arrows;
// Save changes
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example in express report for a map specified roles for selected dimensions will be enabled.
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.Pivot;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
DataArea: IEaxDataArea;
Slice: IEaxDataAreaSlice;
Facts, Calendar, Terrytory, GeoLoc: IDimInstance;
Begin
// Get repository
MB := Params.Metabase;
// Get express report
Express := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
// Get data area
DataArea := Express.DataArea;
// Get data slice
Slice := DataArea.Slices.Item[0];
// Determine dimension roles
// Facts dimension
Facts := Express.Pivot.Dimensions.FindByKey(10124).DimInstance;
Slice.IndicatorsDimension := Facts;
// Time scale dimension
Calendar := Express.Pivot.Dimensions.FindByKey(10127).DimInstance;
Slice.TimeLineDimension := Calendar;
// Observation objects dimension
Terrytory := Express.Pivot.Dimensions.FindByKey(10152).DimInstance;
Slice.ObjectivesDimension := Terrytory;
// Arrows direction dimension
Arrows := Express.Pivot.Dimensions.FindByKey(10152).DimInstance;
Slice.SecondaryObjectivesDimension := Arrows;
// Save changes
(Express As IMetabaseObject).Save();
End Sub;
See also: