GridNoDataText: String;
The GridNoDataText property sets text for table visualizer cells if data slice does not contain data.
The property can be viewed in an opened report, values of this property are not saved in the report.
To execute the example, on the form place the Button component with the Button1 identifier, the EditBox component with the EditBox1 identifier, the ReportBox component with the ReportBox1 identifier, and the UiReport component with the UiReport1 identifier. Specify UiReport1 as a data source for ReportBox1. A data source for UiReport1 is a regular report with a sheet, on which a table visualizer based on a data slice, is added. For the UiReport component set the Active property to True.
Add links to the Express, Forms, and Report system assemblies.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Report: IPrxReport;
DataArea: IEaxDataArea;
Object: IEaxObject;
Grid: IEaxGrid;
Begin
// Get regular report
Report := UiReport1.Report;
// Get analytical data area
DataArea := Report.DataArea;
// Address report object
Object := DataArea.Views.Item(0);
// Get table
Grid := Object As IEaxGrid;
// Set text for table visualizer cells
Grid.GridNoDataText := EditBox1.Text;
// Calculate report
UiReport1.Report.Recalc;
End Sub Button1OnClick;
After clicking the button, if the slice does not contain data, the text in the text editor is displayed in table visualizer cells.
See also: