DisplayDataAs: LnDataDisplayType;
The DisplayDataAs property determines a mode of displaying values for calculated series.
The displaying mode is determined by the value of the LnDataDisplayType enumeration:
LnDataDisplayType.CalculatedValues. Calculated values of the series are displayed in the workbook.
LnDataDisplayType.SourceValues. The values stored in the database are displayed in the workbook, also the table cells, the stored values of which differ from the calculated ones, are highlighted.
To select the mode of the whole workbook displaying use ILaner.DisplayDataAs.
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 workbook of the time series database that contains the data series should be loaded to UiErAnalyzer.
Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
Select one series in the workbook and click on the Button1 button. The following procedure is executed:
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
pSeries: ILanerCalculateSerie;
Begin
pSeries := LanerBox1.SelectedSeries(0) As ILanerCalculateSerie;
pSeries.DisplayDataAs := LnDataDisplayType.SourceValues;
If pSeries.HasDiscrepancies Then
Debug.WriteLine("The saved series data differ from the calculated ones");
End If;
End Sub Button1OnClick;
After executing the example the selected series is switched to the mode of displaying the data, that is stored in the database. If the saved data of the series differs from the calculated ones, the console window displays the corresponding message.
See also: