Extension - method of object Var

The method access Data extension of the Var object.
Extension(sId As String) As Object
sId(String) Data extension identifier. The identifier is set when the data extension is being configured (see the configurator "Data extension identifier").
Return Values:
Returns a reference to Data extension object. In case of an error the Nothing value is returned (probably doesn't exist item with defined sId). Nothing value can be tested by VBScript Is operator.
Identifier #ext: References to Data extensions objects in the Var variable can also be done directly by extending the path of the Pm method using the #ext identifier. This can be used in Pm method or in PP binding in the application and in panels. For example the pMe.Pm method ("/data/#vars/Temperature/#ext/al") returns the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (Var) in the "data" object (PmData).
Several examples of reference to the data extension with al identifier (ExtAlarmAnalog) in the "Temperature" variable (Var) in the "data" object (PmData). The recommended procedure is the first option using the #vars and #ext.
VBScriptSelect and copy to clipboard

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

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

Set oExt = pMe.Pm("/data").Item("Temperature").Extension("al")
PROMOTIC 8.3.30 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