[Dhis2-devs] Web API - Finding organization units assigned to a program

2018-02-28 Thread Edouard Lavaud
Hi there, Using 2.28 and its web API, I need to find all the organisation units which have been assigned a specific tracker program. Any idea how I could handle that? (I could loop through all OU and test them, but that is not super beautiful, isn't it?) Thanks! Edouard ___

Re: [Dhis2-devs] [Dhis2-users] Web API - Finding organization units assigned to a program

2018-02-28 Thread Jason Pickering
Hi Edoard, Try dev/api/programs/UID?fields=organisationUnits[id,name] where UID is the UID of your program. Regards, Jason On Wed, Feb 28, 2018 at 10:44 AM, Edouard Lavaud wrote: > Hi there, > > Using 2.28 and its web API, I need to find all the organisation units > which have been assigned a

Re: [Dhis2-devs] Web API - Finding organization units assigned to a program

2018-02-28 Thread Melaeke Serawit
Hello, For finding all org units assigned to a specific program you could use : your-web-address/api/programs/ the-program-id-you-want-to-view?fields=id,displayName,organisationUnits[id, displayName] This just shows you the id and the name of the organisation units. For more info you can take a

Re: [Dhis2-devs] Web API - Finding organization units assigned to a program

2018-02-28 Thread Edouard Lavaud
Oh great! Thanks Jason & Melaeke! Works like a charm! 2018-02-28 11:06 GMT+02:00 Melaeke Serawit : > Hello, > > For finding all org units assigned to a specific program you could use : > > your-web-address/api/programs/the-program-id-you-want-to- > view?fields=id,displayName,organisationUnits[id,

[Dhis2-devs] Accessing DHIS2 instance from an external app

2018-02-28 Thread Petar Jovanovic
Hello, We have a DHIS2 instance running on the server. We are testing another (external) javascript app and its access to this DHIS2 instance. When executing it locally on our PC we are getting an HTTP 0 error saying that a cross-domain resource was requested but no CORS headers in the respo

Re: [Dhis2-devs] Accessing DHIS2 instance from an external app

2018-02-28 Thread Edoardo Sabadelli
On Wed, Feb 28, 2018 at 11:00 AM, Petar Jovanovic wrote: > Hello, > > We have a DHIS2 instance running on the server. We are testing another > (external) javascript app and its access to this DHIS2 instance. > > When executing it locally on our PC we are getting an HTTP 0 error saying > that a cro

Re: [Dhis2-devs] Accessing DHIS2 instance from an external app

2018-02-28 Thread Petar Jovanovic
Thank you very much! I just meant that the external app is executing locally on our PC and trying to access the DHIS2 instance on a remote server. Indeed, we were trying to do it with localhost adding a port (8080) but it did not work. Without the port, executing it in the browser seems to b

[Dhis2-devs] Org unit not loading in the data entry section

2018-02-28 Thread Absolom MURAMIRA
Dear Colleagues, I am being challenged by my system whereby when i open the data entry app and click on the org unit name, it does not load in the data entry section to enable me select the dataset for entering data. Has anyone experienced this before and can advise me? I am using v2.28 build c9

[Dhis2-devs] Distributed database with DHIS2 Tracker

2018-02-28 Thread Nguza Yikona
Dear community, We are planning to implement a distributed database of DHIS2 tracker module. Is this something that is feasible with tracker? Are there chances of duplicate tracked entity instance IDs, event IDs, program instance IDs in the system? If yes how can this be prevented? Thank you al

Re: [Dhis2-devs] [d2 lib] - API call failing with "Server connection failed for API request"

2018-02-28 Thread Martin Van Aken
Hello again Edoardo & d2 team, I just tested the d2 29x version for the analytics. My problem is I don't manage to make the simplest example work. I took an analytics query working in the REST API and tried to convert it to d2: getAnalytics() { return getInstance().then(d2 => { const req = d2.anal

[Dhis2-devs] how to refer patient from one site to another in DHIS2 tracker

2018-02-28 Thread DJIBRIL Hakim
Hello all, I am searching a documentation on how refer patient from one site to another in DHIS2 tracker but not found it. Please Can someone explain how doing that? ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launch

Re: [Dhis2-devs] [d2 lib] - API call failing with "Server connection failed for API request"

2018-02-28 Thread Edoardo Sabadelli
Hi Martin I don't see the "new" in the code you posted. It should be: const req = new d2.analytics.request() ... -- Edoardo Sabadelli Software developer, DHIS 2 University of Oslo edoa...@dhis2.org http://www.dhis2.org On Feb 28, 2018 3:21 PM, "Martin Van Aken" wrote: Hello again Edoardo & d2

Re: [Dhis2-devs] [d2 lib] - API call failing with "Server connection failed for API request"

2018-02-28 Thread Martin Van Aken
Ok, sorry, figure it out, just require a "new" as Request is a class: const req = new d2.analytics.request() .withProgram('jqKm7VLgdzL') .addDataDimension(['fyKddt8DF3P', 'RH9knJBq3gv', 'GbtVi9hJhl1', 'pCU50gRMGQh', 'el1mbPDIDSD', 'sn3PEvqjGPp', 'jsZgVNf1fuR']) .addPeriodDimension([2016, 2017, 201

Re: [Dhis2-devs] [d2 lib] - API call failing with "Server connection failed for API request"

2018-02-28 Thread Martin Van Aken
Hi, Thanks, looks like our mails passed each other. You are right, but the "new" was missing from the doc too hence my mistake - my thanks again for your followup! Martin On Wed, Feb 28, 2018 at 4:03 PM, Edoardo Sabadelli wrote: > Hi Martin > > I don't see the "new" in the code you posted. > >

Re: [Dhis2-devs] [d2 lib] - API call failing with "Server connection failed for API request"

2018-02-28 Thread Edoardo Sabadelli
Oops! Will fix the documentation. Thanks for testing ;) -- Edoardo Sabadelli Software developer, DHIS 2 University of Oslo edoa...@dhis2.org http://www.dhis2.org On Feb 28, 2018 4:08 PM, "Martin Van Aken" wrote: > Hi, > Thanks, looks like our mails passed each other. You are right, but the > "ne

[Dhis2-devs] [DHIS2 Android] New Release of Tracker Capture (bug-fix version)

2018-02-28 Thread Android Team
Dear DHIS2 Community, We are releasing today a new version of the *Tracker Capture Android App*. *Notice that this version is released to fix the known bugs, but still NOT compatible with 2.29 * (we are already working on the compatibility and will share the next release plans for all apps afte

[Dhis2-devs] [DHIS2 Android] New Release of Tracker Capture (bug-fix version) RELEASE NOTES UPDATED

2018-02-28 Thread Android Team
The previous release notes were not correct. Apologies, Marta On Wed, Feb 28, 2018 at 5:36 PM, Android Team wrote: > Dear DHIS2 Community, > > We are releasing today a new version of the *Tracker Capture Android App* > . > > *Notice that this version is released to fix the known bugs, but stil

[Dhis2-devs] DHIS2 2.27 failure to perform maintenance

2018-02-28 Thread Stanley Kalyati
My instance is failing to perform maintenance.It can not even delete soft tracked entities in tracker. It is also failing to pull data with program indicators What could be the problem.Anyone with an idea? Thanks ___ Mailing list: https://launchpad.net

[Dhis2-devs] DHIS2 Developer position in Ouagadougou, BF

2018-02-28 Thread rom...@tohouri.com
Cher communauté DHIS2, MEASURE Evaluation recrute un développeur spécialiste en DHIS2 basé au Burkina Faso http://www.jsi.com/JSIInternet/Careers/jobdescription.cfm?id=112925&intern=0 Merci, Romain__

Re: [Dhis2-devs] [Dhis2-users] HOW TO CREATE PROGRAM INDICATOR IN DHIS2 2.27 TO 2.28

2018-02-28 Thread Stanley Kalyati
How come its failing to show values whenever i set the program inducator to count events? is it a bug? On Tue, Feb 20, 2018 at 7:38 PM, Markus Bekken wrote: > Hi there Stanley, > the program indicators is now located in the maintenance app. The program > indicator section of the maintenance app

[Dhis2-devs] Program indicators failing to return values

2018-02-28 Thread Stanley Kalyati
All, I am using DHIS2 version 2.27 Build revision 77c7934 Build date 2017-09-19 06:25 but every program indicator is failing to return values and yet i have records under tracker capture.What could be the problem? Anyone please to assist? Stanley _

[Dhis2-devs] Need to modify or regenerate the default categoryOptionCombo

2018-02-28 Thread Mike Johnson
I have an instance on 2.27, but it was originally built in 2.24 and upgraded to 2.25 and 2.26. I need to regenerate my default categoryCombo. Somehow I have two categoryOptionCombos associated with the default categoryCombo (default, and "Cured", which is an unrelated disaggregation from anothe