DisplayDataAs: LnDataDisplayType;
DisplayDataAs : Prognoz.Platform.Interop.Laner.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 Button1 button, the LanerBox component with the LanerBox1 identifier, and the UiErAnalyzer component used as a data source for LanerBox. Workbook of the time series database that contains the data series must be loaded to UiErAnalyzer.
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 this 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 corresponding message is displayed in console window.
See also: