Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Great!! we had to remove the '\n' characters and also the white spaces...
now it is working! (I pay the beers next time in Oslo).

Now, how '\n' and '\s' characters could be introduced in our database? It
seems that our XMLs files are fine... (I can attach them if you want).

Thanks guys!


On Tue, Nov 1, 2016 at 4:00 AM, Jose Garcia Muñoz 
wrote:

>
> Thanks Lars,
>
> I definitily will try to remove the '\n'. It is strange because we have
> '\n' in the coordinates of all org. units. I have checked the XMLs we have
> used for import, and they seem to be ok. Would it be related to a problem
> within the import process? It seems that only happens in 2.25...
>
> On Tue, Nov 1, 2016 at 3:14 AM, Lars Helge Øverland 
> wrote:
>
>> Hi Jose,
>>
>> seems like you have a linebreak in your geojson, see:
>>
>> "\n"
>>
>> Likely not behaving well with json parsing. Try removing that.
>>
>>
>> Lars
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Oct 31, 2016 at 9:36 PM, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Ok, I see, I think this is because of the blank spaces??
>>>
>>>
>>>
>>> [{"id":"NC3WdxGafv5","code":"KH","na":"Cambodia","hcd":false
>>> ,"hcu":true,"le":3,"pg":"/FvUGp8I75zV/aChOCLW4x6p","pi":"aChOCLW4x6p","pn":"Asia
>>> and Eastern Europe","ty":2,"co":"\n
>>>  102.9176,11.6358],[102.3792,13.5749],[102.599,13.6079],
>>> [103.1812,14.3275],[104.8073,14.4484],[105.0764,14.2177],[10
>>> 5.2083,14.3495],[105.3621,14.1078],[106.0543,13.932],[106.
>>> 1751,14.0639],[106.0048,14.3715],[106.5432,14.5967],[106.
>>> 8563,14.3056],[107.5484,14.7066],[107.3397,14.1243],[107.
>>> 4715,13.932],[107.6308,13.531],[107.5484,12.3554],[106.4223,
>>> 11.9709],[106.4608,11.6633],[106.0488,11.7786],[105.818,11.
>>> 6193],[106.2026,10.7679],[105.7796,11.0205],[105.1039,10.
>>> 9546],[104.8842,10.5371],[104.4447,10.4218],[104.247,10.
>>> 5701],[103.6207,10.4932],[103.5163,10.636],[103.7196,10.
>>> 8667],[103.5548,11.1579],[103.1318,10.8832],[102.956,11.
>>> 5534],[103.0824,11.7237],[102.8956,11.8281],[102.9176,11.6358 "}]
>>>
>>> On Mon, Oct 31, 2016 at 9:02 PM, Bjørn Sandvik  wrote:
>>>
 Hi Jose,

 Could you send the the results of the geoFeatures query than your GIS
 app is requesting?

 The coordinate format should be similar to:
 https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:LE
 VEL-2;ImspTQPwCqd=NAME

 "co": 
 "-11.5914,8.4875],[-11.5906,8.4769],[-11.5898,8.4717],[-11.5882,8.466]
 ...

 --
 Bjørn Sandvik
 GIS developer, DHIS 2
 University of Oslo
 www.dhis2.org



 On Mon, Oct 31, 2016 at 6:19 PM, Jose Garcia Muñoz 
 wrote:

>
> Thanks for the quick actions Jan, Bjorn,
>
> Almost there :). Now the GIS is being displayed, but whenver I want to
> display the bounderies of a country (or bounderies of any level) I'm
> getting the following error:
>
> The org. units have been imported from 2.22 to 2.25. It seems that
> everything is correct in the database...
>
> Am I missing something? Any ideas? :)
>
> Thanks!
>
> Uncaught Error: Invalid LatLng object: (102.3792,13.5749,
> 102.9176,11.6358)
> at L.LatLng (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:2:14559)
> at coordsToLatLng (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:18296)
> at Function.coordsToLatLngs (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:18573)
> at Function.coordsToLatLngs (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:18481)
> at Function.geometryToLayer (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:17850)
> at NewClass.addData (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:16349)
> at NewClass.addData (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:16219)
> at NewClass.initialize (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:5:15944)
> at NewClass.initialize (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:7:8380)
> at NewClass.initialize (http://localhost:8080/dhis225
> /dhis-web-mapping/app.js:9:39)
>
> On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland 
> wrote:
>
>> Hi Jose,
>>
>> You are right that the requests didn't fail. The problem was that
>> they didn't return anything, and the app was not prepared for it.
>>
>> Thanks for reporting.
>>
>> Jan
>>
>>
>>
>> On 31 October 2016 at 12:47, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Thanks Abyot, Bjorn,
>>>
>>> Abyot, the API didn't give us any error, so I really don't know what
>>> the problem may be
>>>
>>> Bjorn, thanks, will try your fix in the following hours and let you

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Lars,

I definitily will try to remove the '\n'. It is strange because we have
'\n' in the coordinates of all org. units. I have checked the XMLs we have
used for import, and they seem to be ok. Would it be related to a problem
within the import process? It seems that only happens in 2.25...

On Tue, Nov 1, 2016 at 3:14 AM, Lars Helge Øverland  wrote:

> Hi Jose,
>
> seems like you have a linebreak in your geojson, see:
>
> "\n"
>
> Likely not behaving well with json parsing. Try removing that.
>
>
> Lars
>
>
>
>
>
>
>
> On Mon, Oct 31, 2016 at 9:36 PM, Jose Garcia Muñoz 
> wrote:
>
>>
>> Ok, I see, I think this is because of the blank spaces??
>>
>>
>>
>> [{"id":"NC3WdxGafv5","code":"KH","na":"Cambodia","hcd":false
>> ,"hcu":true,"le":3,"pg":"/FvUGp8I75zV/aChOCLW4x6p","pi":"aChOCLW4x6p","pn":"Asia
>> and Eastern Europe","ty":2,"co":"\n
>>  102.9176,11.6358],[102.3792,13.5749],[102.599,13.6079],
>> [103.1812,14.3275],[104.8073,14.4484],[105.0764,14.2177],[
>> 105.2083,14.3495],[105.3621,14.1078],[106.0543,13.932],[
>> 106.1751,14.0639],[106.0048,14.3715],[106.5432,14.5967],[
>> 106.8563,14.3056],[107.5484,14.7066],[107.3397,14.1243],[
>> 107.4715,13.932],[107.6308,13.531],[107.5484,12.3554],[106.
>> 4223,11.9709],[106.4608,11.6633],[106.0488,11.7786],[105.
>> 818,11.6193],[106.2026,10.7679],[105.7796,11.0205],[105.
>> 1039,10.9546],[104.8842,10.5371],[104.4447,10.4218],[104.
>> 247,10.5701],[103.6207,10.4932],[103.5163,10.636],[103.
>> 7196,10.8667],[103.5548,11.1579],[103.1318,10.8832],[102.
>> 956,11.5534],[103.0824,11.7237],[102.8956,11.8281],[102.9176,11.6358
>> "}]
>>
>> On Mon, Oct 31, 2016 at 9:02 PM, Bjørn Sandvik  wrote:
>>
>>> Hi Jose,
>>>
>>> Could you send the the results of the geoFeatures query than your GIS
>>> app is requesting?
>>>
>>> The coordinate format should be similar to:
>>> https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:LE
>>> VEL-2;ImspTQPwCqd=NAME
>>>
>>> "co": 
>>> "-11.5914,8.4875],[-11.5906,8.4769],[-11.5898,8.4717],[-11.5882,8.466]
>>> ...
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> www.dhis2.org
>>>
>>>
>>>
>>> On Mon, Oct 31, 2016 at 6:19 PM, Jose Garcia Muñoz 
>>> wrote:
>>>

 Thanks for the quick actions Jan, Bjorn,

 Almost there :). Now the GIS is being displayed, but whenver I want to
 display the bounderies of a country (or bounderies of any level) I'm
 getting the following error:

 The org. units have been imported from 2.22 to 2.25. It seems that
 everything is correct in the database...

 Am I missing something? Any ideas? :)

 Thanks!

 Uncaught Error: Invalid LatLng object: (102.3792,13.5749,
 102.9176,11.6358)
 at L.LatLng (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:2:14559)
 at coordsToLatLng (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:18296)
 at Function.coordsToLatLngs (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:18573)
 at Function.coordsToLatLngs (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:18481)
 at Function.geometryToLayer (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:17850)
 at NewClass.addData (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:16349)
 at NewClass.addData (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:16219)
 at NewClass.initialize (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:5:15944)
 at NewClass.initialize (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:7:8380)
 at NewClass.initialize (http://localhost:8080/dhis225
 /dhis-web-mapping/app.js:9:39)

 On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland 
 wrote:

