# refreshBinding not working probably because not called on the right object

**URL:** <https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition80\
**Created:** [May 30, 2022, 10:26am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172 "2022-05-30T10:26:00Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGOSTINO\_SCLAUZERO](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AGOSTINO\_SCLAUZERO](https://forum.inductiveautomation.com/u/AGOSTINO_SCLAUZERO)\
**Post date:** [May 30, 2022, 10:26am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/1 "2022-05-30T10:26:00Z")

</div>

I’ve got a table whose data are based on a date field, so i created a binding on it.  
There is also a button that adds a new row, so that when pressed I want to requery the table.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/681081198cad0f2735df326a19054526afd99990.png)  
I tried with the following line of code in the button click event:

```
system.db.runPrepUpdate("INSERT INTO MYTABLE (COL1) VALUES (?)",[myNewData])
self.getSibling("lblDate").refreshBindings("props.value")

```

But it doesn’t work with the error:

```
org.python.core.PyException: AttributeError: 'com.inductiveautomation.perspective.gateway.script' 
object has no attribute 'refreshBindings'

```

Any idea?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 30, 2022, 10:42am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/2 "2022-05-30T10:42:50Z")

</div>

You should be refreshing the **table** binding - not the lblDate binding.

---

<div class="post-metadata">

**Author:** ![AGOSTINO\_SCLAUZERO](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AGOSTINO\_SCLAUZERO](https://forum.inductiveautomation.com/u/AGOSTINO_SCLAUZERO)\
**Post date:** [May 30, 2022, 2:12pm UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/3 "2022-05-30T14:12:40Z")

</div>

Refreshing the table binding? It makes sense.  
So I tried this:

```
self.getSibling("Table").refreshBindings("props.data")

```

Same error:

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

---

<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 30, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/4 "2022-05-30T14:22:11Z")

</div>

It isn’t `refreshBindings`. There is no “s”

```auto
self.getSibling("Table").refreshBinding("props.data")

```

---

<div class="post-metadata">

**Author:** ![Selvapandiaraj\_A](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Selvapandiaraj\_A](https://forum.inductiveautomation.com/u/Selvapandiaraj_A)\
**Post date:** [May 13, 2024, 7:16am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/5 "2024-05-13T07:16:01Z")

</div>

Same error but i have currectly wrote the script  
i want to add a refresh button and in mouse clicked i want the table to refresh itself

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 7:18am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/6 "2024-05-13T07:18:39Z")

</div>

You need to show us what you have done.

---

<div class="post-metadata">

**Author:** ![Selvapandiaraj\_A](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Selvapandiaraj\_A](https://forum.inductiveautomation.com/u/Selvapandiaraj_A)\
**Post date:** [May 13, 2024, 8:52am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/7 "2024-05-13T08:52:36Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/2/522446155b253a4b7a76400ba56818346f117741.png)  
in this picture i have scripted in the refresh icon the code mentioned above

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 9:29am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/8 "2024-05-13T09:29:18Z")

</div>

1. Show us your script? How can we see the problem if you do not? See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).
2. What is the name of the Table component? (That will be needed in the script.)
3. Did you fix the error?  
`self.getSibling("Table").refreshBinding("props.data")` ← Correct.  
`self.getSibling("Table").refreshBindings("props.data")` ← Wrong.

---

<div class="post-metadata">

**Author:** ![Selvapandiaraj\_A](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Selvapandiaraj\_A](https://forum.inductiveautomation.com/u/Selvapandiaraj_A)\
**Post date:** [May 13, 2024, 9:41am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/9 "2024-05-13T09:41:17Z")

</div>

> [@lrose](#):
>
> `self.getSibling("Table").refreshBinding("props.data")`

def runAction(self, event):  
self.getSibling("Table").refreshBinding("props.data")

what is the props means in this context

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 13, 2024, 9:47am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/10 "2024-05-13T09:47:05Z")

</div>

![Props.data](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/dedd31342a6ee72084b450b6edd26e9acb40daff.png)

- The binding is what generates the table data.
- The refreshBinding causes it to recalculate the binding.

---

<div class="post-metadata">

**Author:** ![Selvapandiaraj\_A](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Selvapandiaraj\_A](https://forum.inductiveautomation.com/u/Selvapandiaraj_A)\
**Post date:** [May 13, 2024, 10:07am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/11 "2024-05-13T10:07:24Z")

</div>

so what should i do any help is welcomed

---

<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, 10:31am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/12 "2024-05-13T10:31:26Z")

</div>

Correct the reference component path using the Browser on the right

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/17f11241faf799d3acbd382de4ebaeda46bc0b3d.png)

---

<div class="post-metadata">

**Author:** ![Selvapandiaraj\_A](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Selvapandiaraj\_A](https://forum.inductiveautomation.com/u/Selvapandiaraj_A)\
**Post date:** [May 13, 2024, 10:58am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/13 "2024-05-13T10:58:27Z")

</div>

thanks a lot it worked

---

<div class="post-metadata">

**Author:** ![Ros\_Alexander1](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Ros\_Alexander1](https://forum.inductiveautomation.com/u/Ros_Alexander1)\
**Post date:** [August 7, 2025, 12:26am UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/14 "2025-08-07T00:26:51Z")

</div>

I have a button that I am using to refresh a table in the same view. I get this error:

AttributeError: 'NoneType' object has no attribute 'refreshBinding'

```python
def runAction(self, event):
    self.getSibling("ProductionTable").refreshBinding("props.data")

```

---

<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:** [August 7, 2025, 12:26pm UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/15 "2025-08-07T12:26:05Z")

</div>

```python
self.getSibling("ProductionTable")

```

Is returning `NoneType`

So either, the component which you have this script on does not have a sibling named `ProductionTable` or you have mispelled it. Use the property browser in script editor to get the correct path to the component that you are trying to refresh the binding on.

---

<div class="post-metadata">

**Author:** ![Ros\_Alexander1](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Ros\_Alexander1](https://forum.inductiveautomation.com/u/Ros_Alexander1)\
**Post date:** [August 10, 2025, 1:40pm UTC](https://forum.inductiveautomation.com/t/refreshbinding-not-working-probably-because-not-called-on-the-right-object/60172/16 "2025-08-10T13:40:40Z")

</div>

I used a message to refresh the table from a button the user clicked to submit the original data.
