> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/refreshdatasource.md).

# refreshDataSource

Refreshes the content of a single control based on its DataSource (not the SubDataSource!). If outside parameters have changed, you can force the brixxbox to reload the content of that control.

### Parameters

1\. controlId - (optional) id of the control, that you want to reload. If this is empty, all controls with datasources are refreshed.

### Example Usages

```javascript
   brixxApi.refreshDataSource("myControlId"); //Refreshes just "myControlId"
```

```javascript
   brixxApi.refreshDataSource(); //Refreshes all Controls with a DataSource in the app
```
