ObservationAttributeInValue: String;
The ObservationAttributeInValue property determines a name of the observation attribute, values of which are displayed in the workbook table.
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:
Running calculation methods.
Changing display units.
Executing transformations.
Applying a formula to a cell.
Saving series as a model.
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.
See also: