# How to Expose the Tag Path of a Component Binding

**URL:** <https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480>\
**Category:** Ignition\
**Created:** [December 19, 2016, 6:09pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480 "2016-12-19T18:09:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajdewhirst](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@ajdewhirst](https://forum.inductiveautomation.com/u/ajdewhirst)\
**Post date:** [December 19, 2016, 6:09pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/1 "2016-12-19T18:09:16Z")

</div>

Is it possible to expose the tag path of a tag that a window component is bound to?

For example, if the Value property of a Numeric Label component on a screen is bound to the value of a tag, is it possible to expose that tag path into a script?

I’d like to be able to click on the screen component at run time and have the script retrieve the tag path and use that in a script.

Thanks.

---

<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:** [December 20, 2016, 2:06am UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/2 "2016-12-20T02:06:48Z")

</div>

Bindings are stored in each window’s InteractionController in a list of PropertyAdapters. These aren’t documented, so you won’t be able to get support on this, but you can introspect these property adapters to find the tag paths you need.

---

<div class="post-metadata">

**Author:** ![ajdewhirst](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@ajdewhirst](https://forum.inductiveautomation.com/u/ajdewhirst)\
**Post date:** [December 20, 2016, 1:27pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/3 "2016-12-20T13:27:14Z")

</div>

Phil, thanks for the info. That sounds like exactly what I’m looking for. How do I access the InteractionControllers ? Thanks for your help.

---

<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:** [December 20, 2016, 2:10pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/4 "2016-12-20T14:10:10Z")

</div>

The SDK documentation will get you much of the way. Start with the JavaDoc for the window class [FPMIWindow](http://files.inductiveautomation.com/sdk/javadoc/ignition784rc1/com/inductiveautomation/factorypmi/application/FPMIWindow.html). Note its method getInteractionController(). With that, you can use the [InteractionController](http://files.inductiveautomation.com/sdk/javadoc/ignition784rc1/com/inductiveautomation/factorypmi/application/binding/InteractionController.html)’s methods to explore the bindings in the window. You’ll probably want to just get a specific component’s binding on a specific property, using getPropertyAdapter(). Note that [PropertyAdapter](http://files.inductiveautomation.com/sdk/javadoc/ignition784rc1/com/inductiveautomation/factorypmi/application/binding/PropertyAdapter.html) is an interface, not a class – you’ll have to verify that the binding you are looking at actually references a tag. Or just wrap that part of your script in try: … except:

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 29, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/6 "2021-03-29T20:07:48Z")

</div>

Can I use your method in Perspective???  
I found this [Finding Tags used in Bindings](http://forum.inductiveautomation.com/t/finding-tags-used-in-bindings/25917),  
and IA developer said that you know many interesting things! And then I thought you can help.

---

<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:** [March 29, 2021, 8:45pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/7 "2021-03-29T20:45:27Z")

</div>

None of that stuff applies to Perspective. And to be honest, I haven’t even tried, since the bindings are in the view’s json on disk.

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 29, 2021, 8:59pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/8 "2021-03-29T20:59:55Z")

</div>

You think, doesn`t work it in perspective? How I can find tag in the project(window) in Runtime?

---

<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:** [March 29, 2021, 9:05pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/9 "2021-03-29T21:05:54Z")

</div>

It can't possibly work as-is, as all of those classes are Vision-specific. For Perspective:

> [@pturmel](#):
>
> I haven’t even tried

🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 29, 2021, 9:11pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/11 "2021-03-29T21:11:07Z")

</div>

it’s a pity! I hoped , that someone can help me. But thank you very much behind your comment. Now I understood, that can search answer in another direction…

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [March 29, 2021, 10:18pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/12 "2021-03-29T22:18:54Z")

</div>

> [@Andrii.Randiuk](#):
>
> it's a pity! I hoped , that someone can help me.

It's only been 2 hours since you posted your question, can you maybe wait a little longer in hopes that someone else can help you? If you don't hear back after a day or two, bump the thread. You can also contact IA support.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 29, 2021, 10:20pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/13 "2021-03-29T22:20:36Z")

</div>

> [@jlandwerlen](#):
>
> You can also contact IA support.

Not for help hacking into undocumented internals 🙂

@Andrii.Randiuk a good place to start would be a new topic explaining what you're trying to accomplish and why. Maybe somebody can help you, and maybe it won't involve any kind of digging into undocumented internal APIs.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [March 29, 2021, 10:32pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/14 "2021-03-29T22:32:09Z")

</div>

For his original question @Kevin.Herron

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 30, 2021, 6:27am UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/15 "2021-03-30T06:27:56Z")

</div>

I created new topic [Search function in perspective](http://forum.inductiveautomation.com/t/search-function-in-perspective/45039/2)

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [April 26, 2021, 2:26pm UTC](https://forum.inductiveautomation.com/t/how-to-expose-the-tag-path-of-a-component-binding/12480/16 "2021-04-26T14:26:32Z")

</div>

I am curious to get tag binding to a property. Following your path here and reading JavaDoc, I can get this. but when I print, its none. The binding is Direct Tag Reference.

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