ILanerSerie.ObservationAttributeInValue

Syntax

ObservationAttributeInValue: String;

Description

The ObservationAttributeInValue property determines a name of the observation attribute, values of which are displayed in the workbook table.

Comments

By default ObservationAttributeInValue is not set.

If ObservationAttributeInValue is not set, the table shows values of the attribute VL (values of series points).

If a value other than VL is set for ObservationAttributeInValue, the following options are not available:

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A working area of the time series database should be loaded to UiErAnalyzer1. This database should contain an observation attribute with the CMT identifier.

Sub UserProc;
Var
    Laner: ILaner;
    LanerS: ILanerSeries;
    i: Integer;
    Serie: ILanerSerie;
    lTable: ILanerTable;
    col, row: integer;
Begin
    Laner := UiErAnalyzer1.ErAnalyzer.Laner;
    LanerS := Laner.Series;
    // Change the attribute shown in the table
    Laner.BeginUpdate;
    For i := 0 To LanerS.Count - 1 Do
        Serie := LanerS.Item(i);
        Serie.ObservationAttributeInValue := "CMT";
    End For;
    Laner.EndUpdate;
    // Output displayed values to the console window
    lTable := LAner.Execute;
    For row := 0 To lTable.RowCount - 1 Do
        For col := 0 To lTable.ColumnCount - 1 Do
            Debug.Write(lTable.CellName(row, col) + "; ");
        End For;
        Debug.WriteLine("");
    End For;
End Sub UserProc;

After executing the example the workbook table shows values of the observation attribute CMT. Displayed values are displayed in the console window.

See also:

ILanerSerie