Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of the PmVar object

Description:
The method returns Data extension of the PmVar object.
Syntax:
Object Extension(String sId)
Parameters:
sId(String) Data extension identifier. The identifier is entered when the data extension is being configured (see the "Data extension identifier" configurator).
Return values:
Returns Data extension object. In case of an error value (null for JavaScript or Nothing pro VBScript) is returned (probably does not exist item with defined sId). Nothing value can be tested by VBScript Is operator.
Note:
Identifier #ext:
References to Data extensions objects in the PmVar variable can also be done directly by extending the path of the Pm method using the #ext identifier. This can be used in the Pm method or in PP binding in the application and in panels. For example the method pMe.Pm("/data/#vars/Temperature/#ext/al") returns the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (PmVar) in the data object (PmaData object).
Example:
Several examples of reference to the data extension with al identifier (ExtAlarmAnalog object) in the "Temperature" variable (PmVar) in the data object (PmaData object). The recommended procedure is the first option using the #vars and #ext.
JavaScriptVBScriptSelect and copy to clipboard

oExt = pMe.Pm("/data/#vars/Temperature/#ext/al");

//or
oExt = pMe.Pm("/data/#vars/Temperature").Extension("al");

//or
oExt = pMe.Pm("/data").Item("Temperature").Extension("al");

History:
Pm8.03.00: Created
PROMOTIC 9.0.16 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