# Reapplying Custom Property Binding

**URL:** <https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140>\
**Category:** Ignition\
**Created:** [February 14, 2022, 10:29pm UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140 "2022-02-14T22:29:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonas.wells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonas.wells/32/24861_2.png) [@jonas.wells](https://forum.inductiveautomation.com/u/jonas.wells)\
**Post date:** [February 14, 2022, 10:29pm UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/1 "2022-02-14T22:29:14Z")

</div>

Hello all,

I have a phenomenon occurring within a binding where queried data is assigned to a custom property. This data is correct upon applying the binding and verified in the Perspective application view. The issue however is that when I look over the application after a few hours (ie in the morning), all of the data is incorrect and not representative of the queried data. That is, I reapply the binding and all of the correct information is assigned/fixed.

The flow of gathering this data is as follows - I use a recursive method search through tags and obtain keys of interest. These keys are then used to query the SQL database and acquire all associated information. Scripting is then applied to assign these data points to the aforementioned keys and allows for display within a table.

I am using Ignition 8.1.7  
Any suggestions as to why the data would become incorrect and a reapply of the binding on a custom property resolves the issue? I would prefer to not have to reapply the binding each morning.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [February 15, 2022, 1:07am UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/2 "2022-02-15T01:07:35Z")

</div>

Your binding isn’t going to automatically refresh, you need to do that.  
Look up refreshBinding in the manual.  
This is an example, your code may be different based on where this custom property is.

```auto
self.session.refreshBinding("custom.Parameter")

```

---

<div class="post-metadata">

**Author:** ![jonas.wells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonas.wells/32/24861_2.png) [@jonas.wells](https://forum.inductiveautomation.com/u/jonas.wells)\
**Post date:** [February 15, 2022, 4:04pm UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/3 "2022-02-15T16:04:00Z")

</div>

Yes, I think a binding refresh will resolve the issue. I am still a bit perplexed as to how the data is changing to incorrect values; as in they are much higher than expected and without an easily observable relationship to the correct values. Could be due to a script/expression, but am unsure. Thank you for the suggestion.

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [March 1, 2022, 12:13am UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/4 "2022-03-01T00:13:15Z")

</div>

If this issue is still occurring and you need help identifying the cause, you should consider contacting Inductive Automation [Support](https://inductiveautomation.com/support/home/). It sounds complex enough to warrant a remote session if possible.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 1, 2022, 2:35am UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/5 "2022-03-01T02:35:36Z")

</div>

For the property value to change state, one of several things could occur:

1. The binding of the property resolves/refreshes.
2. Something writes to the property.

So I always recommend to check and verify nothing else is writing to the property in question.

Also, you said that opening the binding dialog and applying the preview results in the value you expect; is there any chance the query is manipulating data in any way? We might be able to provide more help if you provide insight into the query as well as how the binding is structured.

---

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [June 27, 2023, 8:45pm UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/6 "2023-06-27T20:45:41Z")

</div>

Good morning,  
I have some custom property on a push button.  
first custom property is a dataset (DataLabel) , the other property are expression for extract value on first property (Line1 , Line2).

How can I refresh these property in a script?

My code is like this :

table = event.source  
system.db.refresh(table , "DataLabel")  
system.db.refresh(table , "Line1")  
system.db.refresh(table , "Line2")

I don't receive error, but nothing happen

Thanks

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [June 27, 2023, 9:56pm UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/7 "2023-06-27T21:56:11Z")

</div>

Are you developing in Vision or Perspective? Is you dataset bound to a database query?

---

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [June 28, 2023, 6:56am UTC](https://forum.inductiveautomation.com/t/reapplying-custom-property-binding/56140/8 "2023-06-28T06:56:46Z")

</div>

I'm using Vision  
DataLabel is a query SQL  
the other custom property are expression like this :  
try({Root Container.btnCreaMan.DataLabel}[0,"Line1"],"")

Thanks
