dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #14028
Re: API call to list all data elements within a dataset
Jason is right, my suggestion does not work in later versions. Akash's
gives you what I was trying to get:
https://play.dhis2.org/dev/api/dataElements?filter=dataSetElements.dataSet.id:eq:lyLU2wR22tC&fields=id,name,description&paging=false
On Thu, Aug 17, 2017 at 8:45 AM Akash Jindal <akashjindal.in@xxxxxxxxx>
wrote:
> Hi Nick,
>
> I used this one to get the same:
>
>
> /api/dataElements.json?filter=dataSetElements.dataSet.id:eq:Xd0ePcEz1nx&fields=description,id,displayName&paging=false
> <http://www.google.com/url?q=http%3A%2F%2Fuphmis.in%2Fuphmis%2Fapi%2FdataElements.json%3Ffilter%3DdataSetElements.dataSet.id%3Aeq%3AXd0ePcEz1nx%26fields%3Ddescription%2Cid%2CdisplayName%26paging%3Dfalse&sa=D&sntz=1&usg=AFQjCNHSjaWAxe50AP2gHN4lfYt-Gwv60w>
>
> Regards
> Akash Jindal
>
>
> On Thu, Aug 17, 2017 at 5:55 PM, Shurajit Dutta <shurajitdutta@xxxxxxxxx>
> wrote:
>
>> Hi everyone,
>>
>> Can someone share with me the API call to list all data elements within a
>> dataset, perhaps the uid and name? Though if someone has something already
>> that provides more fields that would also be great.
>>
>> Thanks,
>> Nick
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help : https://help.launchpad.net/ListHelp
>>
>>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
References