Struggling with dynamic tags in expressions

when i directly access the tag path, i get the value as expected (curr_mA). but when i try to make it dynamic, it just get null. can someone tell me what i'm doing wrong?

I would create custom properties with an indirect tag binding, rather than the tag() expression.

And then you can reference those properties in your expression structure if need be.

The problem with this:

tag("[]Assets/....")

Is that it is an invalid tag path. You have provided no TagProvider. If you want to use a default tag provider then you need to proved that TagProviders name, in this context (relative tag paths are invalid here).

So something like tag("[default]Assest/....").

I can't say what the issue is with isActive because I don't know what the value of thatSettingOnThatSettingsPage is.

Seriously though - Tag Bindings in Perspective - Ignition User Manual 8.1 - Ignition Documentation
(Scroll down to Indirect Binding Mode)

4 Likes

Let me emphasize this. If you are using the tag() expression function in a user interface binding, you are screwing up.

You can find many rants here under my name on this topic.

3 Likes

"Thirding" this to drive it home!

placeholder. not germaine.

okay. i read (a lot) and i will create a custom property instead. thanks for the helpful pointer. i recall @pturmel saying something to this effect in another post, but i couldn't find it (fast enough). :stuck_out_tongue:

2 Likes