> Hi Jose,
>
> You are right that the requests didn't fail. The problem was that they
> didn't return anything, and the app was not prepared for it.
>
> Thanks for reporting.
>
> Jan
>
>
>
> On 31 October 2016 at 12:47, Jose Garcia Muñoz 
> wrote:
>
>>
>> Thanks Abyot, Bjorn,
>>
>> Abyot, the API didn't give us any error, so I really don't know what
>> the problem may be
>>
>> Bjorn, thanks, will try your fix in the following hours and let you
>> know
>>
>> Cheers
>> Jose
>>
>> On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik 
>> wrote:
>>
>>> Hi Jose,
>>>
>>> I've applied a fix, so please check the latest version of DHIS 2.25.
>>>
>>> The error was due to missing infrastructural indicators
>>> and infrastructural data elements, which is no longer required for the 
>>> GIS
>>> app to start.
>>>
>>> The functionality in GIS app is of course still limited if you 

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Lars Helge Øverland
Hi Jose,

seems like you have a linebreak in your geojson, see:

"\n"

Likely not behaving well with json parsing. Try removing that.


Lars







On Mon, Oct 31, 2016 at 9:36 PM, Jose Garcia Muñoz 
wrote:

>
> Ok, I see, I think this is because of the blank spaces??
>
>
>
> [{"id":"NC3WdxGafv5","code":"KH","na":"Cambodia","hcd":
> false,"hcu":true,"le":3,"pg":"/FvUGp8I75zV/aChOCLW4x6p","pi":"aChOCLW4x6p","pn":"Asia
> and Eastern Europe","ty":2,"co":"\n
>  102.9176,11.6358],[102.3792,13.5749],[102.599,13.
> 6079],[103.1812,14.3275],[104.8073,14.4484],[105.0764,14.
> 2177],[105.2083,14.3495],[105.3621,14.1078],[106.0543,13.
> 932],[106.1751,14.0639],[106.0048,14.3715],[106.5432,14.
> 5967],[106.8563,14.3056],[107.5484,14.7066],[107.3397,14.
> 1243],[107.4715,13.932],[107.6308,13.531],[107.5484,12.
> 3554],[106.4223,11.9709],[106.4608,11.6633],[106.0488,11.
> 7786],[105.818,11.6193],[106.2026,10.7679],[105.7796,11.
> 0205],[105.1039,10.9546],[104.8842,10.5371],[104.4447,10.
> 4218],[104.247,10.5701],[103.6207,10.4932],[103.5163,10.
> 636],[103.7196,10.8667],[103.5548,11.1579],[103.1318,10.
> 8832],[102.956,11.5534],[103.0824,11.7237],[102.8956,11.8281],[102.9176,11.6358
> "}]
>
> On Mon, Oct 31, 2016 at 9:02 PM, Bjørn Sandvik  wrote:
>
>> Hi Jose,
>>
>> Could you send the the results of the geoFeatures query than your GIS app
>> is requesting?
>>
>> The coordinate format should be similar to:
>> https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:LE
>> VEL-2;ImspTQPwCqd=NAME
>>
>> "co": 
>> "-11.5914,8.4875],[-11.5906,8.4769],[-11.5898,8.4717],[-11.5882,8.466]
>> ...
>>
>> --
>> Bjørn Sandvik
>> GIS developer, DHIS 2
>> University of Oslo
>> www.dhis2.org
>>
>>
>>
>> On Mon, Oct 31, 2016 at 6:19 PM, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Thanks for the quick actions Jan, Bjorn,
>>>
>>> Almost there :). Now the GIS is being displayed, but whenver I want to
>>> display the bounderies of a country (or bounderies of any level) I'm
>>> getting the following error:
>>>
>>> The org. units have been imported from 2.22 to 2.25. It seems that
>>> everything is correct in the database...
>>>
>>> Am I missing something? Any ideas? :)
>>>
>>> Thanks!
>>>
>>> Uncaught Error: Invalid LatLng object: (102.3792,13.5749,
>>> 102.9176,11.6358)
>>> at L.LatLng (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:2:14559)
>>> at coordsToLatLng (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:18296)
>>> at Function.coordsToLatLngs (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:18573)
>>> at Function.coordsToLatLngs (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:18481)
>>> at Function.geometryToLayer (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:17850)
>>> at NewClass.addData (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:16349)
>>> at NewClass.addData (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:16219)
>>> at NewClass.initialize (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:5:15944)
>>> at NewClass.initialize (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:7:8380)
>>> at NewClass.initialize (http://localhost:8080/dhis225
>>> /dhis-web-mapping/app.js:9:39)
>>>
>>> On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland 
>>> wrote:
>>>
 Hi Jose,

 You are right that the requests didn't fail. The problem was that they
 didn't return anything, and the app was not prepared for it.

 Thanks for reporting.

 Jan



 On 31 October 2016 at 12:47, Jose Garcia Muñoz 
 wrote:

>
> Thanks Abyot, Bjorn,
>
> Abyot, the API didn't give us any error, so I really don't know what
> the problem may be
>
> Bjorn, thanks, will try your fix in the following hours and let you
> know
>
> Cheers
> Jose
>
> On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik 
> wrote:
>
>> Hi Jose,
>>
>> I've applied a fix, so please check the latest version of DHIS 2.25.
>>
>> The error was due to missing infrastructural indicators
>> and infrastructural data elements, which is no longer required for the 
>> GIS
>> app to start.
>>
>> The functionality in GIS app is of course still limited if you have
>> an empty database.
>>
>> Thanks for reporting.
>>
>> --
>> Bjørn Sandvik
>> GIS developer, DHIS 2
>> University of Oslo
>> www.dhis2.org
>>
>> On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz <
>> josem...@gmail.com> wrote:
>>
>>>
>>> Thanks Abyott, I have created an infrastructural dataelements in the
>>> General Settings but still not working (I have clean the cache 
>>> also).
>>> This the error I'm getting:
>>>
>>> 

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Ok, I see, I think this is because of the blank spaces??



[{"id":"NC3WdxGafv5","code":"KH","na":"Cambodia","hcd":false,"hcu":true,"le":3,"pg":"/FvUGp8I75zV/aChOCLW4x6p","pi":"aChOCLW4x6p","pn":"Asia
and Eastern Europe","ty":2,"co":"\n
 
102.9176,11.6358],[102.3792,13.5749],[102.599,13.6079],[103.1812,14.3275],[104.8073,14.4484],[105.0764,14.2177],[105.2083,14.3495],[105.3621,14.1078],[106.0543,13.932],[106.1751,14.0639],[106.0048,14.3715],[106.5432,14.5967],[106.8563,14.3056],[107.5484,14.7066],[107.3397,14.1243],[107.4715,13.932],[107.6308,13.531],[107.5484,12.3554],[106.4223,11.9709],[106.4608,11.6633],[106.0488,11.7786],[105.818,11.6193],[106.2026,10.7679],[105.7796,11.0205],[105.1039,10.9546],[104.8842,10.5371],[104.4447,10.4218],[104.247,10.5701],[103.6207,10.4932],[103.5163,10.636],[103.7196,10.8667],[103.5548,11.1579],[103.1318,10.8832],[102.956,11.5534],[103.0824,11.7237],[102.8956,11.8281],[102.9176,11.6358
"}]

On Mon, Oct 31, 2016 at 9:02 PM, Bjørn Sandvik  wrote:

> Hi Jose,
>
> Could you send the the results of the geoFeatures query than your GIS app
> is requesting?
>
> The coordinate format should be similar to:
> https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:
> LEVEL-2;ImspTQPwCqd=NAME
>
> "co": 
> "-11.5914,8.4875],[-11.5906,8.4769],[-11.5898,8.4717],[-11.5882,8.466]
> ...
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> www.dhis2.org
>
>
>
> On Mon, Oct 31, 2016 at 6:19 PM, Jose Garcia Muñoz 
> wrote:
>
>>
>> Thanks for the quick actions Jan, Bjorn,
>>
>> Almost there :). Now the GIS is being displayed, but whenver I want to
>> display the bounderies of a country (or bounderies of any level) I'm
>> getting the following error:
>>
>> The org. units have been imported from 2.22 to 2.25. It seems that
>> everything is correct in the database...
>>
>> Am I missing something? Any ideas? :)
>>
>> Thanks!
>>
>> Uncaught Error: Invalid LatLng object: (102.3792,13.5749,
>> 102.9176,11.6358)
>> at L.LatLng (http://localhost:8080/dhis225/dhis-web-mapping/app.js:2:
>> 14559)
>> at coordsToLatLng (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:18296)
>> at Function.coordsToLatLngs (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:18573)
>> at Function.coordsToLatLngs (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:18481)
>> at Function.geometryToLayer (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:17850)
>> at NewClass.addData (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:16349)
>> at NewClass.addData (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:16219)
>> at NewClass.initialize (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:5:15944)
>> at NewClass.initialize (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:7:8380)
>> at NewClass.initialize (http://localhost:8080/dhis225
>> /dhis-web-mapping/app.js:9:39)
>>
>> On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland 
>> wrote:
>>
>>> Hi Jose,
>>>
>>> You are right that the requests didn't fail. The problem was that they
>>> didn't return anything, and the app was not prepared for it.
>>>
>>> Thanks for reporting.
>>>
>>> Jan
>>>
>>>
>>>
>>> On 31 October 2016 at 12:47, Jose Garcia Muñoz 
>>> wrote:
>>>

 Thanks Abyot, Bjorn,

 Abyot, the API didn't give us any error, so I really don't know what
 the problem may be

 Bjorn, thanks, will try your fix in the following hours and let you know

 Cheers
 Jose

 On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik 
 wrote:

