# "this" in expression property binding

**URL:** <https://forum.inductiveautomation.com/t/this-in-expression-property-binding/11474>\
**Category:** General Discussion\
**Created:** [April 6, 2016, 5:34am UTC](https://forum.inductiveautomation.com/t/this-in-expression-property-binding/11474 "2016-04-06T05:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.inductiveautomation.com/u/ian)\
**Post date:** [April 6, 2016, 5:34am UTC](https://forum.inductiveautomation.com/t/this-in-expression-property-binding/11474/1 "2016-04-06T05:34:19Z")

</div>

If we use script, we have a variable name event.source which refers to the component who has the event itself.

Is there any similar way to refer to the component itself using expression binding?

For example, if the name of the component instances are MyComponent0, MyComponent1, MyComponent2, etc… and each has custom property of MyProp, instead of doing this:

`{MyComponent0.MyProp} * 50
{MyComponent1.MyProp} * 50
{MyComponent2.MyProp} * 50`

Is there any “relative” way for a component to refer to its own property? Something like:

```auto
{this.MyProp} * 50
```

---

<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:** [April 6, 2016, 1:18pm UTC](https://forum.inductiveautomation.com/t/this-in-expression-property-binding/11474/2 "2016-04-06T13:18:17Z")

</div>

I created the objectScript() alternative to runScript() in the [Simulation Aids](http://marketplace.inductiveautomation.com/moduledetail?moduleId=93) module specifically to solve this problem. Take a look at its documentation and the sample project in [this thread](https://inductiveautomation.com/forum/viewtopic.php?f=50&t=14532).  
Ignition v7.8 added part of objectScript()'s functionality to runScript, making it possible to get to the component object by calling custom methods of the object. It’s not documented yet.

---

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.inductiveautomation.com/u/ian)\
**Post date:** [April 8, 2016, 5:45am UTC](https://forum.inductiveautomation.com/t/this-in-expression-property-binding/11474/3 "2016-04-08T05:45:05Z")

</div>

Thanks pturmel. I will check it out!
