Hi, my issue here is quite simple :
i have a table with this {{anomaly.anomaly_without_ticket.data}} in table data
anomaly_without_ticket is JS function that return a array
The probleme come when i want to create a button to refresh this table
i created a button with onClick : {{anomaly.anomaly_without_ticket()}}
When i press the button i get a success message on the query but the table is unafected
Hi there!
This approach wouldn’t automatically update the data in the table with the onClick.
A better approach I can recommend is to connect your table to the Appsmith store, then have your JsObject run on page load.
You can use the following as the data for your table widget:
{{appsmith.store.tableData || []}}
Within the JsObject, you can set or update the table data like so: