# Why do property bindings disable the Persitent option?

**URL:** <https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 12, 2024, 8:14am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725 "2024-06-12T08:14:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [June 12, 2024, 8:14am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725/1 "2024-06-12T08:14:07Z")

</div>

I was wondering why whenever I create a property binding this option is automatically unchecked (I know it can be checked back manually). I was binding named queries' outputs to some custom props and whenever I loaded the page the following error would show:

`AttributeError: 'com.inductiveautomation.perspective.gateway.script' object has no attribute...`

With pooling enabled, the error would only last for the pooling time.

I found out that I had to check the **Persistent** option to make it work as expected.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 12, 2024, 8:32am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725/2 "2024-06-12T08:32:40Z")

</div>

it looks like you are doing something wrong, you are running the script before the binding is finished.

By turning on persistent, you are locking in the first value (instead of it being null you are now getting the value you had when you last saved this view).  
You do not want this, you are going to run this script the first time with a value from ages ago. In your script just check if the value is filled in or not.

> **[Perspective Component Properties | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/perspective-component-properties#bindings-and-persistence)**
>
> Each Perspective component has a unique set of properties that can be set and modified within the Perspective Property Editor. A component property is simply a named variable with a distinct type that affects something about the component's behavior...

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [June 12, 2024, 8:49am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725/3 "2024-06-12T08:49:05Z")

</div>

Thanks, it makes sense. Anyways, instead of checking if the value is filled, I would like to always have that value availible, as it's necessary to fill a table. How could I force the pooling to happen when I open the view? Or is there a better approach?

> [@victordcq](#):
>
> ...In your script just check if the value is filled in or not.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 12, 2024, 8:52am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725/4 "2024-06-12T08:52:19Z")

</div>

You are grabbing a param from a query, that you than use in a query in your table correct?  
Than it seems normal that your table is empty before you know what the query gets,  
But if you need it to be availve always, you could use a tag that polls the param query, instead of storing it in a property, store it in the gateway tag...

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [June 12, 2024, 9:33am UTC](https://forum.inductiveautomation.com/t/why-do-property-bindings-disable-the-persitent-option/91725/5 "2024-06-12T09:33:47Z")

</div>

I'm binding multiple queries to multiple custom properties.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/7/87380dff2680b3decd35d9b071ddf5ab61d8408f.png)

And then merging the resulting data.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/a/da533b4da54d676a35f8201e87b7220fbea9c6da.png)

I'll try this then, thanks!

> [@victordcq](#):
>
> But if you need it to be availve always, you could use a tag that polls the param query, instead of storing it in a property, store it in the gateway tag...
