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

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 21, 2024, 6:18am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079 "2024-02-21T06:18:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KIM\_JINGEUN](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@KIM\_JINGEUN](https://forum.inductiveautomation.com/u/KIM_JINGEUN)\
**Post date:** [February 21, 2024, 6:18am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/1 "2024-02-21T06:18:34Z")

</div>

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

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a3dfa27f218525f93289f9a642f6edec00dd1bcd.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/2/225f0788c80514b8632e871df346e47305c6fc69.png)

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

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 21, 2024, 8:12am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/2 "2024-02-21T08:12:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 21, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/3 "2024-02-21T12:36:40Z")

</div>

Usually the indirect binding is **inside** the template.

---

<div class="post-metadata">

**Author:** ![KIM\_JINGEUN](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@KIM\_JINGEUN](https://forum.inductiveautomation.com/u/KIM_JINGEUN)\
**Post date:** [February 22, 2024, 6:35am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/4 "2024-02-22T06:35:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 22, 2024, 7:24am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/5 "2024-02-22T07:24:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 22, 2024, 8:24am UTC](https://forum.inductiveautomation.com/t/how-can-i-bind-a-tagpath-to-a-template-parameter-in-vision/86079/6 "2024-02-22T08:24:34Z")

</div>

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

edit:  
here's a template:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/90215fc6827c91fd701dfa2c11d14eae6e54fb98.png)  
It takes one parameter of type string named "tag\_path":  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/e/be98130b63e2149bdeab80963bc451bff090a1ec.png)

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":

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7f02071964241c5cee147544f04414fd1815386f.png)

Now, in a window, 2 instances of this template:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb27bd1b465d0b6efbe93cf1214d1c6d431fd3d3.png)

I passed the string "foo" to the first one, and "bar" to the second one.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/0/b0ef9a5db44747d70f2c9567126c65601270d434.png)

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