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 :
1
1
0
.
.
.
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
morten
(Morten Hansen)
2
Hi Harsh
Try with totalPages=true, adding the totals adds a bit of extra processing time… so we don’t include it by default
···
On Sat, Jan 30, 2016 at 1:28 PM, Harsh Atal harsh.atal@gmail.com 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 :
1
1
0
.
.
.
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Morten
Oh yes, that works…didn’t know about this filter…Thanks Morten.
Regards
harsh
···
On 30 January 2016 at 15:46, Morten Olav Hansen mortenoh@gmail.com wrote:
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@gmail.com 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 :
1
1
0
.
.
.
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp