Skip to content
Discussion options

You must be logged in to vote

You can build the base query with Flop.validate/2 and Flop.query/3. Ensure to pass the same parameters as you would in the list view. Pass pagination: false in the options to both functions.

Assuming you use Postgres, you can then use that base query to construct a window query that selects the row_number(), and from that, you'll be able to calculate the page number given the page size. See https://stackoverflow.com/a/6254396 for an SQL example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xtremerui
Comment options

Answer selected by xtremerui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #563 on April 30, 2025 07:23.