I have a display showing PV and SP for 10 out of 1000 PID blocks. It displays correctly, but I want to change the SP of the tag. Since the format of my tags is “PDxxxx”, I use an expression binding using the index for the associated display element as shown. The problem is that unlike tag binding, expression binding does not provide a bidirectional ability in the Text Field component.
Is there a way to provide bidirectional SP change in this application?
Don’t use the tag() expression function. (Like, never.) It exists for backwards compatibility. Use indirect tag binding instead, where all or part of the tag path is kept in a separate custom string property. Indirect tag bindings can be bidirectional.
Most wouldn’t bother with the integer tags and expression tags – they just make the window only usable by one client at a time. The common approach would be to leave the strings unbound, supplying them as parameters to the window. In any case, you can convert integers to strings with a binding expression instead of an expression tag.