Virtual DocTypes: Pagination?

I have a virtual doctype that gets the data from a third-party API.

How do I get pagination in Frappe List Views to work? For example, the List View the 20/100/500/2500 buttons at the bottom.

How do I get those to work with (or any form of pagination to work) with a Virtual DocType?

You can implement pagination. You’ll need deterministic ordering and some pagination logic in get_list.

Example: frappe/frappe/core/doctype/rq_job/rq_job.py at 2751be38aefc575211cd3ea36750d0f6b54b3de8 · frappe/frappe · GitHub