IEaxMap.DataIndex

Syntax

DataIndex: Integer;

Description

The DataIndex property determines index of the slice of the data shown on the map.

To show data on the map, a dimension containing the TERRID attribute is to be found in the express report. If this dimension is found and it is positioned in a fixed area (by rows or by columns), a list of data slices that can be displayed on the map is composed of the selected elements of dimensions of the opposite fixed area.

Example

Executing this example requires a form, a button named Button1 positioned on this form, the UiErAnalyzer component named UiErAnalyzer1 and a component that shows map of the express report loaded to UiErAnalyzer1. Express report data source contains two dimensions. The dimension displayed by rows contains the attribute TERRID.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    EMap: IEaxMap;
    PivotT: IPivotTable;
Begin
    Expr := UiErAnalyzer1.ErAnalyzer;
    EMap := Expr.Map;
    PivotT := Expr.Pivot.ObtainTable;
    
//Slice that corresponds to the last element of the column dimension
    EMap.DataIndex := PivotT.TopHeader.ElementCount - 1;
End Sub Button1OnClick;

On clicking the button the map displays data that corresponds to the slice obtained by the last element of the dimension shown in columns.

See also:

IEaxMap