How can I implement paging? I have a REST service that only sends back 16 results at a time. How would I do this?
How can I implement paging? I have a REST service that only sends back 16 results at a time. How would I do this?
Hi
Can you explain a bit more?
What do you mean on which index to start?
Let say I have a table with 1000 rows.
I make a query with some criteria and it returns 500 rows, for example.
How I create paging of 20 records at a time, implementing next page, next page...?
Thanks!.
Panagiotis
Please look here:
http://devcenter.appery.io/documentat...
Hi Ευγενιε
The documentation says "To limit the number of objects you get, use the limit parameter."
I do not want to just limit my application to return the first 20 (based on my example above).
I want to retrieve the first 20 then press a button and return the next 20, and next...until I retrieve all records.
Thanks,
Hi Panagiotis,
Here is two available parameters to make pagination logic:
"limit" - to limit query with items set in this parameter.
"skip" - to make offset to item set in this parameter.
Details: http://devcenter.appery.io/documentat...
We have good tutorial that will help you to understand how it works.
Please pass it: http://devcenter.appery.io/tutorials/...
Regards.