> Hi Jose,
>
> I've applied a fix, so please check the latest version of DHIS 2.25.
>
> The error was due to missing infrastructural indicators
> and infrastructural data elements, which is no longer required for the GIS
> app to start.
>
> The functionality in GIS app is of course still limited if you have an
> empty database.
>
> Thanks for reporting.
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> www.dhis2.org
>
> On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz  > wrote:
>
>>
>> Thanks Abyott, I have created an infrastructural dataelements in the
>> General Settings but still not working (I have clean the cache also).
>> This the error I'm getting:
>>
>> /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON
>> input
>> at JSON.parse ()
>> at success (https://sandbox.psi-mis.org/d
>> his-web-mapping/app.js:1:25516)
>> at Object.callback (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:57696)
>> at m.onComplete (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:209766)
>> at m.onStateChange 

Re: [Dhis2-devs] Tracker - enter data for different stages in programme in different orgunits

2016-10-31 Thread Sam Johnson
Hi Abyot,

Deepest apologies, you’re right, I’ve just checked and this is exactly the same 
in 2.24.  (I hadn’t noticed that I’d given all staff ‘data output’ permissions 
to the entire org unit tree.)

And on reflection, this actually makes a lot of sense the way it is: if a user 
can see the individual patient records in the Tracker, there’s not much point 
hiding the same data from them in the analytics.  (If you want to block them 
from exploring the data, I guess you could just give them the ‘Dashboard’ app, 
without any other analytics apps.)  The current setup also means you can set 
wide ‘search org units’ to allow an individual org unit to find any TEI and 
attach data to it, while still maintaining narrow ‘data output org units’ to 
prevent them seeing other org units’ data when they open a TEI’s dashboard.

Cheers, Sam.



From: Abyot Asalefew Gizaw 
Date: Monday, 31 October 2016 at 11:28
To: Sam Johnson 
Cc: Olav Poppe , DHIS2 Developers 

Subject: Re: [Dhis2-devs] Tracker - enter data for different stages in 
programme in different orgunits

Hi Sam,
Yes, by data view I meant data output and analysis organisation units.
Nothing has changed in 2.25. What we have so far, TEI search organisation unit 
applies only for tracked entity instances. As I mentioned in my earlier mail, 
we need to do some work from server side so that we allow not only access to 
TEI but also to related enrollments and events.

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

On Mon, Oct 31, 2016 at 11:10 AM, Sam Johnson 
> wrote:
Hi Abyot and Olav,

I’m very interested in this thread, but really confused by it.  ;-)

What do you mean by ‘data view’ org units – are you referring to ‘Data output 
and analysis organisation units’?

Like Olav, my understanding was that this should be handled by ‘Assign search 
org units’ – ie if you give a user ‘Data capture’ and ‘Data output’ permissions 
for just one org unit, but give them ‘Search org units’ for the whole tree, 
then they can search and view records for any TEI, but can only edit records 
for their own org unit.

I’m pretty sure that’s how it works in 2.24 – has this changed in 2.25?

Cheers, Sam.


From: Dhis2-devs 
>
 on behalf of Olav Poppe >
Date: Friday, 28 October 2016 at 19:41
To: Abyot Asalefew Gizaw >
Cc: DHIS2 Developers 
>
Subject: Re: [Dhis2-devs] Tracker - enter data for different stages in 
programme in different orgunits

Thanks, Abyot! I though data view only concerned output (analytics etc), I 
didn’t know it also had implications for data entry.

Olav



28. okt. 2016 kl. 16.37 skrev Abyot Asalefew Gizaw 
>:

Just looked at your setting.
You need to give both clinic_dingo and lab_apple data view orgunit. I just 
assigned Trainingland for both them and it works.


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

On Fri, Oct 28, 2016 at 4:01 PM, Abyot Asalefew Gizaw 
> wrote:
I see... now I know the difference of scenarios we have been testing. I was 
using the same user with access to both facilities...

with the scenario you are setting, seems we need to do some work from server 
side so that we allow not only access to TEI but also to related enrollments 
and events ... Seems we don't really need TEI Search orgunit rather data view 
orgunit which we already have ...

Have you set data view orgunit to your user?

May be Lars and Morten can comment on if we are using data view orgunits in 
enrollments and events

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

On Fri, Oct 28, 2016 at 3:52 PM, Olav Poppe 
> wrote:
Thanks, Abyot. I tried to set up user accounts on 
play.dhis2.org/demo so that you could see, but for 
some reason I’m not able to assign "Search orgunits", server returns this error:
{"httpStatus":"Internal Server 
Error","httpStatusCode":500,"status":"ERROR","message":"Month not valid [1,7]"}

Will share logons to a different server privately.

The steps to reproduce is:
One user assigned to facility A creates a TEI and enrols the TEI in a program 
in his/her facility.

Another user assigned to facility B searches for the TEI, and opens the TEI 
dashboard. However, the enrolment done in facility A is not visible. At the 
same time, it is not possible to enrol the TEI again in facility B, because the 
TEI has an active enrolment in the same 

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Bjørn Sandvik
Hi Jose,

Could you send the the results of the geoFeatures query than your GIS app
is requesting?

The coordinate format should be similar to:
https://play.dhis2.org/demo/api/25/geoFeatures.json?ou=ou:LEVEL-2;ImspTQPwCqd=NAME

"co":
"-11.5914,8.4875],[-11.5906,8.4769],[-11.5898,8.4717],[-11.5882,8.466]
...

-- 
Bjørn Sandvik
GIS developer, DHIS 2
University of Oslo
www.dhis2.org



On Mon, Oct 31, 2016 at 6:19 PM, Jose Garcia Muñoz 
wrote:

>
> Thanks for the quick actions Jan, Bjorn,
>
> Almost there :). Now the GIS is being displayed, but whenver I want to
> display the bounderies of a country (or bounderies of any level) I'm
> getting the following error:
>
> The org. units have been imported from 2.22 to 2.25. It seems that
> everything is correct in the database...
>
> Am I missing something? Any ideas? :)
>
> Thanks!
>
> Uncaught Error: Invalid LatLng object: (102.3792,13.5749, 102.9176,11.6358)
> at L.LatLng (http://localhost:8080/dhis225/dhis-web-mapping/app.
> js:2:14559)
> at coordsToLatLng (http://localhost:8080/dhis225/dhis-web-mapping/app.
> js:5:18296)
> at Function.coordsToLatLngs (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:18573)
> at Function.coordsToLatLngs (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:18481)
> at Function.geometryToLayer (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:17850)
> at NewClass.addData (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:16349)
> at NewClass.addData (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:16219)
> at NewClass.initialize (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:5:15944)
> at NewClass.initialize (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:7:8380)
> at NewClass.initialize (http://localhost:8080/
> dhis225/dhis-web-mapping/app.js:9:39)
>
> On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland 
> wrote:
>
>> Hi Jose,
>>
>> You are right that the requests didn't fail. The problem was that they
>> didn't return anything, and the app was not prepared for it.
>>
>> Thanks for reporting.
>>
>> Jan
>>
>>
>>
>> On 31 October 2016 at 12:47, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Thanks Abyot, Bjorn,
>>>
>>> Abyot, the API didn't give us any error, so I really don't know what the
>>> problem may be
>>>
>>> Bjorn, thanks, will try your fix in the following hours and let you know
>>>
>>> Cheers
>>> Jose
>>>
>>> On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik  wrote:
>>>
 Hi Jose,

 I've applied a fix, so please check the latest version of DHIS 2.25.

 The error was due to missing infrastructural indicators
 and infrastructural data elements, which is no longer required for the GIS
 app to start.

 The functionality in GIS app is of course still limited if you have an
 empty database.

 Thanks for reporting.

 --
 Bjørn Sandvik
 GIS developer, DHIS 2
 University of Oslo
 www.dhis2.org

 On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz 
 wrote:

