Preconfiguration "PmaReport - From PmaAdo into a simple table"

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: "/ Reports / Report (PmaReport)".
This preconfiguration can be created in the object: PmaFolder or PmaRoot.

Creates the PmaReport object, that is connected to the template file RepOneTable.htm (in the "Source file of the report template" configurator) located in the PROMOTIC system in the \Promotic\PmVXXYY\Resource\Report folder. In the onReportRequest event is used to read the data from the database table. The data array, title (eventually the array of column titles) are transferred to the template file by the SetKeyValue statements and then displayed.

If none of the templates is functionaly or graphicaly suaitable for the application, then 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 Pma objects tree. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
Default: "PmaReportDb"
Table report titlereport header (default) Data table from the database table
Path to the PmaAdo objectRelative or absolute path to the PmaAdo object.
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
PmaWeb objectPath in the Pma objects tree to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after the application is launched).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value.
The example of opening the PmaReport object:
Called in the onButtonUp event of the PmgButton object. The object will be opened as an separate window.
JavaScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(null, "/PmaReportDb", "", "target:_blank;");
The example of the PmaReport object print:
Called in the onButtonUp event of the PmgButton object. 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.
JavaScriptVBScriptSelect and copy to clipboard

var sReport = pMe.Pm("/PmaReportDb").SaveToString("");
Pm.PrintHtmlPage(sReport, "sourcetype:htmlstring;printer:select;");
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.