> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/data-table/tips-and-tricks/enabling-auto-refresh-on-the-data-table-when-pressing-a-button.md).

# Enabling auto-refresh on the Data Table when pressing a button

## Overview

This tutorial will guide you through setting up an automatic refresh for the Data Table whenever a button is pressed. This function ensures that your data source is updated instantly after an action is taken, enhancing the data's accuracy and the overall user experience.

{% hint style="success" %}

## 💡 **Tip**

Use this tutorial if you want a button that lets users manually refresh the Data Table. For automatic refresh, use a **Refresh Query** interaction (e.g., when opening a [Flow dialog](/flow/component-builder/interactions-panel/open-flow-dialog.md) or [Panel](/flow/component-builder/interactions-panel/open-flow-panel.md)).
{% endhint %}

<figure><img src="/files/oA4HN06w8eyfTq0aUY9F" alt=""><figcaption><p>Final Result</p></figcaption></figure>

## Interactive Step-by-Step Tutorial

{% @arcade/embed url="<https://app.arcade.software/share/ubPVhh6s5xulGJDlSp1F>" flowId="ubPVhh6s5xulGJDlSp1F" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/flow/tutorials/components/data-table/tips-and-tricks/enabling-auto-refresh-on-the-data-table-when-pressing-a-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
