DNG OSLC queries pagination
HI,
May i know how to handle multiple pages return by OSLC query in case of large number of artifacts return by the query.
I came across the URI in tag <oslc:nextPage > in <oslc:ResponseInfo> with page parameter. but When i try to access it through HTTP client it returns status Error 403: Forbidden .
I also verified Response Header Location, Which doesn't seems like having expected URL (URL ending with /rm/view)
Can someone help me with it .
Thanks & regards,
-Jay
2 answers
Hi Jay,
Please check the following article, pagination is explained atbthe bottom.
Comments
Yes, the <oslc:nextPage > url comes in response not working. its not encoded correctly in response that seems to be reason. but solution for fetching next page is. we can build next page url by our own in code/script.
oslc.where=<some criteria>&oslc.pageSize=100&pageno=1
above will result first page with first 100 records. suppose there are total 200 records then second page can be found by changing the pageSize and pageno input in query like below
oslc.where=<some criteria>&oslc.pageSize=100&pageno=2
One can build query internally and consume until <oslc:nextPage > tag is empty.
Thanks.