This preconfiguration can be used with the objects: PmaFolder or PmaRoot.
At the beginning of the script it is necessary to define the valid path to the PmaAlarmGroup object in the oAl variable.
The GetStateData method is used for reading the data array:
By the SetKeyValue the following items are transferred into the template file :
The source, desc, comment and priority parameters can be used, either separately or combined.
The name of created object | Name of the object created in the tree of Pma objects. The maximum name length is 30 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: "ReportAlState" |
---|---|
Alarm protocol title | |
Path to alarms object | Relative or absolute path to the PmaAlarmGroup object. |
Object scripting language | Application object scripting language 0 - vbscript 1 - javascript |
Enable as Web component | Specifies 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 object | Path 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 the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value. |
pMe.PmPanel.OpenView("/ReportAlState", "_blank");
pMe.PmPanel.OpenView("/ReportAlState", "target:main;", "pars:{source:Boil}");
Dim sReport
sReport = pMe.Pm("/ReportAlState").SaveToString("")
Pm.PrintHtmlPage sReport, "sourcetype:htmlstring;printer:select;"