>
> Thanks Abyott, I have created an infrastructural dataelements in the
> General Settings but still not working (I have clean the cache also).
> This the error I'm getting:
>
> /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON
> input
> at JSON.parse ()
> at success (https://sandbox.psi-mis.org/d
> his-web-mapping/app.js:1:25516)
> at Object.callback (https://sandbox.psi-mis.org/d
> his-web-mapping/extjs/ext-all.js:15:57696)
> at m.onComplete (https://sandbox.psi-mis.org/d
> his-web-mapping/extjs/ext-all.js:15:209766)
> at m.onStateChange (https://sandbox.psi-mis.org/d
> his-web-mapping/extjs/ext-all.js:15:209410)
> at XMLHttpRequest. (https://sandbox.psi-mis.org/d
> his-web-mapping/extjs/ext-all.js:15:14790)
>
> On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw  > wrote:
>
>> Hi Jose,
>>
>> The issue I think is about missing infrastructural data elements /
>> indicators in Settings page. If you could fill something there, it will
>> work. Of course, these items shouldn't be mandatory for GIS to run.
>>
>> --
>> Abyot A. Gizaw.
>> Senior Engineer, DHIS2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz <
>> josem...@gmail.com> wrote:
>>
>>>
>>> Thanks Bjorn, really appreciate that!
>>>
>>> The point is that I'm conducting a training in Vietnam this week,
>>> and we really need to show the maps by Wednesday. Do you think you can 
>>> have
>>> a solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday 
>>> night).
>>> Otherwise, please let me know, because I would need to find a 
>>> 

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks for the quick actions Jan, Bjorn,

Almost there :). Now the GIS is being displayed, but whenver I want to
display the bounderies of a country (or bounderies of any level) I'm
getting the following error:

The org. units have been imported from 2.22 to 2.25. It seems that
everything is correct in the database...

Am I missing something? Any ideas? :)

Thanks!

Uncaught Error: Invalid LatLng object: (102.3792,13.5749, 102.9176,11.6358)
at L.LatLng (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:2:14559)
at coordsToLatLng (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:18296)
at Function.coordsToLatLngs (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:18573)
at Function.coordsToLatLngs (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:18481)
at Function.geometryToLayer (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:17850)
at NewClass.addData (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:16349)
at NewClass.addData (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:16219)
at NewClass.initialize (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:5:15944)
at NewClass.initialize (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:7:8380)
at NewClass.initialize (
http://localhost:8080/dhis225/dhis-web-mapping/app.js:9:39)

On Mon, Oct 31, 2016 at 12:56 PM, Jan Henrik Øverland  wrote:

> Hi Jose,
>
> You are right that the requests didn't fail. The problem was that they
> didn't return anything, and the app was not prepared for it.
>
> Thanks for reporting.
>
> Jan
>
>
>
> On 31 October 2016 at 12:47, Jose Garcia Muñoz  wrote:
>
>>
>> Thanks Abyot, Bjorn,
>>
>> Abyot, the API didn't give us any error, so I really don't know what the
>> problem may be
>>
>> Bjorn, thanks, will try your fix in the following hours and let you know
>>
>> Cheers
>> Jose
>>
>> On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik  wrote:
>>
>>> Hi Jose,
>>>
>>> I've applied a fix, so please check the latest version of DHIS 2.25.
>>>
>>> The error was due to missing infrastructural indicators
>>> and infrastructural data elements, which is no longer required for the GIS
>>> app to start.
>>>
>>> The functionality in GIS app is of course still limited if you have an
>>> empty database.
>>>
>>> Thanks for reporting.
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> www.dhis2.org
>>>
>>> On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz 
>>> wrote:
>>>

 Thanks Abyott, I have created an infrastructural dataelements in the
 General Settings but still not working (I have clean the cache also).
 This the error I'm getting:

 /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input
 at JSON.parse ()
 at success (https://sandbox.psi-mis.org/d
 his-web-mapping/app.js:1:25516)
 at Object.callback (https://sandbox.psi-mis.org/d
 his-web-mapping/extjs/ext-all.js:15:57696)
 at m.onComplete (https://sandbox.psi-mis.org/d
 his-web-mapping/extjs/ext-all.js:15:209766)
 at m.onStateChange (https://sandbox.psi-mis.org/d
 his-web-mapping/extjs/ext-all.js:15:209410)
 at XMLHttpRequest. (https://sandbox.psi-mis.org/d
 his-web-mapping/extjs/ext-all.js:15:14790)

 On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw 
 wrote:

> Hi Jose,
>
> The issue I think is about missing infrastructural data elements /
> indicators in Settings page. If you could fill something there, it will
> work. Of course, these items shouldn't be mandatory for GIS to run.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz  > wrote:
>
>>
>> Thanks Bjorn, really appreciate that!
>>
>> The point is that I'm conducting a training in Vietnam this week, and
>> we really need to show the maps by Wednesday. Do you think you can have a
>> solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
>> Otherwise, please let me know, because I would need to find a workaround 
>> :)
>>
>> Is there anything that we can do from our end? (I can see maps are
>> working on the Sierra Leone demos)
>>
>> Thanks a lot!
>>
>> Regards
>> Jose
>>
>> On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik 
>> wrote:
>>
>>> Hi Jose,
>>>
>>> I'll look into the issue in the next few days. It's probably related
>>> to these issues:
>>> https://github.com/dhis2/gis-app/issues/164
>>> https://github.com/dhis2/gis-app/issues/163
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> www.dhis2.org
>>>

[Dhis2-devs] ANDROID TRACKER CAPTURE

2016-10-31 Thread Stanley Kalyati
I am using DHIS2.2.24 and i downloaded the android tracker capture version
from google play.

I am able to connect to my instance but the organisation unit is bot
loading despite giving all rights to the superuser account.

Is there something i am missing?

Kindly help.

Regards

Stanley
___
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] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Abyot, Bjorn,

Abyot, the API didn't give us any error, so I really don't know what the
problem may be

Bjorn, thanks, will try your fix in the following hours and let you know

Cheers
Jose

On Mon, Oct 31, 2016 at 12:22 PM, Bjørn Sandvik  wrote:

> Hi Jose,
>
> I've applied a fix, so please check the latest version of DHIS 2.25.
>
> The error was due to missing infrastructural indicators
> and infrastructural data elements, which is no longer required for the GIS
> app to start.
>
> The functionality in GIS app is of course still limited if you have an
> empty database.
>
> Thanks for reporting.
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> www.dhis2.org
>
> On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz 
> wrote:
>
>>
>> Thanks Abyott, I have created an infrastructural dataelements in the
>> General Settings but still not working (I have clean the cache also).
>> This the error I'm getting:
>>
>> /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input
>> at JSON.parse ()
>> at success (https://sandbox.psi-mis.org/d
>> his-web-mapping/app.js:1:25516)
>> at Object.callback (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:57696)
>> at m.onComplete (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:209766)
>> at m.onStateChange (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:209410)
>> at XMLHttpRequest. (https://sandbox.psi-mis.org/d
>> his-web-mapping/extjs/ext-all.js:15:14790)
>>
>> On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw 
>> wrote:
>>
>>> Hi Jose,
>>>
>>> The issue I think is about missing infrastructural data elements /
>>> indicators in Settings page. If you could fill something there, it will
>>> work. Of course, these items shouldn't be mandatory for GIS to run.
>>>
>>> --
>>> Abyot A. Gizaw.
>>> Senior Engineer, DHIS2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz 
>>> wrote:
>>>

 Thanks Bjorn, really appreciate that!

 The point is that I'm conducting a training in Vietnam this week, and
 we really need to show the maps by Wednesday. Do you think you can have a
 solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
 Otherwise, please let me know, because I would need to find a workaround :)

 Is there anything that we can do from our end? (I can see maps are
 working on the Sierra Leone demos)

 Thanks a lot!

 Regards
 Jose

 On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik  wrote:

> Hi Jose,
>
> I'll look into the issue in the next few days. It's probably related
> to these issues:
> https://github.com/dhis2/gis-app/issues/164
> https://github.com/dhis2/gis-app/issues/163
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> www.dhis2.org
>
>
>
> On Sun, Oct 30, 2016 at 11:44 AM, Jose Garcia Muñoz <
> josem...@gmail.com> wrote:
>
>>
>> Hi guys,
>>
>> I don't know the status of this? We have started to build using a new
>> completely empty box in 2.25 (no dataelements, no optionsets...) just 
>> with
>> some orgunits (country level). Whenever I go to the GIS, I get an error 
>> in
>> the JavaScript console (attached at the end). All Network calls (traced 
>> by
>> Google Crhome tools) are returning Ok. We are using 2.25, revision
>> 9509136
>>
>> Many thanks
>> Jose
>>
>> Uncaught SyntaxError: Unexpected end of JSON input(…)success @
>> app.js:1280callback @ ext-all.js:15onComplete @ 
>> ext-all.js:15onStateChange
>> @ ext-all.js:15(anonymous function) @ ext-all.js:15
>> VM1735:1 Uncaught SyntaxError: Unexpected end of JSON input(…)success
>> @ app.js:1303callback @ ext-all.js:15onComplete @
>> ext-all.js:15onStateChange @ ext-all.js:15(anonymous function) @
>> ext-all.js:15
>>
>> On Mon, Oct 24, 2016 at 10:10 AM, Calle Hedberg <
>> calle.hedb...@gmail.com> wrote:
>>
>>> Morten,
>>>
>>> Thanks - noted,
>>>
>>> Regards
>>> Calle
>>>
>>> On 24 October 2016 at 10:08, Morten Olav Hansen 
>>> wrote:
>>>
 Hi Calle

 No, this is just general Chrome Developer Tools stuff.. should be
 easy to google for a guide :)

 I see that there are plenty videos on youtube also (search for
 "chrome developer tools"), this can be very useful in figuring these 
 kinds
 of issues.

 --
 Morten Olav Hansen
 Senior Engineer, DHIS 2
 University of Oslo
 http://www.dhis2.org

 On Mon, Oct 24, 2016 at 2:49 PM, Calle Hedberg <
 

