Refresh Data on VISION using a button

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

I did it:

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

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

self.x is perspective

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

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.

1 Like

Or check the user manual, another good resource.

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

https://docs.inductiveautomation.com/display/DOC81/system.db.refresh

1 Like

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.