Re: [Dhis2-users] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Yes exactly, I want to do collection sorting directly through the Api. Thanks for your time! On Mon, Feb 29, 2016 at 3:45 PM, Morten Olav Hansen wrote: > Yes, the query you are giving there is different from what you gave > before. You can't do collection sorting, which I

Re: [Dhis2-users] Regarding Data sort through an APi

2016-02-29 Thread Morten Olav Hansen
Yes, the query you are giving there is different from what you gave before. You can't do collection sorting, which I assume is what you want? https://play.dhis2.org/demo/api/dataElementGroups.json?fields=id,displayName=displayName:desc These kinds of sorts works. On Mon, Feb 29, 2016 at 5:08

Re: [Dhis2-users] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Thanks for the reply Morten, I have tried with order parameter also but still getting the same order. Here suppose I want to sort all the dataelements under Anaemia(KmwPVkjp7yl) group like: https://play.dhis2.org/demo/api/dataElementGroups/KmwPVkjp7yl?fields=dataElements[id,name]=name:asc Here

Re: [Dhis2-users] Regarding Data sort through an APi

2016-02-29 Thread Morten Olav Hansen
I assume you mean metadata (from your examples). Yes, you can use the order parameter, please have a look at [1]. [1] http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s06.html On Mon, Feb 29, 2016 at 3:48 PM, Sourabh Bhardwaj wrote: > Hi all, > > Can we

[Dhis2-users] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Hi all, Can we sort data getting through an Api, I am trying using sortOrder but it did not helped. Following is the complete url: https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]=ASC OR