Issue
I want to know how I can refresh my table after pressing the "Add line" button on a field. I need to see the newly added items in the table immediately. Can someone provide an example or tutorial on how to do this?
Resolution
To refresh a table after adding or updating data, follow these steps:
- Identify the query that populates the table (
fetch_data_query
). - In the query that adds or updates the data, use the
onSuccess
event to call the table query.
For example: call thefetch_data_query.run()
query to fetch the latest data. This will automatically refresh the table with the latest data once the operation is successful.
For more details, refer to the Refresh table and close the modal section of the Update data guide.