Indirect Tags - Expression

Hello,
Is it possible to use expression with multistate indicator and indirect tag? I currently have 3 labels stacked on top of each other, and I show its value if its greater than 0. I would like to get rid of those three labels and replace them with a multistate indicator as i will be passing indirect tags, but it seems the expression section doesn't accept {1}\Disable format.
Has anyone been able to do an expression with indirect tags format?

Thanks

Oops!

Post is tagged as Vision?

@PythonByte

It's not clear to me exactly what the tags are being used for. Are they intended to be the state of the Multistate Indicator? Why would you need multiple tags?

To use an indirect tag binding in an expression, you would first create a custom property, use an indirect tag binding on that property. Then in the expression, you use the property to get the value of the tag.

1 Like

so I have a lot of equipment and I am designing a faceplate popup so when clicking on a selected device it would open up and show the related info for the selected device. One section has the following info:
At Position
Forward Position
Rev Position
It can only be one of those displayed, so I thought it would be nice to have a multistate indicator instead of stacking up labels on top of each other...I was going to nest an IF statement but the expression section doesn't accept this format {1}\AT_POS...etc

Thanks

So you will need to create custom properties on the template/popup itself that has the indirect bindings, and then bind the multi-state indicator to the template/popup custom properties.

1 Like

That's why others are telling you to make custom properties with indirect tag bindings.

1 Like

I think I see the disconnect with what people are telling you and what you are understanding.

You want to create a custom property for each tag you want to indirectly bind.

Use an indirect tag binding to populate each custom property (which will use the syntax you posted).

Then use the values from those properties in your expression.

4 Likes