resolve

[ Function ]

public static resolve(
    propertyName: string,
    control: TcHmi.Controls.System.baseTcHmiControl
): string | 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

string, null

The symbol expression as string or null.

resolve 1:

Available from version 1.10

Sample - JavaScript

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