Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Pagination for Module Views API in Doors Next Generation

I am calling the Module Views API in Doors Next Generation in my widget. I have two questions:

  1. I am assuming that the results are paginated if they exceed a certain limit. What is that limit?
  2. If there are more "pages" to be fetched, I'm assuming that the API call to get the next page will be in the href attribute on the <ds:dataSource> element? For example: <ds:dataSource href='urlForNextPage'>. To get the next page would I just have to call the URL in the href attribute, with no further changes to the URL needed?

0 votes



One answer

Permanent link
I would test it out explicitly but, since it's part of the Reportable REST API, I would assume that it follows the same logic as the others:
 - default page size is 100 but can be controlled to an extent by the size parameter in the query string
 - if the query would return too much data for one fetch, the result is paginated. If no size parameter is set then it's set to the default of 100. If you set the size but it's too large, it's clamped at the maximum. Either way, rrm:totalCount="<size>" attribute is set with the total number of records returned in that call
 - if there are more records to fetch from any call, the rel="next"attribute is set so you know the data is incomplete
 - if there are more records to fetch, the href attribute contains a URL encoded reference to fetch the next page, which includes a token parameter that ensures the integrity of the data set at the time you made the call. The page parameter shows the next page that will be fetched and is automatically incremented

0 votes

Comments

I tested and doesn't look like it responds to the size parameter. For example, there's a view for a module that has 3900 artifacts. Whether or not I specify a value for the size parameter (I tried setting size parameter to 1000) and pos (position) parameter, all 3900 artifacts are returned in a single API call. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,988

Question asked: Feb 05, 4:52 p.m.

Question was seen: 258 times

Last updated: Feb 05, 6:21 p.m.

Confirmation Cancel Confirm