Thanks Morten. I'll give it a try.

On Tue, May 20, 2014 at 2:35 PM, Morten Olav Hansen <morte...@gmail.com>wrote:

> http://apps.dhis2.org/demo/api/dataSets.json?exclude=dataEntryForm (admin
> / district)
>
> This will return pages output, you can add paging=false if you want to
> remove it
>
>
> --
> Morten
>
>
> On Tue, May 20, 2014 at 1:18 PM, Edwin Mulwa <eddi...@gmail.com> wrote:
>
>> Thanks Morten.
>>
>> Could you give me a sample command using JSON that I could use to achieve
>> my goal?
>>
>>
>> On Tue, May 20, 2014 at 2:07 PM, Morten Olav Hansen 
>> <morte...@gmail.com>wrote:
>>
>>> Hi
>>>
>>> Only JSON is supported right now, we hope to have other renderers
>>> available in DHIS 2.17. When you add .xml, the include/exclude
>>> functionality is bypassed.
>>>
>>> --
>>> Morten
>>>
>>>
>>> On Tue, May 20, 2014 at 1:03 PM, Edwin Mulwa <eddi...@gmail.com> wrote:
>>>
>>>> Hi Morten,
>>>>
>>>> here is the URL:
>>>>
>>>> curl -H "Accept: application/xml" -u admin:district "
>>>> http://apps.dhis2.org/demo/api/dataSets.xml?viewClass=detailed&exclude=dataEntryForm&links=false&paging=false
>>>> "
>>>>
>>>> I want ALL the dataSets and its associated dataElements but I don't
>>>> want the <dataEntryForm> child node included (or any other child nodes for
>>>> that matter).
>>>>
>>>> Edwin
>>>>
>>>>
>>>>
>>>> On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen <morte...@gmail.com
>>>> > wrote:
>>>>
>>>>> Can you give me the URL you are trying? also, it will only work with a
>>>>> list of dataSets, not at the /api/dataSets/ID endpoint
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>>
>>>>> On Tue, May 20, 2014 at 12:14 PM, Edwin Mulwa <eddi...@gmail.com>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am extracting a list of dataSets from DHIS using the Web API and I
>>>>>> would like to exclude the <dataEntryForm> node.
>>>>>>
>>>>>> I have tried using the "exclude" command as explained here:
>>>>>>
>>>>>> http://www.dhis2.org/doc/snapshot/en/user/html/ch28s07.html
>>>>>>
>>>>>> but this is not working.
>>>>>>
>>>>>> Any pointers on how to make this happen is welcome.
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Edwin
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
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

Reply via email to