[Dhis2-devs] Querying Events API for a data value

2018-04-19 Thread David Huser
Hi, Is there a way to filter the Event API for a data value (to only return events where it matches to the value)? What I tried: - Variations of this (undocumented) call but get events back where the value != 12 -- https://play.dhis2.org/2.29/api/events.json?program=q04UBOqq3rp&filter

Re: [Dhis2-devs] Get number of days between two event dates in different program stages

2018-04-19 Thread Calle Hedberg
Hi DHIS2 does not currently support V{event_date} for a specific stage - it will always pick the anchor/report date for the most current event. This is supposed to be fixed in 2.30 - see JIRA issue DHIS2-1397 Regards Calle On 19 April 2018 at 06:13, Marko David Garcia wrote: > Hello friends!.

[Dhis2-devs] Reserving unique Case ID attributes in Tracker - duplicates encountered when reserving via Android

2018-04-19 Thread Calle Hedberg
Hi, In 2.28. the table "TrackedEntityAttributeReservedValues" is storing unique ID values that have been reserved. When a request is coming from e.g. an Android device running Tracker Capture, the API will trigger the reservation of 100 values and return these to the device while also storing the

Re: [Dhis2-devs] Reserving unique Case ID attributes in Tracker - duplicates encountered when reserving via Android

2018-04-19 Thread Markus Bekken
Hey Calle, we haven't really documented how this behaves when you do manual inserts of reseved values. Assuming the db insert did the same as a API reservation would have done, and that no caching is interfering what hibernate sees - the 100 new reserved values should not be among those preexis

Re: [Dhis2-devs] Reserving unique Case ID attributes in Tracker - duplicates encountered when reserving via Android

2018-04-19 Thread Calle Hedberg
Markus, I think this must have been caused by a hibernate caching delay. I deleted the additional records created by Tracker Capture now (after logging out from Tracker Capture), and then logged in with TC again - and this time the system actually generated 200 reserved values in two batches: - th

Re: [Dhis2-devs] Reserving unique Case ID attributes in Tracker - duplicates encountered when reserving via Android

2018-04-19 Thread Calle Hedberg
Hi Note also that Tracker Capture did not open up before both 100 reserved value batches had been created - so it took around 4 min for the login Regards Calle On 19 April 2018 at 16:13, Calle Hedberg wrote: > Markus, > > I think this must have been caused by a hibernate caching delay. I delet

Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-19 Thread Adebusoye Anifalaje
Hi Mahdi, I am forwarding your request to the user list. This is the appropriate forum for asking these sort of questions. Best. Busoye. -- Forwarded message - From: mahdi asgari Date: Thu, 19 Apr 2018 at 20:25 Subject: WEB API Error in DHIS2.30 To: Hi dear adebusoye I am usi

[Dhis2-devs] Fwd: WEB API Error in DHIS2.30

2018-04-19 Thread mahdi asgari
-- Forwarded message -- From: mahdi asgari Date: Thu, Apr 19, 2018 at 11:55 PM Subject: WEB API Error in DHIS2.30 To: bus...@baosystems.com Hi dear adebusoye I am using dhis2 version 2.30, compiled from github (last version), When i try to create trackedEntity with weeb api, i g

Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-19 Thread Ocaya Stephen
Please note that 2.30 has not yet been officially released. But think the developers will look into fixing this issue. regards On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje wrote: > Hi Mahdi, > I am forwarding your request to the user list. This is the appropriate > forum for asking the

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-19 Thread Rangarirai Matavire
By the way, its not just the error response code that is worrying, but also the loop of redirects that starts, this makes it difficult to handle the response for an http client. To see this loop of redirects, you can add -L to curl as below. curl -I -L -u admin:distric -H 'Accept: application/json

Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-19 Thread Edouard Lavaud
Hi there, Starting from 2.29 the trackedEntity field has been renamed to trackedEntityType. Best, Edouard 2018-04-20 4:44 GMT+02:00 Ocaya Stephen : > Please note that 2.30 has not yet been officially released. But think the > developers will look into fixing this issue. > > regards > > On Thu,