Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of object PmVar

Description:
The method access Data extension of the PmVar object.
Syntax:
Object Extension(String sId)
Calling:
oData.Item(2).Extension(sId)
Parameters:
sId(String) Data extension identifier. The identifier is entered when the data extension is being configured (see "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 doesn't 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).
Example:
Several examples of reference to the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (PmVar) in the "data" object (PmaData). 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.6 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