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

2016-10-30 Thread Jose Garcia Muñoz
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  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 >> > 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 bug or whether some pre-configuration needs to happen.
>
> regards,
>
>

 Hi Sam,

 we need some more info, can you check in the browser developer
 console and post output? If nothing there, tomcat log is helpful.

 regards,

 Lars






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

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

2016-10-30 Thread Bjørn Sandvik
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 
>>> 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 
>> 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 bug or whether some pre-configuration needs to happen.

 regards,


>>>
>>> Hi Sam,
>>>
>>> we need some more info, can you check in the browser developer
>>> console and post output? If nothing there, tomcat log is helpful.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>>
 Sam Kasozi
 +256 788-993-565
 Skype: sam.kasoziug

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org 
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : 

[Dhis2-users] How to find total patients enrolled in a program

2016-10-30 Thread Arun Paul
​Hello everyone,

I use programs to capture data of chronic disease patients (TEI is a
patient).
So I have programs defined for Hypertension, Diabetes, Asthma etc.
Patients enroll when they are diagnosed with a disease and exit  when they
either move out of the location or when they die.

I
​s there a way to find out total number of patients enrolled in a
particular program​ at a particular time?
I need this number to find the prevalence rate of the disease ​of a location
​.​
I tried defining program indicator
​s​
using the variables v{tei_count}, v{enrollment_count}
​ but they do not show the total entities currently enrolled in a program .
If there is no such variable to get this number, is there any other way to
generate the prevalence rate?

Thanks in advance,
Arun Paul
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


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

2016-10-30 Thread Jose Garcia Muñoz
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 
>> 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 
> 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 bug or whether some pre-configuration needs to happen.
>>>
>>> regards,
>>>
>>>
>>
>> Hi Sam,
>>
>> we need some more info, can you check in the browser developer
>> console and post output? If nothing there, tomcat log is helpful.
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>
>>
>>
>>> Sam Kasozi
>>> +256 788-993-565
>>> Skype: sam.kasoziug
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> l...@dhis2.org
>> http://www.dhis2.org 
>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@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-d...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


>>>
>>>
>>> --
>>>
>>> ***
>>>
>>> Calle Hedberg
>>>
>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>
>>> Tel/fax (home): +27-21-685-6472
>>>
>>> Cell: 

Re: [Dhis2-users] Detailed Meta-Data Export in 2.25

2016-10-30 Thread Shurajit Dutta
Hi Lars et al.

As others have mentioned, I was also thinking about exporting a sub-set of
objects (and what I would have traditionally used it for), like all
dataelements, orgunits etc. within a certain group.

On Sun, Oct 30, 2016 at 12:14 PM, Hannan Khan  wrote:

> Dear Lars
>
> We also required detailed metadata export with dependency from where can
> select a subset (not all the organisationunits, dataelements etc) as Knut
> says. Without that we will be in deep water. We already have lots of issues
> with metadata.
>
> Regards
>
> Hannan
>
>
> On Sat, Oct 29, 2016 at 11:56 PM, Knut Staring  wrote:
>
>> A nice feature with the detailed one was that you could select a subset
>> (not all the organisationunits, dataelements etc).
>>
>> On Sat, Oct 29, 2016 at 5:07 PM, Lars Helge Øverland 
>> wrote:
>>
>>>
>>> Hi Nick,
>>>
>>> if you have specific needs let us know and we can consider including new
>>> objects here.
>>>
>>> As Morten said, the previous detailed metadata export was too error
>>> prone as one would typically forget important parts when exporting things
>>> like categories and data sets.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Oct 28, 2016 at 9:58 PM, Morten Olav Hansen 
>>> wrote:
>>>
 Hi Nick

 Yeah, that has been removed now, it wasn't really working well, and
 there would almost always be missing objects.

 What are you trying to export? if its data set or program, did you have
 a look at our new "export with deps" functionality?

 https://dhis2.github.io/dhis2-docs/master/en/developer/html/
 webapi_metadata_export.html#webapi_dataset_program_export_dependencies

 You can also find it in the UI, under import/export module

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

 On Sat, Oct 29, 2016 at 12:01 AM, Shurajit Dutta <
 shurajitdu...@gmail.com> wrote:

> Hi,
>
> I notice in 2.25 I no longer have the option to perform a detailed
> meta-data export from the import-export app. Is this feature being
> deprecated? I couldn't see anything related to it in the release notes and
> find it quite useful.
>
> Thanks,
> Nick
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org 
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522
>> Skype: knutstar
>> http://dhis2.org
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Muhammad Abdul Hannan Khan
> Secretary
> HISP Bangladesh
>
> T +880-2- 8816459, 8816412 ext 118
> F +88 02 8813 875
> M+88 01819 239 241
> M+88 01534 312 066
> E hann...@gmail.com
> S hannan.khan.dhaka
> B hannan-tech.blogspot.com
> L https://bd.linkedin.com/in/hannankhan
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Shurajit Dutta
Health Information Consultant
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp