# Data Table

### Table

Properties of the base table:

* Fully responsive
* Build-in  'Name' & 'Joned' field sorting
* [Pagination](#pagination)
* Multiselect - you can read more about how to store data temporarily on the page work in [this section.](https://docs.openbuild.io/working-with-the-framework/data-and-workflows/custom-states)

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F4FIpc8i1MF5wFPva1x1A%2FScreenshot%202022-11-05%20at%2011.09.04.png?alt=media&#x26;token=c978a587-510d-421b-9652-61655e21d456" alt=""><figcaption><p>User data table in admin panel</p></figcaption></figure>

### Pagination

The user table used on the Admin page in the openBuild template comes with a pre-built Repeating group pagination.

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FXhv13ZjusejNUHOWgMaT%2FScreenshot%202022-10-14%20at%2013.37.02.png?alt=media&#x26;token=38ad76a8-d8a2-4deb-9a4b-60d2e86994ad" alt=""><figcaption><p>Pagination is limited to display up to 5 pages in current view</p></figcaption></figure>

{% hint style="warning" %}
the Toolbox plugin is required for the pagination to work
{% endhint %}

You can edit the number of rows displayed and the pagination bar will update automatically. There is no need to update workflows or other element's values.

For pagination to work correctly you have to update the number of rows in the Repeating Group and as well the state of the repeating group called "rows".

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FlXY6Co9wZV6Dq8w5B6ry%2Fpagination.png?alt=media&#x26;token=10a612ff-ed3f-4d01-bb46-5fd41604c4da" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
If the number of 'rows' state will be different than the number of rows in the repeating group, pagination will NOT work correctly.&#x20;
{% endhint %}

#### Copying and pasting the workflows to new repeating group

If you already have a Repeating Group and are in need of pagination you can copy the 'Pagination' element with workflows.

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F6Kcq0UugEZW340vOEovh%2FScreenshot%202022-10-14%20at%2013.44.58.png?alt=media&#x26;token=0d3e614b-1026-4ce7-aa8e-59f23fe954a0" alt=""><figcaption><p>Pagination group</p></figcaption></figure>

You will then need to update all elements that are placed within the Fields group. These are 5 Group elements that hold numeric values which are used to calculate pagination.&#x20;

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F4hOabgrLxyy3MAFdV1pd%2FScreenshot%202022-10-14%20at%2013.52.28.png?alt=media&#x26;token=6afe49f2-2b9e-4be6-81aa-07739ef56e31" alt=""><figcaption><p>Example of Group holding numeric value</p></figcaption></figure>

Additionally, there are 5 action elements that will need to update as well. With the distinction that you only need to pick the right Repeating Group from the list of elements

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F2HKAgESCNwDLEzKkGCka%2FScreenshot%202022-10-14%20at%2013.53.29.png?alt=media&#x26;token=521bac78-c99d-4f0c-9b30-800918669fd9" alt=""><figcaption><p>Example action that will need to be updated</p></figcaption></figure>

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FjwtfZYYDmgc0dQTLJnoh%2FScreenshot%202022-10-14%20at%2013.54.58.png?alt=media&#x26;token=2013fd88-d269-4b05-9bf9-c702fcd94bf8" alt=""><figcaption><p>You will find example of action in folder 'Pagination: Users' in the admin page</p></figcaption></figure>