Re: [Dhis2-devs] Tracker - enter data for different stages in programme in different orgunits

2016-10-31 Thread Abyot Asalefew Gizaw
Hi Sam,

Yes, by data view I meant data output and analysis organisation units.

Nothing has changed in 2.25. What we have so far, TEI search organisation
unit applies only for tracked entity instances. As I mentioned in my
earlier mail, we need to do some work from server side so that we allow not
only access to TEI but also to related enrollments and events.

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

On Mon, Oct 31, 2016 at 11:10 AM, Sam Johnson 
wrote:

> Hi Abyot and Olav,
>
>
>
> I’m very interested in this thread, but really confused by it.  ;-)
>
>
>
> What do you mean by ‘data view’ org units – are you referring to ‘Data
> output and analysis organisation units’?
>
>
>
> Like Olav, my understanding was that this should be handled by ‘Assign
> search org units’ – ie if you give a user ‘Data capture’ and ‘Data output’
> permissions for just one org unit, but give them ‘Search org units’ for the
> whole tree, then they can search and view records for any TEI, but can only
> edit records for their own org unit.
>
>
>
> I’m pretty sure that’s how it works in 2.24 – has this changed in 2.25?
>
>
>
> Cheers, Sam.
>
>
>
>
>
> *From: *Dhis2-devs  launchpad.net> on behalf of Olav Poppe 
> *Date: *Friday, 28 October 2016 at 19:41
> *To: *Abyot Asalefew Gizaw 
> *Cc: *DHIS2 Developers 
> *Subject: *Re: [Dhis2-devs] Tracker - enter data for different stages in
> programme in different orgunits
>
>
>
> Thanks, Abyot! I though data view only concerned output (analytics etc), I
> didn’t know it also had implications for data entry.
>
>
>
> Olav
>
>
>
>
>
>
>
> 28. okt. 2016 kl. 16.37 skrev Abyot Asalefew Gizaw :
>
>
>
> Just looked at your setting.
>
> You need to give both clinic_dingo and lab_apple data view orgunit. I just
> assigned Trainingland for both them and it works.
>
>
>
>
> --
>
> Abyot A. Gizaw.
>
> Senior Engineer, DHIS2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Fri, Oct 28, 2016 at 4:01 PM, Abyot Asalefew Gizaw 
> wrote:
>
> I see... now I know the difference of scenarios we have been testing. I
> was using the same user with access to both facilities...
>
>
>
> with the scenario you are setting, seems we need to do some work from
> server side so that we allow not only access to TEI but also to related
> enrollments and events ... Seems we don't really need TEI Search orgunit
> rather data view orgunit which we already have ...
>
>
>
> Have you set data view orgunit to your user?
>
>
>
> May be Lars and Morten can comment on if we are using data view orgunits
> in enrollments and events
>
>
> --
>
> Abyot A. Gizaw.
>
> Senior Engineer, DHIS2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Fri, Oct 28, 2016 at 3:52 PM, Olav Poppe  wrote:
>
> Thanks, Abyot. I tried to set up user accounts on play.dhis2.org/demo so
> that you could see, but for some reason I’m not able to assign "Search
> orgunits", server returns this error:
>
> {"httpStatus":"Internal Server Error","httpStatusCode":500,"
> status":"ERROR","message":"Month not valid [1,7]"}
>
>
>
> Will share logons to a different server privately.
>
>
>
> The steps to reproduce is:
>
> One user assigned to facility A creates a TEI and enrols the TEI in a
> program in his/her facility.
>
>
>
> Another user assigned to facility B searches for the TEI, and opens the
> TEI dashboard. However, the enrolment done in facility A is not visible. At
> the same time, it is not possible to enrol the TEI again in facility B,
> because the TEI has an active enrolment in the same programme.
>
>
>
> Olav
>
>
>
>
>
>
>
>
>
> 28. okt. 2016 kl. 09.21 skrev Abyot Asalefew Gizaw :
>
>
>
> Hi Olav,
>
>
>
> I am not able to reproduce. It works fine from my side when testing with
> Child program.
>
>
>
> Can you tell the steps to reproduce?
>
>
> --
>
> Abyot A. Gizaw.
>
> Senior Engineer, DHIS2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Thu, Oct 27, 2016 at 4:47 PM, Olav Poppe  wrote:
>
> Hi devs,
>
> I struggling to set up tracker so that users in different orgunits can
> enter data for different stages in the same enrollement. I’ve been testing
> both in a dev database I’m working on and on play, with 2.24 and 2.25, and
> the result is the same:
>
> - User A in Facility A enrolls a TEI in a program
>
> - User B in Facility B searches for the TEI, but when opening the
> dashboard it just shows "No active enrollment.". At the same time, trying
> to enroll the person also fails, since the TEI is already enrolled…
>
>
>
> Any advice on what I’m missing? I’ve even tested with "superusers" with no
> luck, so I don’t think its a user role issue.
>
>
>
> Regards
>
> Olav
>
>
>
>
>
>
> ___
> Mailing list: 

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Bjørn Sandvik
Hi Jose,

I've applied a fix, so please check the latest version of DHIS 2.25.

The error was due to missing infrastructural indicators and infrastructural
data elements, which is no longer required for the GIS app to start.

The functionality in GIS app is of course still limited if you have an
empty database.

Thanks for reporting.

-- 
Bjørn Sandvik
GIS developer, DHIS 2
University of Oslo
www.dhis2.org

On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz 
wrote:

>
> Thanks Abyott, I have created an infrastructural dataelements in the
> General Settings but still not working (I have clean the cache also).
> This the error I'm getting:
>
> /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input
> at JSON.parse ()
> at success (https://sandbox.psi-mis.org/dhis-web-mapping/app.js:1:
> 25516)
> at Object.callback (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:57696)
> at m.onComplete (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:209766)
> at m.onStateChange (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:209410)
> at XMLHttpRequest. (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:14790)
>
> On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw 
> wrote:
>
>> Hi Jose,
>>
>> The issue I think is about missing infrastructural data elements /
>> indicators in Settings page. If you could fill something there, it will
>> work. Of course, these items shouldn't be mandatory for GIS to run.
>>
>> --
>> Abyot A. Gizaw.
>> Senior Engineer, DHIS2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Thanks Bjorn, really appreciate that!
>>>
>>> The point is that I'm conducting a training in Vietnam this week, and we
>>> really need to show the maps by Wednesday. Do you think you can have a
>>> solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
>>> Otherwise, please let me know, because I would need to find a workaround :)
>>>
>>> Is there anything that we can do from our end? (I can see maps are
>>> working on the Sierra Leone demos)
>>>
>>> Thanks a lot!
>>>
>>> Regards
>>> Jose
>>>
>>> On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik  wrote:
>>>
 Hi Jose,

 I'll look into the issue in the next few days. It's probably related to
 these issues:
 https://github.com/dhis2/gis-app/issues/164
 https://github.com/dhis2/gis-app/issues/163

 --
 Bjørn Sandvik
 GIS developer, DHIS 2
 University of Oslo
 www.dhis2.org



 On Sun, Oct 30, 2016 at 11:44 AM, Jose Garcia Muñoz  wrote:

>
> Hi guys,
>
> I don't know the status of this? We have started to build using a new
> completely empty box in 2.25 (no dataelements, no optionsets...) just with
> some orgunits (country level). Whenever I go to the GIS, I get an error in
> the JavaScript console (attached at the end). All Network calls (traced by
> Google Crhome tools) are returning Ok. We are using 2.25, revision
> 9509136
>
> Many thanks
> Jose
>
> Uncaught SyntaxError: Unexpected end of JSON input(…)success @
> app.js:1280callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
> @ ext-all.js:15(anonymous function) @ ext-all.js:15
> VM1735:1 Uncaught SyntaxError: Unexpected end of JSON input(…)success
> @ app.js:1303callback @ ext-all.js:15onComplete @
> ext-all.js:15onStateChange @ ext-all.js:15(anonymous function) @
> ext-all.js:15
>
> On Mon, Oct 24, 2016 at 10:10 AM, Calle Hedberg <
> calle.hedb...@gmail.com> wrote:
>
>> Morten,
>>
>> Thanks - noted,
>>
>> Regards
>> Calle
>>
>> On 24 October 2016 at 10:08, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Calle
>>>
>>> No, this is just general Chrome Developer Tools stuff.. should be
>>> easy to google for a guide :)
>>>
>>> I see that there are plenty videos on youtube also (search for
>>> "chrome developer tools"), this can be very useful in figuring these 
>>> kinds
>>> of issues.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Oct 24, 2016 at 2:49 PM, Calle Hedberg <
>>> calle.hedb...@gmail.com> wrote:
>>>
 Morten,

 i was not aware of the "log XHR requests" feature.

 Is there a DHIS2-related guide to using advanced features of the
 Chrome console somewhere?

 Regards
 Calle

 On 24 October 2016 at 04:31, Morten Olav Hansen 
 wrote:

