Knowledge Base Article

Adding Pagination To Tables With Filters

Sometimes it's important to be able to access large amounts of data directly in a table. For chunks of data that can't be safely loaded in a browser, one option would be to split the results in multiple charts on the same dashboard, so the user could just view the different charts as different pages. Another option would be to set a radio-button filter to serve as a page changer. For this example, I'm using a type-in-your-names-and-values filter named PageFilter that is a radio button.

Filter Options:
Name: Page 1, Value: LIMIT 25000 
Name: Page 2, Value: LIMIT 25000 OFFSET 25000
Name: Page 3, Value: LIMIT 25000 OFFSET 50000

Then, in the chart, we'd use direct replacement notation to add the limit/offset statements directly into the query. The "Limit 25000" after the | makes the first page the default page.

Query Ending:
From...
Where...
Order by...
[PageFilter|LIMIT 25000]

Using something like this would eliminate the need for extra charts that might bog down the dashboard, but still give the users a way to see the rest of the results. 
Updated 03-02-2023
No CommentsBe the first to comment