Yes, and I am trying to get all data for all tracked entity instances, not for 
a specific one. Any idea?

From: Knut Staring [mailto:knu...@gmail.com]
Sent: Tuesday, February 6, 2018 5:43 PM
To: Georgi Chakarov <geo...@logicaloutcomes.net>
Cc: DHIS 2 Developers list <dhis2-devs@lists.launchpad.net>; 
dhis2-us...@lists.launchpad.net; Michal Debski 
<michal.deb...@logicaloutcomes.net>; Wojtek Bak <woj...@logicaloutcomes.net>
Subject: Re: [Dhis2-users] FW: Access Tracker capture program stage data 
through API

I see. I am actually seeing a restriction when trying the example at the bottom 
of the page in the manual:

https://docs.dhis2.org/master/en/developer/html/webapi_events.html#webapi_querying_reading_events

https://play.dhis2.org/dev/api/26/events.json?orgUnit=DiszpKrYNg8&program=eBAyeGv0exc&trackedEntityInstance=gfVxE3ALA9m&startDate=2014-01-01&endDate=2014-12-31

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"[User 
has no read access to program: ur1Edk5Oe2n]"}

This is of course not the response you are getting.

Knut



[Image removed by 
sender.]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

Virus-free. 
www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>


On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov 
<geo...@logicaloutcomes.net<mailto:geo...@logicaloutcomes.net>> wrote:
Hi Knut,

I am using a super user account and we don’t have data shared among users. 
Maybe the problem is related to the fact that Tracker data does not get 
exported in any format from the Import/Export app either. Aggregate data does, 
but tracker or event data does not.

Georgi
From: Knut Staring [mailto:knu...@gmail.com<mailto:knu...@gmail.com>]
Sent: Tuesday, February 6, 2018 3:42 PM
To: Georgi Chakarov 
<geo...@logicaloutcomes.net<mailto:geo...@logicaloutcomes.net>>
Cc: DHIS 2 Developers list 
<dhis2-devs@lists.launchpad.net<mailto:dhis2-devs@lists.launchpad.net>>; 
dhis2-us...@lists.launchpad.net<mailto:dhis2-us...@lists.launchpad.net>; Michal 
Debski 
<michal.deb...@logicaloutcomes.net<mailto:michal.deb...@logicaloutcomes.net>>; 
Wojtek Bak <woj...@logicaloutcomes.net<mailto:woj...@logicaloutcomes.net>>
Subject: Re: [Dhis2-users] FW: Access Tracker capture program stage data 
through API

Just a thought - is the user you are using for the API member of the user group 
for which this data has been shared?

Knut

On Tue, Feb 6, 2018 at 2:38 PM, Georgi Chakarov 
<geo...@logicaloutcomes.net<mailto:geo...@logicaloutcomes.net>> wrote:
Hi all,

Any thoughts on the below question? Your input is highly needed and appreciated!

Regards,
Georgi

From: Georgi Chakarov
Sent: Monday, February 5, 2018 6:20 PM
To: 'DHIS 2 Developers list' 
<dhis2-devs@lists.launchpad.net<mailto:dhis2-devs@lists.launchpad.net>>; 
dhis2-us...@lists.launchpad.net<mailto:dhis2-us...@lists.launchpad.net>
Cc: Michal Debski 
<michal.deb...@logicaloutcomes.net<mailto:michal.deb...@logicaloutcomes.net>>; 
Wojtek Bak <woj...@logicaloutcomes.net<mailto:woj...@logicaloutcomes.net>>
Subject: Access Tracker capture program stage data through API

Hi all,

Can anyone tell me what is the query to read all data entered in a Tracker 
capture program stage?

We have tried this:
/api/26/events.json?orgUnit=DiszpKrYNg8&program=eBAyeGv0exc
and other versions like /api/26/events.json?orgUnit=YuQRtpLP10I&ouMode=CHILDREN 
but we get the result below. Your feedback is highly appreciated!


[cid:image003.jpg@01D39F72.5F694920]

Georgi

Georgi Chakarov, CIA | 
geo...@logicaloutcomes.net<mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 
x 104<tel:(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation, 
720 Bathurst Street, Toronto Canada M5S 
2R4<https://maps.google.com/?q=720+Bathurst+Street,+Toronto+Canada+M5S+2R4&entry=gmail&source=g>
 | You may unsubscribe from receiving commercial electronic messages from 
LogicalOutcomes by emailing 
i...@logicaloutcomes.net<mailto:i...@logicaloutcomes.net>


_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : 
dhis2-us...@lists.launchpad.net<mailto:dhis2-us...@lists.launchpad.net>
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp



--
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683<tel:+41%2022%20791%2036%2083> Mob1: +33 6 4434 
2931<tel:+33%206%2044%2034%2029%2031> Mob2: +47 9188 0522
Skype:     knutstar



--
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype:     knutstar
_______________________________________________
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