Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AddEvent - method of the PmForm object

Description:
Registers a function into selected event.
Syntax:
Empty AddEvent(String sEventName, Function Func)
Parameters:
sEventName(String) Event name.
"onOpen": The event is triggered on opening the PmForm. All initial sizes and positions of all Pmf objects are already evaluated at this moment.
"onClose": The event is triggered on closing the PmForm
Func(Function) The event function will be called when the event is triggered.
ev: It has no properties so far.
Note:
This method is also functional in Web panels.
 
This method is functional only for JavaScript language.
Example1:
JavaScriptSelect and copy to clipboard

oForm.AddEvent("onEditAccept", function(ev) { Pm.Debug("AddEvent"); });
Example2:
JavaScriptSelect and copy to clipboard

oForm.AddEvent("onEditAccept", Test);

function Test(ev)
{
//...
}
Example3:
See examples in events PmfButton.onAction, onEditAccept etc.

History:
Pm9.00.07: Created
PROMOTIC 9.0.13 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