IEaxMap.TerrAttribute

Syntax

TerrAttribute: IDimAttributeInstance;

Description

The TerrAttribute property sets attribute data used to link a territory dimension to map topobase.

Comments

By default the property is set to Null if the Id attribute of the topobase Regions layer and TERRID attribute are connected. If the data source contains several dimension that have the attribute TERRID, data of the first found dimension is used.

Example

Executing the 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. An integer TERRID1 attribute is contained in the dictionary used as a dimension of the data source and arranged by rows of the express report.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    EMap: IEaxMap;
    DimInst: IDimInstance;
    AttrInst: IDimAttributeInstance;
Begin
    Expr := UiErAnalyzer1.ErAnalyzer;
    EMap := Expr.Map;
    
//First dimension in rows
    DimInst := Expr.Pivot.LeftHeader.Dim(0);
    AttrInst := DimInst.Attributes.FindById(
"TERRID1");
    EMap.TerrAttribute := AttrInst;
End Sub Button1OnClick;

After executing the example when you click the button used to link express report loaded to UiErAnalyzer1 to map topobase, the system will use data of the TERRID1 attribute of the first dimension arranged by rows.

See also:

IEaxMap