# Relative path to component into components bibndings

**URL:** <https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921>\
**Category:** Ignition\
**Created:** [August 19, 2014, 7:03am UTC](https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921 "2014-08-19T07:03:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 19, 2014, 7:03am UTC](https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921/1 "2014-08-19T07:03:43Z")

</div>

For property expression binding on component, a relative path to component (like for tag) will be very practical or a path to the current component.

---

<div class="post-metadata">

**Author:** ![lshirley](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lshirley/32/6627_2.png) [@lshirley](https://forum.inductiveautomation.com/u/lshirley)\
**Post date:** [November 28, 2018, 1:12pm UTC](https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921/2 "2018-11-28T13:12:37Z")

</div>

I know this is old, but is there a good answer to this problem? I have a template with about 30 text boxes, and each has an identical expression with a multiple condition if statement. This means I have to reference the component like 3+ times in the expression. And then copy the expression to the other 29+ components, and each has to be modified to correct the component path.

A relative path to a components values would save me hours… Or at least a way to set a variable at the beginning and then use the variable in the expression. A variable would only require one modification to each component.

Any ideas? Maybe a project script could take it’s place?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 28, 2018, 1:39pm UTC](https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921/3 "2018-11-28T13:39:03Z")

</div>

Any reason custom properties can’t be used? Or group them, with custom properties on the group?

---

<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:** [November 28, 2018, 2:01pm UTC](https://forum.inductiveautomation.com/t/relative-path-to-component-into-components-bibndings/8921/4 "2018-11-28T14:01:01Z")

</div>

> [@lshirley](#):
>
> A relative path to a components values would save me hours... Or at least a way to set a variable at the beginning and then use the variable in the expression. A variable would only require one modification to each component.

Well, cutting and pasting treats all self-referential bindings as relative. So, delete the other 29 components and paste the first 29 times. This is also true if cutting and pasting multiple components -- bindings between them are treated as relative.
