-
Hi, thank you first for the work here. This issue is more like a question as in title. Our current implementation:
Our problem:
For example:
if the URL is
then on page the drawer lands on page 2 with the item |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 Assuming you use Postgres, you can then use that base query to construct a window query that selects the |
Beta Was this translation helpful? Give feedback.
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.