> Hi Sam
>
> This is caused by the metadata having some 

Re: [Dhis2-devs] Event report tables added to dashboards are displayed 'blank' when period is selected as Start-End dates (2.25)

2016-10-31 Thread Alejandro
Hi!

Mmm. In our case, 2.25, it is just related to that type of period (*Start/end
dates'*), Other Event Reports tables are well rendered in dashboards and
correctly opened in Event Report module (see below)...

[image: Inline image 1]

Regards!
Alejandro

On Wed, Oct 26, 2016 at 10:55 AM, Archana Chillala <
archa...@thoughtworks.com> wrote:

> Agree. We are facing the same issue as well. Event reports are being
> rendered as blank dashboard items, regardless of what configuration they
> have for periods. When we click on 'explore' for that dashboard item, it
> takes us merely to Event Reports App, but does not render the saved report.
>
> Could you please help fix the issue.
>
>
> *Cheers,*
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> 
>
> On Mon, Oct 24, 2016 at 9:36 PM, Alejandro  wrote:
>
>> Hi!
>>
>>
>> We have noticed (tested in https://play.dhis2.org) that any event report
>> table that is defined with a period type *'Start/end dates'* instead of*
>> 'Fixed and relative periods' *is displayed 'blank' when added to a
>> dashboard (see image below).
>>
>>
>> [image: Inline image 1]
>>
>> The error generated is:
>>
>>
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"Start
>>  date or end date is invalid: 2016-07-24T00:00:00.000 - 
>> 2016-10-24T00:00:00.000"}
>>
>>
>> It seems to be related to date format, since removing the bold text in the 
>> original query (see below), it works!
>>
>> https://play.dhis2.org/demo/api/analytics/events/query/eBAyeGv0exc.json?stage=Zj7UnCAulEk=ou:O6uvpzGd5pu=eMyVanycQSC=qrur9Dvnyt5-Yf6UHoPkdS6=tUdBD1JDxpn=sGna2pquXOO=Kswd1r4qWLh=gWxh7DiRmG7=x7PaHGvgWY2=XCMi7Wvnplm=hlPt8H4bUOQ=Thkx2BnO5Kq=Y7hKDSuqEtH=K6uUAvq500H=msodh3rEMJa=oZg33kd9taw=GieVkTxp4HH-TBxGTceyzwy=HS8QXAJtuKV=fWIAEtYVEGk=SWfdB5lX0fk=vV9UWAZohSf-OrkEzxZEH4X=2016-07-24*T00:00:00.000*=2016-10-24*T00:00:00.000*=50=1=NAME
>>
>>
>> Cheers!
>>
>> Alejandro
>>
>> ___
>> 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
>>
>>
>
___
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] [DHIS] Updating Program Version

2016-10-31 Thread Alejandro
Hi!

In relation to this thread, we have noticed that whenever the program
version gets incremented, ProgramTrackedEntityAttributes ids change. This
leads to an error during metadata export to another DHIS2 instance (in
which the program already exists) due to ProgramTrackedEntityAttributes id
inconsistencies. It should be taken into account not to compromise
meta-data sync.

Regards!
Alejandro

On Thu, Oct 27, 2016 at 8:10 AM, Archana Chillala  wrote:

> Okay. Thanks for the information, Abyot. Could you please let us know the
> timelines around it?
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> 
>
> On Wed, Oct 26, 2016 at 12:30 PM, Abyot Gizaw  wrote:
>
>> Hi,
>>
>> The program module is getting migrated to maintainance, better to fix it
>> there.
>>
>> ---
>>
>> Thank you,
>> Abyot.
>> (sent from mobile)
>>
>> On Mar 16, 2016 09:53, "Archana Chillala" 
>> wrote:
>>
>>> Hi Morten,
>>>
>>> I am using DHIS version 2.23. In the Program/attributes module, when we
>>> create a program, one of the properties of the program - *Version -* is
>>> automatically assigned a value 1. When we update the program, the Version
>>> value gets incremented by 1 each time. But, even if we do not make any
>>> changes to the program and just click update button, the program version
>>> still gets incremented by 1.
>>>
>>> Is this the expected functionality? Could you please explain.
>>>
>>>
>>>
>>> *Thanks*
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archa...@thoughtworks.com
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> 
>>>
>>> ___
>>> 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
>>>
>>>
>
> ___
> 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
>
>
___
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] Tracker - enter data for different stages in programme in different orgunits

2016-10-31 Thread Sam Johnson
Hi Abyot and Olav,

I’m very interested in this thread, but really confused by it.  ;-)

What do you mean by ‘data view’ org units – are you referring to ‘Data output 
and analysis organisation units’?

Like Olav, my understanding was that this should be handled by ‘Assign search 
org units’ – ie if you give a user ‘Data capture’ and ‘Data output’ permissions 
for just one org unit, but give them ‘Search org units’ for the whole tree, 
then they can search and view records for any TEI, but can only edit records 
for their own org unit.

I’m pretty sure that’s how it works in 2.24 – has this changed in 2.25?

Cheers, Sam.


From: Dhis2-devs 
 on behalf of 
Olav Poppe 
Date: Friday, 28 October 2016 at 19:41
To: Abyot Asalefew Gizaw 
Cc: DHIS2 Developers 
Subject: Re: [Dhis2-devs] Tracker - enter data for different stages in 
programme in different orgunits

Thanks, Abyot! I though data view only concerned output (analytics etc), I 
didn’t know it also had implications for data entry.

Olav



28. okt. 2016 kl. 16.37 skrev Abyot Asalefew Gizaw 
>:

Just looked at your setting.
You need to give both clinic_dingo and lab_apple data view orgunit. I just 
assigned Trainingland for both them and it works.


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

On Fri, Oct 28, 2016 at 4:01 PM, Abyot Asalefew Gizaw 
> wrote:
I see... now I know the difference of scenarios we have been testing. I was 
using the same user with access to both facilities...

with the scenario you are setting, seems we need to do some work from server 
side so that we allow not only access to TEI but also to related enrollments 
and events ... Seems we don't really need TEI Search orgunit rather data view 
orgunit which we already have ...

Have you set data view orgunit to your user?

May be Lars and Morten can comment on if we are using data view orgunits in 
enrollments and events

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

On Fri, Oct 28, 2016 at 3:52 PM, Olav Poppe 
> wrote:
Thanks, Abyot. I tried to set up user accounts on 
play.dhis2.org/demo so that you could see, but for 
some reason I’m not able to assign "Search orgunits", server returns this error:
{"httpStatus":"Internal Server 
Error","httpStatusCode":500,"status":"ERROR","message":"Month not valid [1,7]"}

Will share logons to a different server privately.

The steps to reproduce is:
One user assigned to facility A creates a TEI and enrols the TEI in a program 
in his/her facility.

Another user assigned to facility B searches for the TEI, and opens the TEI 
dashboard. However, the enrolment done in facility A is not visible. At the 
same time, it is not possible to enrol the TEI again in facility B, because the 
TEI has an active enrolment in the same programme.

Olav




28. okt. 2016 kl. 09.21 skrev Abyot Asalefew Gizaw 
>:

Hi Olav,

I am not able to reproduce. It works fine from my side when testing with Child 
program.

Can you tell the steps to reproduce?

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

On Thu, Oct 27, 2016 at 4:47 PM, Olav Poppe 
> wrote:
Hi devs,
I struggling to set up tracker so that users in different orgunits can enter 
data for different stages in the same enrollement. I’ve been testing both in a 
dev database I’m working on and on play, with 2.24 and 2.25, and the result is 
the same:
- User A in Facility A enrolls a TEI in a program
- User B in Facility B searches for the TEI, but when opening the dashboard it 
just shows "No active enrollment.". At the same time, trying to enroll the 
person also fails, since the TEI is already enrolled…

Any advice on what I’m missing? I’ve even tested with "superusers" with no 
luck, so I don’t think its a user role issue.

Regards
Olav



___
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






___
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


[Dhis2-devs] Confirming 'official' handling of Yes and No in program indicators

2016-10-31 Thread Sam Johnson
Hi Devs,

I’ve been working on some quite complex program indicators, and before I commit 
them to production, I would be very grateful if you could confirm how Yes and 
No are supposed to be handled in program indicator expressions.

I’ve noticed that within the program indicators, they currently resolve as 
Yes=1, No=0 and non-response=null.  So for example:

· Putting the data element ‘YesNoDE’ itself into an Event Report 
displays: Yes

· Creating an indicator containing #{YesNoDE} displays: 1

· You can do complex indicators involving the Yes/No data element, eg 
an index calculation:
1.2345 + #{YesNoDE_A}*2.3456+#{YesNoDE_B}*0.7654.

· You can even put these complex calculations within a d2:condition, eg 
to test thresholds:
d2:condition('1.2345 + #{YesNoDEa}*2.3456+#{YesNoDEb}*0.7654>3.1',1,0)

This is all excellent, as it enables us to do all sorts of powerful 
calculations/conditions with Yes/No responses interpreted as 1 or 0.  ☺

So my question: is this expected behaviour, and will it remain consistent in 
future versions of DHIS2?  I’ve noticed, for example, that there are some 
rendering bugs in Event Capture, where ‘No’ appears as ‘0’ etc – is there any 
chance that the handling above will be broken when those bugs are fixed, or 
will I be able to continue to rely on it?

Cheers, Sam.

___
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] GIS failing to load in 2.25

