ILanerSerie.ObservationAttributeInValue

Fore Syntax

ObservationAttributeInValue: String;

Fore.NET 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:

Fore Example

Executing the example requires a form with the LanerBox component and the UiErAnalyzer component named UiErAnalyzer1 used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1. The database must include 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 shown in the console window.

Fore.NET Example

Executing the example requires a .NET form with the LanerBoxNet component and the UiErAnalyzerNet component named UiErAnalyzerNet1, that is a data source for LanerBoxNet. Workbook of the time series database must be loaded to UiErAnalyzerNet1. This database must include an observation attribute with the CMT identifier.

Imports Prognoz.Platform.Interop.Laner;

Public Sub UserProc();
Var
    Laner: ILaner;
    LanerS: ILanerSeries;
    i: Integer;
    Serie: ILanerSerie;
    
    lTable: ILanerTable;
    col, row: integer;
Begin
    Laner := UiErAnalyzerNet1.ErAnalyzer.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 := "COMMENT";
    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
            System.Diagnostics.Debug.Write(lTable.CellName[row, col] + "; ");
        End For;
        System.Diagnostics.Debug.WriteLine("");
    End For;
End Sub;

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

See also:

ILanerSerie