Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Abyot Asalefew Gizaw
May be complaining about program stage?

---

Thank you,
Abyot.
(sent from mobile)

On Feb 6, 2018 17:21, "Knut Staring"  wrote:

> Hi Abyot,
>
> I am probably just stupid, but why is it complaining about a different
> program (ur1Edk5Oe2n) than the one requested in the URL (eBAyeGv0exc) ?
>
> And even after sharing both programs with the administrator group which
> admin is a member of, I still get the same?
>
> Knut
>
> On Tue, Feb 6, 2018 at 5:00 PM, Abyot Asalefew Gizaw 
> wrote:
> >
> > That is because if the new sharing setting. You need to go and configure
> data read and write sharing settings...
> >
> > The same url should work in 2.28 and lower versions.
> >
> >
> > On Tue, Feb 6, 2018, 16:55 Georgi Chakarov 
> wrote:
> >>
> >> 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 
> >> Cc: DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski  logicaloutcomes.net>; Wojtek Bak 
> >> 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=eBAyeGv0exc=
> gfVxE3ALA9m=2014-01-01=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
> >>
> >>
> >>
> >>
> >>
> >> Virus-free. www.avg.com
> >>
> >>
> >>
> >> On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov <
> 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]
> >> Sent: Tuesday, February 6, 2018 3:42 PM
> >> To: Georgi Chakarov 
> >> Cc: DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski  logicaloutcomes.net>; Wojtek Bak 
> >> 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> 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-us...@lists.launchpad.net
> >> Cc: Michal Debski ; Wojtek Bak <
> 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=eBAyeGv0exc
> >>
> >> and other versions like 
> >> /api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN
> but we get the result below. Your feedback is highly appreciated!
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Georgi
> >>
> >>
> >> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
> 104 <+1%20647-478-5634> | LogicalOutcomes c/o Centre for Social
> Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4
> 
> | You may unsubscribe from receiving commercial electronic messages from
> LogicalOutcomes by emailing i...@logicaloutcomes.net
> >>
> >>
> >>
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~dhis2-users
> >> Post to : 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
> >> 

Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Knut Staring
Hi Abyot,

I am probably just stupid, but why is it complaining about a different
program (ur1Edk5Oe2n) than the one requested in the URL (eBAyeGv0exc) ?

And even after sharing both programs with the administrator group which
admin is a member of, I still get the same?

Knut

On Tue, Feb 6, 2018 at 5:00 PM, Abyot Asalefew Gizaw 
wrote:
>
> That is because if the new sharing setting. You need to go and configure
data read and write sharing settings...
>
> The same url should work in 2.28 and lower versions.
>
>
> On Tue, Feb 6, 2018, 16:55 Georgi Chakarov 
wrote:
>>
>> 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 
>> Cc: DHIS 2 Developers list ;
dhis2-us...@lists.launchpad.net; Michal Debski <
michal.deb...@logicaloutcomes.net>; Wojtek Bak 
>> 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=eBAyeGv0exc=gfVxE3ALA9m=2014-01-01=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
>>
>>
>>
>>
>>
>> Virus-free. www.avg.com
>>
>>
>>
>> On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov <
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]
>> Sent: Tuesday, February 6, 2018 3:42 PM
>> To: Georgi Chakarov 
>> Cc: DHIS 2 Developers list ;
dhis2-us...@lists.launchpad.net; Michal Debski <
michal.deb...@logicaloutcomes.net>; Wojtek Bak 
>> 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> 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-us...@lists.launchpad.net
>> Cc: Michal Debski ; Wojtek Bak <
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=eBAyeGv0exc
>>
>> and other versions like
/api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN but we get the
result below. Your feedback is highly appreciated!
>>
>>
>>
>>
>>
>>
>>
>> Georgi
>>
>>
>> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
104 | LogicalOutcomes c/o Centre for Social Innovation, 720 Bathurst
Street, Toronto Canada M5S 2R4 | You may unsubscribe from receiving
commercial electronic messages from LogicalOutcomes by emailing
i...@logicaloutcomes.net
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : 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 Mob1: +33 6 4434 2931 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-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : 

Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Abyot Asalefew Gizaw
That is because if the new sharing setting. You need to go and configure
data read and write sharing settings...

The same url should work in 2.28 and lower versions.

On Tue, Feb 6, 2018, 16:55 Georgi Chakarov 
wrote:

