EddieMu
(Edwin Mulwa)
20 May 2014 10:14
1
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
morten
(Morten Hansen)
20 May 2014 10:28
2
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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
EddieMu
(Edwin Mulwa)
20 May 2014 11:03
3
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 child node included (or any other child nodes for that matter).
Edwin
···
On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen mortenoh@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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
morten
(Morten Hansen)
20 May 2014 11:07
4
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 eddiemu@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 child node included (or any other child nodes for that matter).
Edwin
On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen mortenoh@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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
EddieMu
(Edwin Mulwa)
20 May 2014 11:18
5
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 mortenoh@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 eddiemu@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 child node included (or any other child nodes for that matter).
Edwin
On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen mortenoh@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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
morten
(Morten Hansen)
20 May 2014 11:35
6
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 eddiemu@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 mortenoh@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 eddiemu@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 child node included (or any other child nodes for that matter).
Edwin
On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen mortenoh@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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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
EddieMu
(Edwin Mulwa)
20 May 2014 11:56
7
Thanks Morten. I’ll give it a try.
···
On Tue, May 20, 2014 at 2:35 PM, Morten Olav Hansen mortenoh@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 eddiemu@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 mortenoh@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 eddiemu@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 child node included (or any other child nodes for that matter).
Edwin
On Tue, May 20, 2014 at 1:28 PM, Morten Olav Hansen mortenoh@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 eddiemu@gmail.com wrote:
Hi,
I am extracting a list of dataSets from DHIS using the Web API and I would like to exclude the 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