2016-10-31 Thread Abyot Asalefew Gizaw
ok, may be then you have a different problem. I got same problem and
assigning infrastructural elements fixed it...

can you check into your browser console and look for any web api request
that has failed?

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

On Mon, Oct 31, 2016 at 8:04 AM, Jose Garcia Muñoz 
wrote:

>
> Thanks Abyott, I have created an infrastructural dataelements in the
> General Settings but still not working (I have clean the cache also).
> This the error I'm getting:
>
> /dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input
> at JSON.parse ()
> at success (https://sandbox.psi-mis.org/dhis-web-mapping/app.js:1:
> 25516)
> at Object.callback (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:57696)
> at m.onComplete (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:209766)
> at m.onStateChange (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:209410)
> at XMLHttpRequest. (https://sandbox.psi-mis.org/
> dhis-web-mapping/extjs/ext-all.js:15:14790)
>
> On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw 
> wrote:
>
>> Hi Jose,
>>
>> The issue I think is about missing infrastructural data elements /
>> indicators in Settings page. If you could fill something there, it will
>> work. Of course, these items shouldn't be mandatory for GIS to run.
>>
>> --
>> Abyot A. Gizaw.
>> Senior Engineer, DHIS2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Thanks Bjorn, really appreciate that!
>>>
>>> The point is that I'm conducting a training in Vietnam this week, and we
>>> really need to show the maps by Wednesday. Do you think you can have a
>>> solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
>>> Otherwise, please let me know, because I would need to find a workaround :)
>>>
>>> Is there anything that we can do from our end? (I can see maps are
>>> working on the Sierra Leone demos)
>>>
>>> Thanks a lot!
>>>
>>> Regards
>>> Jose
>>>
>>> On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik  wrote:
>>>
 Hi Jose,

 I'll look into the issue in the next few days. It's probably related to
 these issues:
 https://github.com/dhis2/gis-app/issues/164
 https://github.com/dhis2/gis-app/issues/163

 --
 Bjørn Sandvik
 GIS developer, DHIS 2
 University of Oslo
 www.dhis2.org



 On Sun, Oct 30, 2016 at 11:44 AM, Jose Garcia Muñoz  wrote:

>
> Hi guys,
>
> I don't know the status of this? We have started to build using a new
> completely empty box in 2.25 (no dataelements, no optionsets...) just with
> some orgunits (country level). Whenever I go to the GIS, I get an error in
> the JavaScript console (attached at the end). All Network calls (traced by
> Google Crhome tools) are returning Ok. We are using 2.25, revision
> 9509136
>
> Many thanks
> Jose
>
> Uncaught SyntaxError: Unexpected end of JSON input(…)success @
> app.js:1280callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
> @ ext-all.js:15(anonymous function) @ ext-all.js:15
> VM1735:1 Uncaught SyntaxError: Unexpected end of JSON input(…)success
> @ app.js:1303callback @ ext-all.js:15onComplete @
> ext-all.js:15onStateChange @ ext-all.js:15(anonymous function) @
> ext-all.js:15
>
> On Mon, Oct 24, 2016 at 10:10 AM, Calle Hedberg <
> calle.hedb...@gmail.com> wrote:
>
>> Morten,
>>
>> Thanks - noted,
>>
>> Regards
>> Calle
>>
>> On 24 October 2016 at 10:08, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Calle
>>>
>>> No, this is just general Chrome Developer Tools stuff.. should be
>>> easy to google for a guide :)
>>>
>>> I see that there are plenty videos on youtube also (search for
>>> "chrome developer tools"), this can be very useful in figuring these 
>>> kinds
>>> of issues.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Oct 24, 2016 at 2:49 PM, Calle Hedberg <
>>> calle.hedb...@gmail.com> wrote:
>>>
 Morten,

 i was not aware of the "log XHR requests" feature.

 Is there a DHIS2-related guide to using advanced features of the
 Chrome console somewhere?

 Regards
 Calle

 On 24 October 2016 at 04:31, Morten Olav Hansen 
 wrote:

> Hi Sam
>
> This is caused by the metadata having some issues I'm guessing...
> I would try and have a look at the network panel (in the web 
> inspector) to

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Jose Garcia Muñoz
Thanks Abyott, I have created an infrastructural dataelements in the
General Settings but still not working (I have clean the cache also).
This the error I'm getting:

