I’ve created a Perspective Embedded View that is a drop target for instances of this UDT, and linked the path of the instance to a view parameter called “TagPath”.
Using this configuration I have an object in the view that I can control the visibility of using Value1 via an Indirect Tag Binding:
But what I want to do is to control the visibility of comparing Value1 with Value2, EG the the result of the binding should the boolean expression of Value1 != Value2.
However I have no idea how to achieve this. I have tried various combinations of Tag/Expression bindings and pure Expression bindings but I can’t make it work.
How do I create a binding that is a function of two fields that are both indirectly referenced from within the same UDT?
I’m not sure I understand, let’s see if I got this right:
You basically want to use two indirect tags. Is that correct ?
I don’t have ignition on this machine so I can’t try things right now, but a simple solution would be to have two custom properties with indirect tag bindings, and compare those properties.
There isn’t, I was just referring to his general distaste for the use of the function.
Usually, it isn’t used in the correct places and thus results in unneeded overhead in the form of extra trips to the gateway. I try to avoid using it so I don’t use it where it shouldn’t be.
Either way, an expression binding like this may work:
If you’re using those values somewhere else, you might as well have them as properties instead of reading them each time. Even if the reads are cached, I find it simpler to have a single property to reference.