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 | Name of the attribute | |
control | Reference to the control instance |
Return value
Type | Description |
---|---|
The symbol expression as string or null. |
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
}
}