Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "PmaReport - General data array into a cyclic 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: " / Report (PmaReport)".

This preconfiguration can be used with the objects: PmaFolder or PmaRoot.

 
Creates the PmaReport object, that is connected to the template file RepCycTable.htm located in the PROMOTIC system in folder \Promotic\PmVXXYY\Resource\Report by the Source file of the report template configurator. A data array is emulated in the onReportRequest event. 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.
 
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 tree of Pma objects. The maximum Pma object name length is 31 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.

Default: "PmaReport"

Table protocol titlereport header (default)Data in the table
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 if the first row of source data array contains the column titles
Object sripting languageApplication object scripting language
0 - vbscript
1 - javascript
Enable as Web componentSpecifies whether this object has to be registered as a Web server component

After this preconfiguration is created, the configurator is se to: PmaPanel > Web server > Enable as Web component.

PmaWeb objectPath in the tree of Pma objects to the PmaWeb, PmaWebFolder or PmaWebLang object where the registration is carried out.

Macro expression can be used for input (it is evaluated after starting the application).

After this preconfiguration is created, the configurator is se to: PmaPanel > Web server > PmaWeb object.

The example of opening the PmaReport object without a parameter:
Called in the onButtonUp event of the PmgButton object. The object will be opened as an independent window.
JavaScriptVBScriptSelect and copy to clipboard

pMe.PmPanel.OpenView("/PmaReport", "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.
VBScriptSelect and copy to clipboard

Dim sReport
sReport = pMe.Pm("/PmaReport").SaveToString("")
Pm.PrintHtmlPage sReport, "sourcetype:htmlstring;printer:select;"

History:
Pm7.05.00: Created
PROMOTIC 9.0.3 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