/dhis-web-mapping/#:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at success (https://sandbox.psi-mis.org/dhis-web-mapping/app.js:1:25516)
at Object.callback (
https://sandbox.psi-mis.org/dhis-web-mapping/extjs/ext-all.js:15:57696)
at m.onComplete (
https://sandbox.psi-mis.org/dhis-web-mapping/extjs/ext-all.js:15:209766)
at m.onStateChange (
https://sandbox.psi-mis.org/dhis-web-mapping/extjs/ext-all.js:15:209410)
at XMLHttpRequest. (
https://sandbox.psi-mis.org/dhis-web-mapping/extjs/ext-all.js:15:14790)

On Mon, Oct 31, 2016 at 7:42 AM, Abyot Asalefew Gizaw 
wrote:

> Hi Jose,
>
> The issue I think is about missing infrastructural data elements /
> indicators in Settings page. If you could fill something there, it will
> work. Of course, these items shouldn't be mandatory for GIS to run.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz 
> wrote:
>
>>
>> Thanks Bjorn, really appreciate that!
>>
>> The point is that I'm conducting a training in Vietnam this week, and we
>> really need to show the maps by Wednesday. Do you think you can have a
>> solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
>> Otherwise, please let me know, because I would need to find a workaround :)
>>
>> Is there anything that we can do from our end? (I can see maps are
>> working on the Sierra Leone demos)
>>
>> Thanks a lot!
>>
>> Regards
>> Jose
>>
>> On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik  wrote:
>>
>>> Hi Jose,
>>>
>>> I'll look into the issue in the next few days. It's probably related to
>>> these issues:
>>> https://github.com/dhis2/gis-app/issues/164
>>> https://github.com/dhis2/gis-app/issues/163
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> www.dhis2.org
>>>
>>>
>>>
>>> On Sun, Oct 30, 2016 at 11:44 AM, Jose Garcia Muñoz 
>>> wrote:
>>>

 Hi guys,

 I don't know the status of this? We have started to build using a new
 completely empty box in 2.25 (no dataelements, no optionsets...) just with
 some orgunits (country level). Whenever I go to the GIS, I get an error in
 the JavaScript console (attached at the end). All Network calls (traced by
 Google Crhome tools) are returning Ok. We are using 2.25, revision
 9509136

 Many thanks
 Jose

 Uncaught SyntaxError: Unexpected end of JSON input(…)success @
 app.js:1280callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
 @ ext-all.js:15(anonymous function) @ ext-all.js:15
 VM1735:1 Uncaught SyntaxError: Unexpected end of JSON input(…)success @
 app.js:1303callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
 @ ext-all.js:15(anonymous function) @ ext-all.js:15

 On Mon, Oct 24, 2016 at 10:10 AM, Calle Hedberg <
 calle.hedb...@gmail.com> wrote:

> Morten,
>
> Thanks - noted,
>
> Regards
> Calle
>
> On 24 October 2016 at 10:08, Morten Olav Hansen 
> wrote:
>
>> Hi Calle
>>
>> No, this is just general Chrome Developer Tools stuff.. should be
>> easy to google for a guide :)
>>
>> I see that there are plenty videos on youtube also (search for
>> "chrome developer tools"), this can be very useful in figuring these 
>> kinds
>> of issues.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Oct 24, 2016 at 2:49 PM, Calle Hedberg <
>> calle.hedb...@gmail.com> wrote:
>>
>>> Morten,
>>>
>>> i was not aware of the "log XHR requests" feature.
>>>
>>> Is there a DHIS2-related guide to using advanced features of the
>>> Chrome console somewhere?
>>>
>>> Regards
>>> Calle
>>>
>>> On 24 October 2016 at 04:31, Morten Olav Hansen 
>>> wrote:
>>>
 Hi Sam

 This is caused by the metadata having some issues I'm guessing... I
 would try and have a look at the network panel (in the web inspector) 
 to
 see exactly which request it stops on.. since you are using Chrome, you
 should be able to right click on the console and select "log XHR 
 requests",
 that will hopefully give you a clue to exactly which request is 
 failing.

 --
 Morten Olav Hansen
 Senior Engineer, DHIS 2
 University of Oslo
 http://www.dhis2.org

 On Mon, Oct 17, 2016 at 9:37 PM, Sam Kasozi 
 wrote:

> Hi Lars, this is 

[Dhis2-devs] Any idea what is going on here?

2016-10-31 Thread Knut Staring
v2.24:

 INFO  2016-10-31 13:02:39,326 'eiphyu' update
org.hisp.dhis.user.UserCredentials, name: Ei Phyu Naypyitaw, uid:
dSnBO7gErkn (AuditLogUtil.java [tomcat-http-1])

* WARN  2016-10-31 13:11:15,733 Grid will be truncated, no of columns is
greater than JXL max limit: 541/256 (GridUtils.java [tomcat-http-6])

* WARN  2016-10-31 13:12:29,208 Authentication event
AuthenticationSuccessEvent: Parsaung3; details:
org.springframework.security.web.authentication.WebAuthenticationDetails@0:
RemoteIpAddress: 127.0.0.1; SessionId: B19D188E5B973E75A888946F8121346A
(LoggerListener.java [tomcat-http-6])

* WARN  2016-10-31 13:12:29,209 Authentication event
SessionFixationProtectionEvent: Parsaung3; details:
org.springframework.security.web.authentication.WebAuthenticationDetails@0:
RemoteIpAddress: 127.0.0.1; SessionId: B19D188E5B973E75A888946F8121346A
(LoggerListener.java [tomcat-http-6])

* WARN  2016-10-31 13:12:29,209 Authentication event
InteractiveAuthenticationSuccessEvent: Parsaung3; details:
org.springframework.security.web.authentication.WebAuthenticationDetails@0:
RemoteIpAddress: 127.0.0.1; SessionId: B19D188E5B973E75A888946F8121346A
(LoggerListener.java [tomcat-http-6])

* INFO  2016-10-31 13:12:29,214 'Parsaung3' update
org.hisp.dhis.user.UserCredentials, name: Kayah IP Parsaung3, uid:
L54vNfttFX1 (AuditLogUtil.java [tomcat-http-6])

* WARN  2016-10-31 13:16:49,485 Error setting value
[[Ljava.lang.String;@5826858b] with expression [1477897140303]
(CommonsLogger.java [tomcat-http-4])

java.lang.NumberFormatException: For input string: "1477897140303"

at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:583)

at java.lang.Integer.valueOf(Integer.java:740)

at ognl.OgnlParserTokenManager.makeInt(OgnlParserTokenManager.java:63)

at
ognl.OgnlParserTokenManager.TokenLexicalActions(OgnlParserTokenManager.java:1624)

at
ognl.OgnlParserTokenManager.getNextToken(OgnlParserTokenManager.java:1498)

at ognl.OgnlParser.jj_ntk(OgnlParser.java:3099)

at ognl.OgnlParser.unaryExpression(OgnlParser.java:1079)

at ognl.OgnlParser.multiplicativeExpression(OgnlParser.java:971)

at ognl.OgnlParser.additiveExpression(OgnlParser.java:894)

at ognl.OgnlParser.shiftExpression(OgnlParser.java:750)

at ognl.OgnlParser.relationalExpression(OgnlParser.java:508)

at ognl.OgnlParser.equalityExpression(OgnlParser.java:405)

at ognl.OgnlParser.andExpression(OgnlParser.java:352)

at ognl.OgnlParser.exclusiveOrExpression(OgnlParser.java:299)

at ognl.OgnlParser.inclusiveOrExpression(OgnlParser.java:246)

at ognl.OgnlParser.logicalAndExpression(OgnlParser.java:193)

at ognl.OgnlParser.logicalOrExpression(OgnlParser.java:140)

at ognl.OgnlParser.conditionalTestExpression(OgnlParser.java:101)

at ognl.OgnlParser.assignmentExpression(OgnlParser.java:64)

at ognl.OgnlParser.expression(OgnlParser.java:23)

at ognl.OgnlParser.topLevelExpression(OgnlParser.java:15)

at ognl.Ognl.parseExpression(Ognl.java:110)

at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:332)

at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:282)

at
com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)

at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)

at
com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)

at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:303)

at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:221)

at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)

at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)

at
org.hisp.dhis.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:113)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)

at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)

at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)

at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

at

Re: [Dhis2-devs] [Dhis2-users] GIS failing to load in 2.25

2016-10-31 Thread Abyot Asalefew Gizaw
Hi Jose,

The issue I think is about missing infrastructural data elements /
indicators in Settings page. If you could fill something there, it will
work. Of course, these items shouldn't be mandatory for GIS to run.

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

On Mon, Oct 31, 2016 at 4:58 AM, Jose Garcia Muñoz 
wrote:

>
> Thanks Bjorn, really appreciate that!
>
> The point is that I'm conducting a training in Vietnam this week, and we
> really need to show the maps by Wednesday. Do you think you can have a
> solution by Tuesday? (so I can ask for a DHIS2 upgrade on Tuesday night).
> Otherwise, please let me know, because I would need to find a workaround :)
>
> Is there anything that we can do from our end? (I can see maps are working
> on the Sierra Leone demos)
>
> Thanks a lot!
>
> Regards
> Jose
>
> On Sun, Oct 30, 2016 at 3:35 PM, Bjørn Sandvik  wrote:
>
>> Hi Jose,
>>
>> I'll look into the issue in the next few days. It's probably related to
>> these issues:
>> https://github.com/dhis2/gis-app/issues/164
>> https://github.com/dhis2/gis-app/issues/163
>>
>> --
>> Bjørn Sandvik
>> GIS developer, DHIS 2
>> University of Oslo
>> www.dhis2.org
>>
>>
>>
>> On Sun, Oct 30, 2016 at 11:44 AM, Jose Garcia Muñoz 
>> wrote:
>>
>>>
>>> Hi guys,
>>>
>>> I don't know the status of this? We have started to build using a new
>>> completely empty box in 2.25 (no dataelements, no optionsets...) just with
>>> some orgunits (country level). Whenever I go to the GIS, I get an error in
>>> the JavaScript console (attached at the end). All Network calls (traced by
>>> Google Crhome tools) are returning Ok. We are using 2.25, revision
>>> 9509136
>>>
>>> Many thanks
>>> Jose
>>>
>>> Uncaught SyntaxError: Unexpected end of JSON input(…)success @
>>> app.js:1280callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
>>> @ ext-all.js:15(anonymous function) @ ext-all.js:15
>>> VM1735:1 Uncaught SyntaxError: Unexpected end of JSON input(…)success @
>>> app.js:1303callback @ ext-all.js:15onComplete @ ext-all.js:15onStateChange
>>> @ ext-all.js:15(anonymous function) @ ext-all.js:15
>>>
>>> On Mon, Oct 24, 2016 at 10:10 AM, Calle Hedberg >> > wrote:
>>>
 Morten,

 Thanks - noted,

 Regards
 Calle

 On 24 October 2016 at 10:08, Morten Olav Hansen 
 wrote:

> Hi Calle
>
> No, this is just general Chrome Developer Tools stuff.. should be easy
> to google for a guide :)
>
> I see that there are plenty videos on youtube also (search for "chrome
> developer tools"), this can be very useful in figuring these kinds of
> issues.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Oct 24, 2016 at 2:49 PM, Calle Hedberg <
> calle.hedb...@gmail.com> wrote:
>
>> Morten,
>>
>> i was not aware of the "log XHR requests" feature.
>>
>> Is there a DHIS2-related guide to using advanced features of the
>> Chrome console somewhere?
>>
>> Regards
>> Calle
>>
>> On 24 October 2016 at 04:31, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Sam
>>>
>>> This is caused by the metadata having some issues I'm guessing... I
>>> would try and have a look at the network panel (in the web inspector) to
>>> see exactly which request it stops on.. since you are using Chrome, you
>>> should be able to right click on the console and select "log XHR 
>>> requests",
>>> that will hopefully give you a clue to exactly which request is failing.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Oct 17, 2016 at 9:37 PM, Sam Kasozi 
>>> wrote:
>>>
 Hi Lars, this is the original error message from an upgraded
 instance from 2.25.

 The developer console, gives the error below:

 ext-all.js:15 Uncaught You're trying to decode an invalid JSON
 String: Also in the attached./ Screen shot attached as well.


 P.s With the new instance, I could not access the orgunits; nor
 were they displaying as part of the maintenance, GIS module wasn't 
 loading
 either - It would be good to try out from your end.

 regards,


 Sam Kasozi
 +256 788-993-565
 Skype: sam.kasoziug

 On Mon, Oct 17, 2016 at 4:44 PM, Lars Helge Øverland <
 l...@dhis2.org> wrote:

>
>
> On Mon, Oct 17, 2016 at 3:42 PM, Sam Kasozi 
> wrote:
>
>> GIS is failing to load in a new instance of 2.25; not sure if
>> this is a