# Help with using variables in tags

**URL:** <https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489>\
**Category:** Ignition\
**Created:** [October 29, 2013, 3:32pm UTC](https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489 "2013-10-29T15:32:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbackus](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tbackus/32/5091_2.png) [@tbackus](https://forum.inductiveautomation.com/u/tbackus)\
**Post date:** [October 29, 2013, 3:32pm UTC](https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489/1 "2013-10-29T15:32:42Z")

</div>

Hopefully I can explain this correctly…

I have multiple devices that all have the same tag structure.

Device 1  
/_VCF33601_/BDP1  
/_VCF33601_/BDP2  
/_VCF33601_/US  
…etc

Device 2  
/_VCF33602_/BDP1  
/_VCF33602_/BDP2  
/_VCF33602_/US  
…etc

Device 3  
/_VCF33603_/BDP1  
/_VCF33603_/BDP2  
/_VCF33603_/US  
…etc

I want to build the display dynamically. When I click a button on a main screen indicating which device variables I want to look at, I set a Client Tag “macName” to the device. IE macName = _VCF33602_

So insteand of showing the value of my numeric label “_VCF33602_/US” how do I use a variable in the tag path?? “macName/US”

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [October 29, 2013, 3:50pm UTC](https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489/2 "2013-10-29T15:50:20Z")

</div>

Are you talking about Indirect Binding?  
[http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?indirect\_bindings\_and\_window\_p.htm](http://www.inductiveautomation.com/support/usermanuals/ignition/index.html?indirect_bindings_and_window_p.htm)

---

<div class="post-metadata">

**Author:** ![tbackus](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tbackus/32/5091_2.png) [@tbackus](https://forum.inductiveautomation.com/u/tbackus)\
**Post date:** [October 29, 2013, 6:05pm UTC](https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489/3 "2013-10-29T18:05:03Z")

</div>

Thanks Pat, that was exactly what I needed…

Any chance you know how to apply this same thing to an Easy Chart for Historical values?

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [October 29, 2013, 6:30pm UTC](https://forum.inductiveautomation.com/t/help-with-using-variables-in-tags/7489/4 "2013-10-29T18:30:41Z")

</div>

[quote=“tbackus”]Any chance you know how to apply this same thing to an Easy Chart for Historical values?[/quote]Sure do…The easiest way is to set-up an Easy Chart for one of your devices, then go to the Easy Chart properties and select binding for the Tag Pens property. Select the Cell Update binding and use indirect binding to update the TAG\_PATH rows.
