Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "PmaReport - Reports of trend data based on defined filtering criteria"

This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or after 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.

The preconfiguration is created including the panel (object of the PmaPanel type) is functional also a Web panel.

 
The preconfiguration creates PmaFolder object that contains subobjects PmaSequencer, PmaReport, PmaData, main panel PanelReport and auxiliary panel TempReport. The functionality of these objects:
Seq - in the onStep event the data is processed based on criteria defined in the panel and passes the result to PmaReport object
Report - the "Report" page contains the source html page with keywords that allow viewing the data (processed in sequencer) in a table.
Data - allows some global settings of data processing for the report
PanelReport - contains methods that allow searching for trend objects in the application, loading and saving the configuration into csv file, or launching the sequencer with input parameter.
 
Graphic objects in the image are visually vertically separated. The left part contains the PmgFrame object in which the auxiliary panel or PmaReport object can be displayed. In the right part there are objects that can logically create the data necessary to enter the input parameters. The result will be processed data and displayed in the table on the left of the panel.
 
The input parameters for data processing into the report are:
Name - title of resulting report
Enter start time - calendar for selection of the beginning time of processed data
for time range - are two entries that define the lenght of the period for data processing, e.g. 7 days.
time ranges for calculation - defines the time range in which the data is recalculated based on the selected filter, e.g. one hour (this entry represents each data row in the table)
Source data, filter type - represents a table with functional buttons that define the trend to be processed in the report. The dialog for adding or editing contains following items: Group of Trends, Trend (id), Conversion mode and Trend user defined title (columns) (represent one column of the table). The configuration of the table can be saved into a named file for further usage.
Page orientation - switches to page print view (binding to a variable in the PmaData object)
The result in on the last row - displays the last row with total recalculation of values (binding to a variable in the PmaData object)
Write into csv file - with each viewing of the report generates corresponding (the same) data into the csv file (binding to a variable in the PmaData object)
 
By pressing the View report button, the ViewReport method is launched in order to process the necessary parameters and send those for further processing in the application. Simultaneously, a variable is set that is then observed in the onRefresh event. The state of this variable indicates whether the data is processed and ready in the PmaReport object. If so, then it is displayed as html page in the PmgFrame object.
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: "Reports"

Report name
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.


History:
Pm8.03.25: Reports of trend data based on defined filtering criteria
PROMOTIC 9.0.7 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