resolveEx

[ Function ]

public static resolveEx(
    propertyName: string,
    control: TcHmi.Controls.System.baseTcHmiControl
): TcHmi.SymbolExpression | null;

Returns a symbol expression if a binding exists between a symbol and the control attribute or null if no binding exists.

Parameter

Name

Type

Description

propertyName

string

Name of the attribute

control

TcHmi.Controls.System.baseTcHmiControl

Reference to the control instance

Return value

Type

Description

SymbolExpression, null

The symbol expression as SymbolExpression or null.

resolveEx 1:

Available from version 1.10

Sample - JavaScript

var myControl = TcHmi.Controls.get('TcHmiTextbox_1');
if(myControl){
    var symbolExpression = TcHmi.Binding.resolveEx('Text',myControl);
    if(symbolExpression){
         // Binding exists
         console.log(myControl.getId() + '::Text is bound to symbol expression: ' + symbolExpression.toString());
    } else {
         // Binding exists not
    }
}