Promotic

Data binding GP - Data binding to the property of the Pmg object - configuration window

Description:
The value of the data binding GP is property value of the Pmg object or its implementation subobject.
Data binding configurators:
Pmg objectRelative or absolute path to the Pmg object or its implementation subobject (case sensitive text).
The path describes the location of the object in the tree structure of the immersed Pmg objects. Each tree level adress is separated by the / character. The immersed Pmg object is referrenced by its name. The superior Pmg object is referrenced by .. characters. The absolute path starts with the / character and describes the path to the Pmg object from beginning of the tree structure. The relative path starts with the name of the immersed Pmg object or by reference to superior Pmg object by .. characters, or by reference to itself ., describes the path to another Pmg object relative to itself.
The immersed implementation subobject (other than PmaObject type) is referrenced by # character, followed by the implementation subobject type definition (e.g. #vars). It means that the # addressing leaves the panel Pmg objects tree and starts to address the implementation subobjects. For example "/text0/#vars/Temperature".
#vars - Enables the variables of the Pmg object.
The variable of the Pmg object can be reached by two ways:
1) From the Pmg object by the Vars method. For example pMe.Items("/text0").Vars("Temperature").Value
2) By setting the path to the Pmg object extended by access to implementation object by #vars. For example pMe.Items("/text0/#vars/Temperature").Value
Note! The way of entering the path down to the specific variable of the Pmg object can be used in the PmgObject.Items method, in the "GP - Data binding to the property of the Pmg object" data binding and also in #pragma variable x = PmgObjectRef("path").

Macro expression can be used for input (it is evaluated while the window is opening).
PropertyProperty name of the Pmg object over which the data binding has to be created.
 
Macro expression can be used for input (it is evaluated while the window is opening).
The button "..." (on the right) opens "Selection of property or method of the object" configuration window.
Dynamic propertyCheck only in special cases:
Check only if the EXPRESSION is written in the "Property" configurator (e.g. acx.Trends(0).Color) and if the object (in this case the object Trends(0) referenced in the "Pmg object" configurator) can be removed and created in the runtime mode.
DON'T check, if only the name of elementary property is written in the property row, e.g. X, visible, Acx.BackgroundColor, etc.
Note:
This data binding is also functional in Web panels. The evaluation of the data binding does not need to communicate with the Web server (with PROMOTIC application) - the evaluation is done on the client side (i.e. on the Web browser).
See also:
- PmgObject.Items (method)
Example1:
Binding to the Value property of the PmgString object named "text0" that is nested into the PmgBox object named "box0". The reference to the object is absolute.
Pmg object: /box0/text0
Property: Value
Example2:
Binding to the Value property in my own PmgString object. The reference to the object is relative.
Pmg object: .
Property: Value
Example3:
Binding to the Value property of the superior PmgString object. The reference to the object is relative.
Pmg object: ..
Property: Value
Example4:
in the PmgString object named "text0" nested into the parent object named "box0" the data binding is linked to the Value property of the object named "text1" also nested into the box0 object. The reference to the object is relative.
Pmg object: ../text1
Property: Value
Example5:
Binding to the variable named Temperature created in my own object. See: Variables. The reference to the object is relative.
Pmg object: ./#vars/Temperature
Property: Value
or obsolete
Pmg object: .
Property: Vars("Temperature").Value
Example6:
Binding to the variable named Temperature created in the parent object. See: Variables. The reference to the object is relative.
Pmg object: ../#vars/Temperature
Property: Value
or obsolete
Pmg object: ..
Property: Vars("Temperature").Value
Example7:
Binding to the PmgWTable.FocusedRow property configured in the PmgActiveX object named "Ax0".
Pmg object: /Ax0
Property: Acx.FocusedRow
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