# How create binding on component property by script

**URL:** <https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845>\
**Category:** Ignition Early Access\
**Created:** [September 18, 2020, 6:12pm UTC](https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845 "2020-09-18T18:12:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [September 18, 2020, 6:12pm UTC](https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845/1 "2020-09-18T18:12:20Z")

</div>

Hi,  
I can simply setup a script and fill property of a component by that.  
For Example:

```auto
 self.getSibling("Map").props.layers.ui.view = {
   "path": "Templates/Map/Markup/Wellhead",
   "params": {
     "Label": "West Franklin"
   },
   "lat": 13.3,
   "lng": 24.57,
   "transparentBackground": True,
  "shadow": False
 }

```

but I wonder how I can create a tag binding on property by script. For example how I can bind a tag binding to ‘lat’ member of ebove example.  
I know i should put something like this:

```auto
{
  "type": "tag",
  "config": {
    "mode": "direct",
    "tagPath": "[default]GIS/B212/lat",
    "fallbackDelay": 2.5
  }
}

```

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [September 19, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845/2 "2020-09-19T16:40:03Z")

</div>

Not sure it’s possible to affect the bindings through scripting like that, but I’d be curious to see if a dev can share something here we don’t know.

---

<div class="post-metadata">

**Author:** ![truonghaibk94](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@truonghaibk94](https://forum.inductiveautomation.com/u/truonghaibk94)\
**Post date:** [April 7, 2021, 1:04pm UTC](https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845/3 "2021-04-07T13:04:08Z")

</div>

Did you find a way to do that ? i have the same problem

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [April 7, 2021, 6:12pm UTC](https://forum.inductiveautomation.com/t/how-create-binding-on-component-property-by-script/38845/4 "2021-04-07T18:12:38Z")

</div>

It is not possible right now. may be if we can open view file we can inject JSON on it to do that but I don’t know how to do it.
