Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RegisterNew - method of object PmaAlarmGroup

Description:
The dynamic creation of a new alarm item (PmAlarmItem object) in the inactive and acknowledged state (green). Method returns the created alarm item. The alarm item can be obtained also by calling the Item method.
Syntax:
RegisterNew(sId, sIdCopy, [sSource], [sDesc])
Calling:
oAl.RegisterNew sId, sIdCopy, sSource, sDesc
Parameters:
sId(String) The unique text identifier of the new alarm item. This identifier is used for calling methods, for example: Activate, Inactivate, Acknowledge, Item, etc.
sIdCopy(String) The unique text identifier of an alarm item of template type (see "Template for dynamically created items" configurator), whose configuration is used.
sSource[optional] (String) The specification of the source of an alarm item. It enables to the user to sort and filter alarm items in the viewer in the running application according to the specified source. If not set, then the template value is used.
sDesc[optional] (String) The description itself of the alarm item. The basic text of the alarm item that is displayed in the viewer in the running application. If not set, then the template value is used.
Return Values:
Returns the newly created object of the PmAlarmItem type. In case of an error, it returns the value null for JavaScript or Nothing pro VBScript (probably the item with the set Id already exists). Nothing value can be tested by VBScript Is operator.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oAlItem = oAl.RegisterNew("T1_HI", "HI", "Boiler", "T1 over high limit");
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