# Refresh Data on VISION using a button

**URL:** <https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 23, 2023, 1:22pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295 "2023-11-23T13:22:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [November 23, 2023, 1:22pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295/1 "2023-11-23T13:22:25Z")

</div>

Hello, I would like refresh data on the table unsing `system.db.refresh()`

I did it:

```auto
tb=self.getSibling("table1")
tb.refreshBinding("props.data")

```

but is not working this is th error : self is not defined

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [November 23, 2023, 1:25pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295/2 "2023-11-23T13:25:59Z")

</div>

self.x is perspective

```auto
table = event.source.parent.getComponent("Power Table 1")
system.db.refresh(table, "data")

```

---

<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:** [November 23, 2023, 1:28pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295/3 "2023-11-23T13:28:46Z")

</div>

You are using Perspective syntax in a Vision script. This won't work.  
Select the property you want using the Choose Property button on the right side of the Script Editor window.

You are asking many questions with little understanding. I think you need to spend more time studying the videos at [https://inductiveuniversity.com](https://inductiveuniversity.com).

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [November 23, 2023, 1:31pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295/4 "2023-11-23T13:31:50Z")

</div>

> [@Transistor](#):
>
> I think you need to spend more time studying the videos at

Or check the user manual, another good resource.

> [@sebastien\_ng](#):
>
> I would like refresh data on the table unsing `system.db.refresh()`

The manual literally has an example, similar to what I posted.

[https://docs.inductiveautomation.com/display/DOC81/system.db.refresh](https://docs.inductiveautomation.com/display/DOC81/system.db.refresh)

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [November 23, 2023, 1:48pm UTC](https://forum.inductiveautomation.com/t/refresh-data-on-vision-using-a-button/82295/5 "2023-11-23T13:48:40Z")

</div>

> [@Transistor](#):
>
> ou are using Perspective syntax

I never develop in vision. it is my first time. I had use perspective.

That is why I'am confuse with some syntax. but thank you for recommantion.
