# Property bindings for current component

**URL:** <https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158>\
**Category:** Archived Topics\
**Created:** [May 20, 2009, 6:29pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158 "2009-05-20T18:29:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chache](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chache](https://forum.inductiveautomation.com/u/chache)\
**Post date:** [May 20, 2009, 6:29pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158/1 "2009-05-20T18:29:25Z")

</div>

Hi all,  
I’m looking for a way to access the current component’s properties without tunneling down (ie not using Root Container.Path.To.Component.) Specifically, I want to bind the mouseover text for a bunch of components to a SQL call using the component’s name, but I don’t want to write a different call for each and every component. In essence I want to be able to copy and paste these components all I want, where changing their names updates all the other properties. Is there a way this can be done?

Thanks,  
Charles

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 20, 2009, 8:12pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158/2 "2009-05-20T20:12:39Z")

</div>

Just try it! If you make a binding that involves a component’s name, and you copy that component, the binding will “follow” the copy - that is, the new component’s binding will reference the new component’s name.

The bindings are not just text - they’re linked with some intelligence.

---

<div class="post-metadata">

**Author:** ![chache](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chache](https://forum.inductiveautomation.com/u/chache)\
**Post date:** [May 20, 2009, 11:09pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158/3 "2009-05-20T23:09:04Z")

</div>

Ah, excellent!

---

<div class="post-metadata">

**Author:** ![chache](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chache](https://forum.inductiveautomation.com/u/chache)\
**Post date:** [May 20, 2009, 11:37pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158/4 "2009-05-20T23:37:18Z")

</div>

Hmmm… I’ve noticed that if I rename a component then references to it are updated, but it doesn’t seem to happen for copies.

For example, I have a sql query with the following component-specific clause: “WHERE Ref=’{Root Container.SA.name}’” but when I copy it, the new component’s name is SA 1 (as expected) but the SQL statement (and other bound properties) still point to SA. If I understand what you said, they should be pointing to SA 1 now, right?

Thanks,  
Charles

---

<div class="post-metadata">

**Author:** ![chache](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chache](https://forum.inductiveautomation.com/u/chache)\
**Post date:** [May 20, 2009, 11:42pm UTC](https://forum.inductiveautomation.com/t/property-bindings-for-current-component/1158/5 "2009-05-20T23:42:11Z")

</div>

Ahh, it was my mistake - the path to the component actually referenced it’s ‘brother’ component in another container, so while the data it was getting was correct, it wasn’t actually referencing itself. Works great now!
