Indirect address in Embedded View

I have a visibility binding for a pipe link such that…

If the LinkState of its associated tag is true, then I want the pipe link to be visible. If the LinkState of the associated tag is false, then I want the pipe link to be visible and blinking.

I was able to accomplish this when using direct addressing using the following configuration…

I attempted to duplicate this in an application where the tagpath and the blink tag use indirect addressing. The primary view contains custom parameters…

A screenshot of a computer  AI-generated content may be incorrect.

That are passed to an EmbeddedView on a tab of a TabContainer…

The view to be embedded is configure for the two parameters…

Reusing the logic from the application with direct addressing did not work…

What is the best way to accomplish this?

Make custom properties (and set them to private) on the view you are embedding. Then create indirect tag bindings on these properties for the values you need from tags, one property per tag value you wish to pull in. In your visibility expression, use the view custom properties in place of the tag. Your visibility expression would look something like:

(!{view.custom.linkState} && {view.custom.Blink_1Sec}) || {view.custom.linkState} 
2 Likes

Edit: Ignore, use indirect bindings instead

1 Like

I think this will only further lead the OP down the wrong path, and it’s misleading too considering what should be done to get it working, ie by adding the custom props as @ryan.white said, because the valid indirect tag binding path is in fact:

{param}/stuff

1 Like

Edit: Ignore, use indirect bindings instead

The tag function should only ever be used in expression tag expressions, nowhere else. search the forum for the reasons

2 Likes

Fair point. The joys of Ignition is the endless nuisances to it to remember. I did edit my comments to remove the tag suggestion.

1 Like

Haha, that is true. “With great power comes great ways to stuff up“ as the saying goes, or something like that :slightly_smiling_face:

1 Like