cancel
Showing results for 
Search instead for 
Did you mean: 

How to do pagination in CMIS queries?

javed_afroz
Champ in-the-making
Champ in-the-making
I am new to CMIS, can somebody explain how to do pagination in CMIS while retrieving thousands of records?

Thanks in advance.
3 REPLIES 3

fmui
Champ in-the-making
Champ in-the-making
Pagination is a native feature of CMIS. Many operations take skipCount and maxItems parameters.
What client and binding are you using?

- Florian

javed_afroz
Champ in-the-making
Champ in-the-making
We are using a jquery client with CMIS ATOMPUB binding. Sorry for late reply.

fmui
Champ in-the-making
Champ in-the-making
Add the parameters "skipCount" and "maxItems" to the URL.

The first page with a page size of 20: http://...?...&skipCount=0&maxItems=20
The second page with a page size of 20:  http://...?...&skipCount=20&maxItems=20
The third page with a page size of 20:  http://...?...&skipCount=40&maxItems=20
And so on.


Florian