# refreshBinding not responding

**URL:** <https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [May 13, 2024, 10:13am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297 "2024-05-13T10:13:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eirikur\_Bernhardsson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Eirikur\_Bernhardsson](https://forum.inductiveautomation.com/u/Eirikur_Bernhardsson)\
**Post date:** [May 13, 2024, 10:13am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/1 "2024-05-13T10:13:48Z")

</div>

In my Ignition Perspective project, I have a page named "order\_tracking" containing a table component named "Table" under "order\_tracking.root.Scanned". The data displayed in this table is stored in "order\_tracking.custom.palletScanned".

I've set up a tag trigger to automatically update the table when the data changes elsewhere. However, manual additions or deletions made via buttons on the page are causing synchronization issues, likely due to PLC interactions.

To address this, I've attempted to manually refresh the binding after adding data using the script:

```python
def runAction(self, event):
    # Code to add data to the database...
    
    # Attempt to refresh binding
    self.view.refreshBinding("custom.palletScanned")

```

Although the database updates correctly, the dataset in "order\_tracking.custom.palletScanned" fails to refresh. It doesn't look like it's doing anything, no feedback whatsoever.

What could be the reason for this behaviour, and how can I ensure the binding refreshes accurately after data additions?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [May 13, 2024, 11:13am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/2 "2024-05-13T11:13:19Z")

</div>

I suspect that you haven’t used the correct path to the component the binding is on.

If the custom property is on the table component then you will need to use the path to the table component. Right now you’re refreshing a binding on a custom property on the view.

---

<div class="post-metadata">

**Author:** ![Eirikur\_Bernhardsson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Eirikur\_Bernhardsson](https://forum.inductiveautomation.com/u/Eirikur_Bernhardsson)\
**Post date:** [May 13, 2024, 11:18am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/3 "2024-05-13T11:18:30Z")

</div>

The custom property is not on the table component. It is on the view. I use the data in more places than the table, so I query the raw data as a custom property on the view, and then the table data is bound to the custom property.  
So when the custom property changes the table data will refresh as well.  
But for some reason, I am having difficulties refreshing the custom property on the view.

The custom property "palletScanned" is on "loading\_orders.custom.palletScanned"  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/0/c08bef49fd04893ae18060a503a6f14d6e594fc4.png)

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [May 13, 2024, 11:27am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/4 "2024-05-13T11:27:55Z")

</div>

> [@Eirikur\_Bernhardsson](#):
>
> loading\_orders.custom.palletScanned

Can you provide details about the type of binding you implemented on `loading_orders.custom.palletScanned`

---

<div class="post-metadata">

**Author:** ![Eirikur\_Bernhardsson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Eirikur\_Bernhardsson](https://forum.inductiveautomation.com/u/Eirikur_Bernhardsson)\
**Post date:** [May 13, 2024, 11:38am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/5 "2024-05-13T11:38:25Z")

</div>

I have a tag binding type, which only acts as a trigger.  
Following is a script transform which queries the data and processes it.

---

<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:** [May 13, 2024, 11:50am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/6 "2024-05-13T11:50:07Z")

</div>

> [@Eirikur\_Bernhardsson](#):
>
> tag binding type

That's why, I think. If the tag hasn't changed, the binding thinks it has nothing to do.

---

<div class="post-metadata">

**Author:** ![Eirikur\_Bernhardsson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Eirikur\_Bernhardsson](https://forum.inductiveautomation.com/u/Eirikur_Bernhardsson)\
**Post date:** [May 13, 2024, 11:51am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/7 "2024-05-13T11:51:09Z")

</div>

Am I not able to manually refresh the binding even though the tag hasn't changed?

---

<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:** [May 13, 2024, 11:56am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/8 "2024-05-13T11:56:54Z")

</div>

I've seen similar reports, yes. I recommend you use a named query binding directly, not a transform.

---

<div class="post-metadata">

**Author:** ![Eirikur\_Bernhardsson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@Eirikur\_Bernhardsson](https://forum.inductiveautomation.com/u/Eirikur_Bernhardsson)\
**Post date:** [May 13, 2024, 12:33pm UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-responding/90297/9 "2024-05-13T12:33:33Z")

</div>

I tried using a named query with a script transform and refreshing the binding works now.
