# Table reload with button in Ignition Perspective

**URL:** <https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 26, 2024, 8:58am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512 "2024-04-26T08:58:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 26, 2024, 8:58am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/1 "2024-04-26T08:58:58Z")

</div>

Hello!

I´ve got a button to reload the data binded to a table in Ignition Perspective.  
The table name is tblSummary binded to a Named Query and when I click on the button "Cargar" I would like to reload the content from the db connection.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/8478e9869ac65649286e20de8076d1121b42e64f.png)

---

<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:** [April 26, 2024, 9:12am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/2 "2024-04-26T09:12:40Z")

</div>

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

> **[Perspective Component Methods | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/scripting-in-perspective/perspective-component-methods#refreshing-bindings)**
>
> A component method is a function that is defined on a component object. For example, this is how we would call a component method defined on the component object self:

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 26, 2024, 9:22am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/3 "2024-04-26T09:22:53Z")

</div>

Ok, thanks, following the user manual:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f92d81f2fbf7c7c3f01ede43c7c9719b1184f2ff.png)

tblSummary is in same level as the button

thanks

---

<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:** [April 26, 2024, 9:47am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/4 "2024-04-26T09:47:45Z")

</div>

No.  
Button → Right-click → Configure Events → onActionPerformed → Script.  
Add code.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 26, 2024, 10:26am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/5 "2024-04-26T10:26:36Z")

</div>

Ok, thanks, just added it.

self.getSibling("tblSummary").refreshBinding("props.data")

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2b4275bc8927f46ef624897a1c39f4c805cfab8b.png)

---

<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:** [April 26, 2024, 10:35am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/6 "2024-04-26T10:35:26Z")

</div>

And ....?  
If it doesn't work you need to tell us.

You are missing a tab before `self.getSibling...`.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 26, 2024, 10:40am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/7 "2024-04-26T10:40:17Z")

</div>

Doesn´t seem to work, table is not reloading

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

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

---

<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:** [April 26, 2024, 10:50am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/8 "2024-04-26T10:50:09Z")

</div>

> [@Transistor](#):
>
> You are missing a tab before `self.getSibling...`.

 ![Missing tab](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/23ec5caf01f6862cedbdb8fdc329cbb1941faa38.png)

1. Inspect the error.
2. Read the message.
3. Fix the problem.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 26, 2024, 11:02am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/9 "2024-04-26T11:02:11Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/6/b6ba3b4ba69fe8d7025ca2801602e798964ae598.png)

k fixed that part

table doesnt seem to reload, i don´t really have a way to tell as the Named Query is not changing now, i go to last page of table and reload and keep there.

---

<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:** [April 26, 2024, 11:04am UTC](https://forum.inductiveautomation.com/t/table-reload-with-button-in-ignition-perspective/89512/10 "2024-04-26T11:04:25Z")

</div>

> [@Alejandro\_Alaco](#):
>
> def runAction(self, event):  
> self.getSibling("tblSummary").refreshBinding("props.data")

See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). If you don't format code properly we can't see leading spaces and tabs. There is a pencil icon to fix your post.

It should look like this:

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

```
