Category: How do I do X?

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Refresh table that rely on a jquery


I have a problem where my table data is not updating when I click a refresh button that triggers a JavaScript function. Even though the query is successful, the table remains unchanged. What should I do?


The issue was that the button onClick function was not refreshing the table data in Appsmith. A better approach is to connect the table to the Appsmith store and have a JsObject run on page load to set or update the table data. The table widget's data can be set to {{ || []}}. Within the JsObject, use the code await storeValue('tableData', <DESIRED_TABLE_DATA>) to update the table data. This will ensure that the table data is automatically updated whenever the button is clicked. Additionally, the Appsmith version and a screenshot of the anomaly JS Object were requested for further debugging.