fame.razak
Posts: 0
Joined: Fri Aug 19, 2011 9:28 am

Paging

How can I implement paging? I have a REST service that only sends back 16 results at a time. How would I do this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Paging

You would need to define a service that takes a parameter which defines which results to display next. You would probably need two things: 1) at which index to start, 2) how many records.

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Paging

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!.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Paging

Panagiotis

Please look here:
http://devcenter.appery.io/documentat...

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Paging

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,

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Paging

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.

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Paging

Thanks I will on it!

I do not know if is already exists, but it would be good if we can have a link with ALL the available tutorials and brief description.

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Paging

Thanks I will look on it!

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Paging

Sorry disregard previous question about list of tutorials.

Return to “Issues”