How can I bind a tagpath to a template parameter in Vision?

Hello!!
I would like to bind a tagpath to a template parameter in Vision.

image

In the second picture, where can I enter the tagpath?

It's unclear what you're asking, can you be more specific ?

Usually the indirect binding is inside the template.

There is a template called "A", and its parameters are "TagPath", "Title", and "Unit".
The first picture is the part where you import the "A" template from the screen called "B" and enter parameters. Here, you want to enter the tag path in the "TagPath" parameter.

I'm still confused.

So you have a template A with your parameters. Btw do you really need to pass in the eng units? Can't you just read them from the tag itself?

Inside your template, you would have a label or similar and it's text prop would be bound using an indirect tag binding which links to your TagPath template param.

In the template instance, you just supply the values for the tag path and title.

Yea I'm still not sure what the question is...

edit:
here's a template:
image
It takes one parameter of type string named "tag_path":
image

It has 4 labels. The 2 labels on the left are just labels with constants, and the ones on the right use bindings.
The top one is a property binding, bound to "tag_path",
and the bottom one is an indirect tag binding, also bound to "tag_path":

Now, in a window, 2 instances of this template:
image

I passed the string "foo" to the first one, and "bar" to the second one.
image

At which point in this process do you have an issue ?

1 Like