← Back to team overview

dhis2-devs team mailing list archive

Re: [dhis2-devs] [API] Total always '0' in paging information

 

Hi Harsh

Try with totalPages=true, adding the totals adds a bit of extra processing
time.. so we don't include it by default

--
Morten

On Sat, Jan 30, 2016 at 1:28 PM, Harsh Atal <harsh.atal@xxxxxxxxx> wrote:

> Hi
>
> I am trying to get events come as page wise with custom page size. Related
> to that a little issue -
>
> Using this API URL : https://play.dhis2.org/demo/api/events?pageSize=10
>
> Getting following data :
> <metadata xmlns="http://dhis2.org/schema/dxf/2.0";>
> <pager>
> <page>1</page>
> <pageCount>1</pageCount>
> <total>0</total>
> </pager>
> .
> .
> .
>
> The total should not be 0 , it should be the total number of pages, it is
> always coming as 0.
>
> Happening on dev server as well.
>
> Thanks
> harsh
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References