> 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 
> *Cc:* DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski <
> michal.deb...@logicaloutcomes.net>; Wojtek Bak  >
> *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=eBAyeGv0exc=gfVxE3ALA9m=2014-01-01=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: Image removed by sender.]
> 
>
> Virus-free. www.avg.com
> 
>
>
>
> On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov <
> 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]
> *Sent:* Tuesday, February 6, 2018 3:42 PM
> *To:* Georgi Chakarov 
> *Cc:* DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski <
> michal.deb...@logicaloutcomes.net>; Wojtek Bak  >
> *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> 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-us...@lists.launchpad.net
> *Cc:* Michal Debski ; Wojtek Bak <
> 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=eBAyeGv0exc *
>
> and other versions like
> */api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN* but we get the
> result below. Your feedback is highly appreciated!
>
>
>
>
>
>
>
> Georgi
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x 104
> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation, 720
> Bathurst Street, Toronto Canada M5S 2R4
> 
> | *You may unsubscribe from receiving commercial electronic messages from
> LogicalOutcomes by emailing **i...@logicaloutcomes.net*
> 
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : 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 <+41%2022%20791%2036%2083> Mob1: +33 6 4434 2931
> <+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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : 

Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Knut Staring
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=eBAyeGv0exc=gfVxE3ALA9m=2014-01-01=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




Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov 
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]
> *Sent:* Tuesday, February 6, 2018 3:42 PM
> *To:* Georgi Chakarov 
> *Cc:* DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski  logicaloutcomes.net>; Wojtek Bak 
> *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> 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-us...@lists.launchpad.net
> *Cc:* Michal Debski ; Wojtek Bak <
> 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=eBAyeGv0exc *
>
> and other versions like
> */api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN* but we get the
> result below. Your feedback is highly appreciated!
>
>
>
>
>
>
>
> Georgi
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x 104
> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation, 720
> Bathurst Street, Toronto Canada M5S 2R4
> 
> | *You may unsubscribe from receiving commercial electronic messages from
> LogicalOutcomes by emailing **i...@logicaloutcomes.net*
> 
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : 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 <+41%2022%20791%2036%2083> Mob1: +33 6 4434 2931
> <+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


Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Georgi Chakarov
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 
Cc: DHIS 2 Developers list ; 
dhis2-us...@lists.launchpad.net; Michal Debski 
; Wojtek Bak 
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=eBAyeGv0exc=gfVxE3ALA9m=2014-01-01=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.]

Virus-free. 
www.avg.com


On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov 
> 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]
Sent: Tuesday, February 6, 2018 3:42 PM
To: Georgi Chakarov 
>
Cc: DHIS 2 Developers list 
>; 
dhis2-us...@lists.launchpad.net; Michal 
Debski 
>; 
Wojtek Bak >
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 
> 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-us...@lists.launchpad.net
Cc: Michal Debski 
>; 
Wojtek Bak >
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=eBAyeGv0exc
and other versions like /api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN 
but we get the result below. Your feedback is highly appreciated!


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

Georgi

Georgi Chakarov, CIA | 
geo...@logicaloutcomes.net | +1-647-478-5634 
x 104 | LogicalOutcomes c/o Centre for Social Innovation, 
720 Bathurst Street, Toronto Canada M5S 
2R4
 | You may unsubscribe from receiving commercial electronic messages from 
LogicalOutcomes by emailing 
i...@logicaloutcomes.net


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : 
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 Mob1: +33 6 4434 
2931 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


Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Abyot Asalefew Gizaw
Hi,

We have some guide on how to read events through api. See the documentation
here.

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

and an example

https://play.dhis2.org/dev/api/28/events.json?orgUnit=DiszpKrYNg8=Zj7UnCAulEk=50=1=true

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Tue, Feb 6, 2018 at 4:11 PM, Georgi Chakarov 
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]
> *Sent:* Tuesday, February 6, 2018 3:42 PM
> *To:* Georgi Chakarov 
> *Cc:* DHIS 2 Developers list ;
> dhis2-us...@lists.launchpad.net; Michal Debski  logicaloutcomes.net>; Wojtek Bak 
> *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> 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-us...@lists.launchpad.net
> *Cc:* Michal Debski ; Wojtek Bak <
> 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=eBAyeGv0exc *
>
> and other versions like
> */api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN* but we get the
> result below. Your feedback is highly appreciated!
>
>
>
>
>
>
>
> Georgi
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x 104
> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation,
> 720 Bathurst Street, Toronto Canada M5S 2R4 | *You may unsubscribe from
> receiving commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* 
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : 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 <+41%2022%20791%2036%2083> Mob1: +33 6 4434 2931
> <+33%206%2044%2034%2029%2031> Mob2: +47 9188 0522
> Skype: knutstar
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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


Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Georgi Chakarov
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]
Sent: Tuesday, February 6, 2018 3:42 PM
To: Georgi Chakarov 
Cc: DHIS 2 Developers list ; 
dhis2-us...@lists.launchpad.net; Michal Debski 
; Wojtek Bak 
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 
> 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-us...@lists.launchpad.net
Cc: Michal Debski 
>; 
Wojtek Bak >
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=eBAyeGv0exc
and other versions like /api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN 
but we get the result below. Your feedback is highly appreciated!


[cid:image001.jpg@01D39F6D.7E1A97C0]

Georgi

Georgi Chakarov, CIA | 
geo...@logicaloutcomes.net | +1-647-478-5634 
x 104 | LogicalOutcomes c/o Centre for Social Innovation, 
720 Bathurst Street, Toronto Canada M5S 2R4 | You may unsubscribe from 
receiving commercial electronic messages from LogicalOutcomes by emailing 
i...@logicaloutcomes.net


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : 
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 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


Re: [Dhis2-devs] [Dhis2-users] FW: Access Tracker capture program stage data through API

2018-02-06 Thread Knut Staring
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 
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-us...@lists.launchpad.net
> *Cc:* Michal Debski ; Wojtek Bak <
> 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=eBAyeGv0exc *
>
> and other versions like
> */api/26/events.json?orgUnit=YuQRtpLP10I=CHILDREN* but we get the
> result below. Your feedback is highly appreciated!
>
>
>
>
>
>
>
> Georgi
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x 104
> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation,
> 720 Bathurst Street, Toronto Canada M5S 2R4 | *You may unsubscribe from
> receiving commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* 
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : 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 <+41%2022%20791%2036%2083> Mob1: +33 6 4434 2931
<+33%206%2044%2034%2029%2031> 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