IEaxDataAreaSlice.IndicatorsDimension

Fore Syntax

IndicatorsDimension: IDimInstance;

Fore.NET Syntax

IndicatorsDimension: Prognoz.Platform.Interop.Dimensions.IDimInstance;

Description

The IndicatorsDimension property determines metrics dimension  for a map.

Comments

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.

Fore Example

Executing the example requires:

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.

Fore.NET Example

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:

IEaxDataAreaSlices