# Perspective: Create View component property bindings via script?

**URL:** <https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582>\
**Category:** Ignition\
**Created:** [June 9, 2021, 1:03am UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582 "2021-06-09T01:03:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 9, 2021, 1:03am UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582/1 "2021-06-09T01:03:51Z")

</div>

Is it possible to create View component property bindings via script?  
I have a whole stack of views that I want to add into a Map component’s `layers.ui.view` that need bindings to the map’s current zoom level. I refuse to do this manually 🙂  
If not possible via designer scripting methods (which I’m fairly sure it isn’t), then i’ll edit the json of the View itself instead.

If not possible though via a scripting method, could this be added as a feature? Not required (for me) in runtime, just in designer

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 9, 2021, 3:56pm UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582/2 "2021-06-09T15:56:50Z")

</div>

No, not currently. You could write out the entire JSON structure for your view and Shift + Right Click it into place in the Designer - for a one-off, that’s probably the best method.

---

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [June 10, 2021, 1:10pm UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582/3 "2021-06-10T13:10:13Z")

</div>

I’m literally in the same boat. I have a script that creates an array of markers under layers.ui.marker  
but all these markers need the same bindings. So I am guessing the best is to just add more logic to the initial script that creates the array of markers, but that will only get you so far.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 10, 2021, 9:26pm UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582/4 "2021-06-10T21:26:42Z")

</div>

For now, we have to either edit the underlying json resource (the file itself), or as Paul said, use the shift+click method to overwrite the json from within the designer

---

<div class="post-metadata">

**Author:** ![michael.edmonson](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@michael.edmonson](https://forum.inductiveautomation.com/u/michael.edmonson)\
**Post date:** [December 12, 2023, 4:55pm UTC](https://forum.inductiveautomation.com/t/perspective-create-view-component-property-bindings-via-script/47582/5 "2023-12-12T16:55:47Z")

</div>

any new features allowing for this these days?
