I’m creating a simple template to display a boolean tag as a string (‘On’, ‘Off’).
I added this expression to the text field for the label:
if (toInteger({Digital Display.Label 1.dataQuality}) = 192,
if (toBoolean(tag({Digital Display.Path}+{Digital Display.Tag}),0) ,
{Digital Display.On}, {Digital Display.Off}),
'Unknown')
Then I added a property to drive a style and bound this expression to it:
if (toInteger({Digital Display.Label 1.dataQuality}) = 192,
if (toBoolean(tag({Digital Display.Path}+{Digital Display.Tag}),0) ,
1, 0),
2)
After this the ok button will not close the dialog. Cancel works as does not binding anything. But Ok just flashes the property list for the component after a second.