Promotic

Extension - method of the PmEventItem object

Description:
The method returns data extension (ExtEvent) that the event originated from.
Syntax:
Object Extension()
Return value:
Returns Data extension object type.
If an error occures, then the method returns: null for JavaScript or Nothing for VBScript (it can be tested by the Pm.IsValid method). It means that the event did not originate in data extension.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var nVar;
var oItem = pMe.Pm("/Event").Item("ev1");
var oExt = oItem.Extension();
if (oExt)
{
nVar = oExt.Var.Value;
}

History:
Pm8.03.13: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.