Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of the PmEventItem object

Description:
The method enables access to data extension (ExtEvent) that the event originated from.
Syntax:
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 the 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.14 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