Preconfiguration "PmReport - From CSV file into a table divided to pages"

This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: " / Report (PmReport)".

This preconfiguration can be used with the objects: PmFolder or PmRoot.

Creates the PmReport object, that is connected to the template file RepCycTable.htm located in the PROMOTIC system folder Resource\Report by the Source file of the report template configurator. In the onReportRequest event the FileCsvRead method is used to read the data from the CSV file. The data array, title, number of rows on the first and following pages (eventually the array of column titles) are transferred to the template file by the SetKeyValue statements, and then configured and displayed.
In case none of the templates is functionaly or graphicaly suaitable for the application, it is possible to copy one into the PROMOTIC application and then modify as needed.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the application object tree. This is a system name and must not contain diacritics, empty string, spaces and the first character must not be a number.

Default: "PmReportCsv"

Table protocol titlereport header (default)Data table from the CSV file
Column titles source
No column titles (default) - this option displays only the data with no column titles
The column titles are entered separately - this option is suitable if we require own column titles
The column titles are included in a data array - this option is suitable when the first row of source data array contains the column titles
The example of opening the PmReport object without a parameter:
Called in the onButtonUp event of the PmiButton graphic item. The object will be opened as an independent window.
The example of the PmReport object print:
Called in the onButtonUp event of the PmiButton graphic item. The example is functional only in the local application. If the print is to be functional also in the Web client, then the SaveToString method must be called in the panel method on the server.
Dim sReport
sReport = pMe.Pm("/PmReportCsv").SaveToString("")
Pm.PrintHtmlPage sReport, "sourcetype:htmlstring;printer:select;"
PROMOTIC 8.3.20 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice