Extension - method of the PmEventItem object

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

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

Pm8.03.13: Created
PROMOTIC 9.0.17 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