Re: [Dhis2-devs] Introduction to Community

2016-04-30 Thread Pamod Amarakoon
Welcome Laavanye :)

On Sat, Apr 30, 2016 at 2:50 PM, Ola Hodne Titlestad 
wrote:

> Hi Laavanye,
>
> Welcome to the DHIS 2 community and good look with your Android Dashboard
> work!
>
> Ola
> ---
> On 30 Apr 2016 10:42, "LAAVANYE BAHL"  wrote:
>
>> Hi everyone,
>>
>> I am Laavanye Bahl studying Software Engineering at Delhi Technological
>> University, India. I have a lot of experience in software development,
>> especially mobile and desktop applications.
>>
>> I have been selected as a GSoC participant for the project - "Enhancing
>> Dashboard Android App
>> <https://summerofcode.withgoogle.com/projects/#5382475769446400>" by
>> generating the analytical objects dynamically and making the app work in
>> the offline mode.
>>
>> It feels great to be a part of a community of active developers and
>> members working on development and implementation of health information
>> systems across the world,
>>
>> I'm looking forward to an amazing summer working on the project, with the
>> HIS community, under the mentor ship of Araz Abishov.
>>
>> Regards,
>> Laavanye Bahl
>>
>>
>>
>> ___
>> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Program data into dataset

2016-05-06 Thread Pamod Amarakoon
Dear Lars,

Making aggregated event data available on the fly in data set report would
certainly be a useful tool especially when maintaining monitoring and
evaluation forms for tracker activities.

Thank you

On Fri, May 6, 2016 at 6:35 PM, Lars Helge Øverland  wrote:

> Hi Pramil,
>
> you can retrieve aggregated event data from the analytics api.
>
> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s32.html
>
>
> Excerpt from the docs:
>
> To query for program data elements (of tracker domain type) you can get
> those by specifying the program for each data element using the
> . syntax:
>
> /api/analytics.json?dimension=dx:eBAyeGv0exc.qrur9Dvnyt5;eBAyeGv0exc.GieVkTxp4HH
> &dimension=pe:LAST_12_MONTHS&filter=ou:ImspTQPwCqd
>
> One work-around could be to write a bit of Javascript and include that in
> the custom form to retrieve and display event based aggregated data inside
> the data entry form, if that is what you are looking to do.
>
>
> I have been pondering for a while on adding a feature where you could
> specify tracker-type data elements in custom data entry forms, and have the
> system automatically display aggregated event data, both in forms and in
> data set report. Let me know if that could work.
>
>
> regards,
>
> Lars
>
>
>
>
>
>
> On Thu, May 5, 2016 at 11:03 AM, Pramil Liyanage 
> wrote:
>
>> Hi everyone,
>>
>> Since the aggregation queries are not there anymore is it possible to get
>> program indicator value into an existing Aggregate Dataset through data
>> entry screen design?
>>
>> Or any other alternative workaround?
>>
>> Regards
>> Pramil
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Program Enrollment API

2016-05-11 Thread Pamod Amarakoon
Dear All,

With reference to API documentation at
http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s54.html#d0e11517

there seems to be 3 stages for an enrollment; active, cancelled or
completed.

What are the differences between cancelled and completed states?
If I want to unenroll a tracked entity instance from a programme with a
probability of reenrolling him again in future with availability of access
to current events in future, what should be the state I should convert his
enrollment to, is it cancelled or complete.

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Best possible approach to list all the data elements of a program

2016-05-15 Thread Pamod Amarakoon
Hi Chathura,

I use the following nested web api code to retrieve data elements,
attributes and option sets related to a program with registrations

http://URL/api/programs.json?filter=programType:eq:WITH_REGISTRATION&paging=false&fields=id,version,name,programTrackedEntityAttributes[trackedEntityAttribute[id,name,optionSet[id,version,options[id,name,programStages[id,name,version,programStageDataElements[dataElement[id,name,optionSet[id,name,version,options[id,name]

On Sun, May 15, 2016 at 10:50 PM, Knut Staring  wrote:

> Hi Chathura,
>
> Yeah, it is pretty powerful. More examples in the documentation, also on
> filtering exactly which results and what fields you like to see.
>
> Have fun!
> Knut
>
> On Sun, May 15, 2016 at 7:17 PM, chathura widanage <
> chathurawidan...@gmail.com> wrote:
>
>> Hi Knut,
>>
>> This is really amazing. Didn't know that this kind of querying is
>> possible with the API.
>>
>> Thank you very much.
>>
>>
>> On Sun, May 15, 2016 at 10:40 PM, Knut Staring  wrote:
>>
>>> Or better:
>>>
>>> https://play.dhis2.org/demo/api/programs/IpHINAT79UW.json?fields=programStages[programStageDataElements[dataElement[name,id]]]
>>>
>>> On Sun, May 15, 2016 at 7:09 PM, Knut Staring  wrote:
>>>
>>>> Maybe something like this:
>>>>
>>>> https://play.dhis2.org/demo/api/programs/IpHINAT79UW.json?fields=programStages[programStageDataElements[:all]]
>>>>
>>>> On Sun, May 15, 2016 at 6:48 PM, chathura widanage <
>>>> chathurawidan...@gmail.com> wrote:
>>>>
>>>>> Dear devs,
>>>>>
>>>>> What will be the best possible approach (minimum number of API calls)
>>>>> to get all the dataElements which are relevant for a selected program.
>>>>>
>>>>> I couldn't find out a direct API call for this, so currently following
>>>>> the below flow.
>>>>>
>>>>> Program (1) -> programStages (n) -> programStageDataElements (m) ->
>>>>> dataElement (m)
>>>>>
>>>>> Assuming a Program has n programStages and, each programStage has m
>>>>> programStageDataElements, to get all the dataElements (displayName of data
>>>>> elements) it takes n x m x m API calls.
>>>>>
>>>>> Since this isn't an acceptable approach, would it be possible to
>>>>> minimize the number of API calls?
>>>>>
>>>>> Thanks
>>>>> Chathura
>>>>>
>>>>> ___
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Knut Staring
>>>> Dept. of Informatics, University of Oslo
>>>> Norway: +4791880522
>>>> Skype: knutstar
>>>> http://dhis2.org
>>>>
>>>
>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> Norway: +4791880522
>>> Skype: knutstar
>>> http://dhis2.org
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> *Chathura Widanage,*
>> Undergraduate,
>> Department of Computer Science and Engineering,
>> University of Moratuwa,
>> Sri Lanka
>>
>> <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
>>   <http://facebook.com/chathura.widanage>
>> <https://plus.google.com/u/0/109418781686423002025>
>> <https://github.com/chathurawidanage>
>>
>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analyzing Yes/No values GIS

2016-05-31 Thread Pamod Amarakoon
Dear All,

When using GIS module to analyze yes/no data elements it asks to select a
values from a numerical scale with a logical parameter (equal, greater
than, less than etc).


​
​
 How does this numerical scale works with yes/no values. What's the value
and parameter I should select to display only yes values.

Thank you.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analyzing Yes/No values GIS

2016-06-03 Thread Pamod Amarakoon
And this is in version 2.23

On Tue, May 31, 2016 at 11:55 PM, Pamod Amarakoon  wrote:

> Dear All,
>
> When using GIS module to analyze yes/no data elements it asks to select a
> values from a numerical scale with a logical parameter (equal, greater
> than, less than etc).
>
>
> ​
> ​
>  How does this numerical scale works with yes/no values. What's the value
> and parameter I should select to display only yes values.
>
> Thank you.
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analyzing Yes/No values GIS

2016-06-03 Thread Pamod Amarakoon
Okay,

Thank you Bjørn.

On Sat, Jun 4, 2016 at 1:10 AM, Bjørn Sandvik  wrote:

> Hi Pamod,
>
> This seems to be a current limitation of the system that we'll try to fix
> for the 2.24 release.
>
> https://github.com/dhis2/dhis2-gis/issues/128
>
> Bjørn
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> www.dhis2.org
>
> On Fri, Jun 3, 2016 at 2:52 PM, Pamod Amarakoon  wrote:
>
>> And this is in version 2.23
>>
>> On Tue, May 31, 2016 at 11:55 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Dear All,
>>>
>>> When using GIS module to analyze yes/no data elements it asks to select
>>> a values from a numerical scale with a logical parameter (equal, greater
>>> than, less than etc).
>>>
>>>
>>> ​
>>> ​
>>>  How does this numerical scale works with yes/no values. What's the
>>> value and parameter I should select to display only yes values.
>>>
>>> Thank you.
>>>
>>> --
>>> Regards,
>>> Pamod Amarakoon
>>>
>>> Confidentiality Notice: the information contained in this email and any
>>> attachments may be legally privileged and confidential. If you are not an
>>> intended recipient, you are hereby notified that any dissemination,
>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>> received this e-mail in error, please notify the sender and permanently
>>> delete the e-mail and any attachments immediately. You should not retain,
>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>> all or any part of the contents to any other person.
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API Delete Event 405 Error on Android using Mobile Internet

2016-07-09 Thread Pamod Amarakoon
Dear All,

We are developing an Android app for a specific tracker use case. It was
initially developed targeting a DHIS 2.22 instance. The app used web API to
communicate with the DHIS2 instance which mainly involved creating TEIs,
enrolling them to a program, updating attributes, adding, updating and
deleting events.

The version was working fine without any major issue. We recently tested
the App on a 2.23 instance.

While testing we noted that we are getting "405-Method not allowed"
response when trying to delete an event using mobile internet. We used
following API which worked fine on mobile internet in 2.22

http://xxx.xxx.xxx.xxx/api/events/tRYeBJR51yW

But we don't get this error while performing the same delete event using
WiFi on the Android mobile device.

Even upgrading to the latest 2.23 didn't fix this error. Any idea on what's
causing this error and how to fix this.

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API Delete Event 405 Error on Android using Mobile Internet

2016-07-11 Thread Pamod Amarakoon
The issue still persists on latest build. Any suggestion on how to fix this.

On Sat, Jul 9, 2016 at 1:16 PM, Pamod Amarakoon  wrote:

> Dear All,
>
> We are developing an Android app for a specific tracker use case. It was
> initially developed targeting a DHIS 2.22 instance. The app used web API to
> communicate with the DHIS2 instance which mainly involved creating TEIs,
> enrolling them to a program, updating attributes, adding, updating and
> deleting events.
>
> The version was working fine without any major issue. We recently tested
> the App on a 2.23 instance.
>
> While testing we noted that we are getting "405-Method not allowed"
> response when trying to delete an event using mobile internet. We used
> following API which worked fine on mobile internet in 2.22
>
> http://xxx.xxx.xxx.xxx/api/events/tRYeBJR51yW
>
> But we don't get this error while performing the same delete event using
> WiFi on the Android mobile device.
>
> Even upgrading to the latest 2.23 didn't fix this error. Any idea on
> what's causing this error and how to fix this.
>
> Thank you
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] GIS Google Maps Error

2016-08-03 Thread Pamod Amarakoon
sorry, I meant
Version:2.24Build revision:23546

On Wed, Aug 3, 2016 at 9:28 PM, Morten Olav Hansen  wrote:

> Well, two common issues when you have different behaviour on /demo vs your
> own instance:
>
> 1) Try with chrome incognito
>
> 2) If you upgraded, clear out nginx cache [1]
>
> [1]
> http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Aug 3, 2016 at 5:48 PM, Sergio Valenzuela <
> sergio.valenzu...@ehas.org> wrote:
>
>> The whole module.
>> Yeah the link you sent me works.
>>
>> Now I have just checked
>>
>> Version:2.24Build revision:23546
>> and GIS module loads fine.
>> So maybe was my instance which was corrupted or somthing.
>>
>>
>> *Sergio Valenzuela*
>> Fundación EHAS
>> Telemedicina para países en desarrollo -* www.ehas.org
>> <http://www.ehas.org/>*
>> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
>> Madrid - España
>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>
>>
>>
>> 2016-08-03 17:42 GMT+02:00 Morten Olav Hansen :
>>
>>>
>>> On Wed, Aug 3, 2016 at 5:38 PM, Sergio Valenzuela <
>>> sergio.valenzu...@ehas.org> wrote:
>>>
>>>> and it GIS module doesn't load.
>>>>
>>>
>>> You mean the whole module, or the maps don't load?
>>>
>>> https://play.dhis2.org/dev/dhis-web-mapping/
>>>
>>> Does that link work for you?
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>
>>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Login issue

2016-08-10 Thread Pamod Amarakoon
Hi,

I'm also experiencing the same issue when using Chrome on
Version:2.24Build revision:23541


On Sun, Aug 7, 2016 at 1:59 PM, Pramil Liyanage  wrote:

> Hi
>
> I also experience the same issue in 2.24. Is this fixed in the latest
> builds?
>
> Regards
> Pramil
> On 5 Aug 2016 10:13, "Em Le Hong"  wrote:
>
>> I saw the response of the same bug.
>>
>> Thanks,
>>
>> On Fri, Aug 5, 2016 at 11:22 AM, Em Le Hong 
>> wrote:
>>
>>> Hi dev,
>>>
>>> I'm using DHIS2 2.23 R.23045
>>>
>>> I can't login to dhis2 with chrome browser, I fill in the username and
>>> password, click on Sign in button, it just refreshes the page, no error
>>> message. But when I try with Firefox browser, with the same username and
>>> password, then I can login. I clean history cache and also try with other
>>> computers, still get the same problem.
>>>
>>> Is that because of server configuration or anything else?
>>>
>>> Thanks,
>>>
>>> --
>>> Le Hong Em
>>>   +84 126 7171 650
>>>
>>
>>
>>
>> --
>> Le Hong Em
>>   +84 126 7171 650
>>
>> ___
>> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Login issue

2016-08-10 Thread Pamod Amarakoon
Sorry Knut.

It's Chrome Version 52.0.2743.116 m

On Wed, Aug 10, 2016 at 7:17 PM, Knut Staring  wrote:

> Which version of Chrome?
>
> On Wed, Aug 10, 2016 at 3:37 PM, Pamod Amarakoon  wrote:
>
>> Hi,
>>
>> I'm also experiencing the same issue when using Chrome on
>> Version:2.24Build revision:23541
>>
>>
>> On Sun, Aug 7, 2016 at 1:59 PM, Pramil Liyanage 
>> wrote:
>>
>>> Hi
>>>
>>> I also experience the same issue in 2.24. Is this fixed in the latest
>>> builds?
>>>
>>> Regards
>>> Pramil
>>> On 5 Aug 2016 10:13, "Em Le Hong"  wrote:
>>>
>>>> I saw the response of the same bug.
>>>>
>>>> Thanks,
>>>>
>>>> On Fri, Aug 5, 2016 at 11:22 AM, Em Le Hong 
>>>> wrote:
>>>>
>>>>> Hi dev,
>>>>>
>>>>> I'm using DHIS2 2.23 R.23045
>>>>>
>>>>> I can't login to dhis2 with chrome browser, I fill in the username and
>>>>> password, click on Sign in button, it just refreshes the page, no error
>>>>> message. But when I try with Firefox browser, with the same username and
>>>>> password, then I can login. I clean history cache and also try with other
>>>>> computers, still get the same problem.
>>>>>
>>>>> Is that because of server configuration or anything else?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --
>>>>> Le Hong Em
>>>>>   +84 126 7171 650
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Le Hong Em
>>>>       +84 126 7171 650
>>>>
>>>> ___
>>>> 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
>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>



-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Login issue

2016-08-10 Thread Pamod Amarakoon
Thank you Suranga for the information  👍

On Wed, Aug 10, 2016 at 7:26 PM, Suranga Kasthurirathne <
suranga...@gmail.com> wrote:

>
> Apparently this is a known issue for chrome only. Add a trailing backslash
> after dhis like this "dhis/" and you will be able to login on chrome...
>
> On Aug 10, 2016 9:53 AM, "Pamod Amarakoon"  wrote:
>
>> Sorry Knut.
>>
>> It's Chrome Version 52.0.2743.116 m
>>
>> On Wed, Aug 10, 2016 at 7:17 PM, Knut Staring  wrote:
>>
>>> Which version of Chrome?
>>>
>>> On Wed, Aug 10, 2016 at 3:37 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm also experiencing the same issue when using Chrome on
>>>> Version:2.24Build revision:23541
>>>>
>>>>
>>>> On Sun, Aug 7, 2016 at 1:59 PM, Pramil Liyanage 
>>>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I also experience the same issue in 2.24. Is this fixed in the latest
>>>>> builds?
>>>>>
>>>>> Regards
>>>>> Pramil
>>>>> On 5 Aug 2016 10:13, "Em Le Hong"  wrote:
>>>>>
>>>>>> I saw the response of the same bug.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> On Fri, Aug 5, 2016 at 11:22 AM, Em Le Hong >>>>> > wrote:
>>>>>>
>>>>>>> Hi dev,
>>>>>>>
>>>>>>> I'm using DHIS2 2.23 R.23045
>>>>>>>
>>>>>>> I can't login to dhis2 with chrome browser, I fill in the username
>>>>>>> and password, click on Sign in button, it just refreshes the page, no 
>>>>>>> error
>>>>>>> message. But when I try with Firefox browser, with the same username and
>>>>>>> password, then I can login. I clean history cache and also try with 
>>>>>>> other
>>>>>>> computers, still get the same problem.
>>>>>>>
>>>>>>> Is that because of server configuration or anything else?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> --
>>>>>>> Le Hong Em
>>>>>>>   +84 126 7171 650
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Le Hong Em
>>>>>>   +84 126 7171 650
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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] Sharing a TEI only with selected users who have access to the orgunit

2016-08-15 Thread Pamod Amarakoon
I'd really like to see sharing is implemented on program stages. We also
have a similar requirement where user access is needed to be controlled on
program stage basis.

On Mon, Aug 15, 2016 at 7:20 AM, Prosper BT  wrote:

> Dear Elmarie,
>
> Are the other users assigned to these orgunits supposed to access some
> parts of this tracker program?
>
> If yes, then design the program and use user roles to restrict access,
> create a user role and assign the program to it and that user role should
> be only assigned to the users supposed to view the program.
>
> If No, and want some users to see some parts or stages and not the others,
> its not yet supported - sharing program stages.
>
> Regards
>
>
>
> On Mon, Aug 15, 2016 at 7:02 AM, Elmarie Claasen  wrote:
>
>> Hi all,
>>
>>
>>
>> I have a use case where I need to create a tracker program to capture
>> meeting resolutions of a sensitive/confidential nature. Each of these
>> resolutions should be shared with particular users attached to a specific
>> organisation unit for action but not with other users attached to the same
>> organisation unit.
>>
>> Is this currently possible to share TEIs only with selected users or is
>> it possible to add this?
>>
>>
>>
>> Regards,
>>
>>
>>
>> *Elmarie Claasen*
>>
>> [image: Hisp logo]
>>
>> Project Manager
>>
>> Health Information Systems Program
>>
>> Tel:  041-367 1027
>>
>> Cell: 082 374 2209
>>
>> E-mail: elma...@hisp.org
>>
>> Skype:  elmarie.claasen52
>>
>>
>>
>>
>>
>> This message and any attachments are subject to a disclaimer published at
>> http://www.hisp.org/policies.html#comms_disclaimer .   Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.
>> If you cannot access the disclaimer, kindly send an email to 
>> disclai...@hisp.org
>> and a copy will be provided to you. By replying to this e-mail or opening
>> any attachment you agree to be bound by the provisions of the disclaimer.
>>
>>
>>
>> *This message and any attachments are subject to a disclaimer published
>> at http://www.hisp.org/policies.html#comms_disclaimer
>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org
>>  and a copy will be provided to you. By replying to
>> this e-mail or opening any attachment you agree to be bound by the
>> provisions of the disclaimer.*
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Prosper Behumbiize, MPH
> Global DHIS2 Implementation| HISP Uganda/University Of Oslo
> +256 752 751 776 | +256 776 139 139
> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
> prospertb
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instances Query - SQL syntax error

2016-08-17 Thread Pamod Amarakoon
Thank you Morten.

On Wed, Aug 17, 2016 at 7:10 PM, Morten Olav Hansen 
wrote:

> Seems like a bug yes, I will look into it
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Aug 15, 2016 at 10:34 AM, chathura widanage <
> chathurawidan...@gmail.com> wrote:
>
>> Hi all,
>>
>> I am using below API call to query all the TEIs which are accessible by
>> the current user.
>>
>> /api/trackedEntityInstances/query.json?ouMode=ACCESSIBLE&att
>> ribute=izuwkaOUgFg&attribute=C8DBAo2wEYN&attribute=BZEpuufLyDE&attribute=
>> WqdldQpOIxm
>>
>> In our setup,  we have 5 orgUnitLevels and above query works fine for
>> superuser who has just one orgUnit assigned which is of level 1.
>>
>> There are other users who has multiple level 4 and 5 orgUnits assigned.
>> Above API call fails for those users giving a 500 error code. Basically
>> this doesn't work for any user who has multiple orgUnits.
>>
>> The cause for the issue seems to be a SQL syntax error.
>>
>> Please find the link to the stack trace below.
>>
>> https://dl.dropboxusercontent.com/u/81780569/stack.txt
>>
>> The issue was visible in DHIS2 v2.23 and v2.24.
>>
>> Have I done something wrong in the above API call or is this a bug in the
>> DHIS2. Is there any walk around for this issue?
>>
>> Thanks
>> --
>> Best Regards,
>>
>> *Chathura Widanage,*
>> Undergraduate,
>> Department of Computer Science and Engineering,
>> University of Moratuwa,
>> Sri Lanka
>>
>> <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
>>   <http://facebook.com/chathura.widanage>
>> <https://plus.google.com/u/0/109418781686423002025>
>> <https://github.com/chathurawidanage>
>>
>> ___
>> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instances Query - SQL syntax error

2016-08-23 Thread Pamod Amarakoon
Hi Morten,

Just wondering whether this has been fixed.

Thank you

On Wed, Aug 17, 2016 at 7:24 PM, Pamod Amarakoon  wrote:

> Thank you Morten.
>
> On Wed, Aug 17, 2016 at 7:10 PM, Morten Olav Hansen 
> wrote:
>
>> Seems like a bug yes, I will look into it
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Aug 15, 2016 at 10:34 AM, chathura widanage <
>> chathurawidan...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I am using below API call to query all the TEIs which are accessible by
>>> the current user.
>>>
>>> /api/trackedEntityInstances/query.json?ouMode=ACCESSIBLE&att
>>> ribute=izuwkaOUgFg&attribute=C8DBAo2wEYN&attribute=BZEpuufLy
>>> DE&attribute=WqdldQpOIxm
>>>
>>> In our setup,  we have 5 orgUnitLevels and above query works fine for
>>> superuser who has just one orgUnit assigned which is of level 1.
>>>
>>> There are other users who has multiple level 4 and 5 orgUnits assigned.
>>> Above API call fails for those users giving a 500 error code. Basically
>>> this doesn't work for any user who has multiple orgUnits.
>>>
>>> The cause for the issue seems to be a SQL syntax error.
>>>
>>> Please find the link to the stack trace below.
>>>
>>> https://dl.dropboxusercontent.com/u/81780569/stack.txt
>>>
>>> The issue was visible in DHIS2 v2.23 and v2.24.
>>>
>>> Have I done something wrong in the above API call or is this a bug in
>>> the DHIS2. Is there any walk around for this issue?
>>>
>>> Thanks
>>> --
>>> Best Regards,
>>>
>>> *Chathura Widanage,*
>>> Undergraduate,
>>> Department of Computer Science and Engineering,
>>> University of Moratuwa,
>>> Sri Lanka
>>>
>>> <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
>>>   <http://facebook.com/chathura.widanage>
>>> <https://plus.google.com/u/0/109418781686423002025>
>>> <https://github.com/chathurawidanage>
>>>
>>> _______
>>> 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
>>
>>
>
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instances Query - SQL syntax error

2016-08-25 Thread Pamod Amarakoon
Thank you Morten.

On Thu, Aug 25, 2016 at 12:50 PM, Morten Olav Hansen 
wrote:

> Give our servers about 1 hour, and you can download the fix for 2.23, 2.24
> and trunk
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Aug 25, 2016 at 2:02 PM, Morten Olav Hansen 
> wrote:
>
>> Looking into it now Pamod, sorry for the delay.. I have recreated the bug
>> locally and working on a fix
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, Aug 24, 2016 at 12:33 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Hi Morten,
>>>
>>> Just wondering whether this has been fixed.
>>>
>>> Thank you
>>>
>>> On Wed, Aug 17, 2016 at 7:24 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Thank you Morten.
>>>>
>>>> On Wed, Aug 17, 2016 at 7:10 PM, Morten Olav Hansen 
>>>> wrote:
>>>>
>>>>> Seems like a bug yes, I will look into it
>>>>>
>>>>> --
>>>>> Morten Olav Hansen
>>>>> Senior Engineer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org
>>>>>
>>>>> On Mon, Aug 15, 2016 at 10:34 AM, chathura widanage <
>>>>> chathurawidan...@gmail.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I am using below API call to query all the TEIs which are accessible
>>>>>> by the current user.
>>>>>>
>>>>>> /api/trackedEntityInstances/query.json?ouMode=ACCESSIBLE&att
>>>>>> ribute=izuwkaOUgFg&attribute=C8DBAo2wEYN&attribute=BZEpuufLy
>>>>>> DE&attribute=WqdldQpOIxm
>>>>>>
>>>>>> In our setup,  we have 5 orgUnitLevels and above query works fine for
>>>>>> superuser who has just one orgUnit assigned which is of level 1.
>>>>>>
>>>>>> There are other users who has multiple level 4 and 5 orgUnits
>>>>>> assigned. Above API call fails for those users giving a 500 error code.
>>>>>> Basically this doesn't work for any user who has multiple orgUnits.
>>>>>>
>>>>>> The cause for the issue seems to be a SQL syntax error.
>>>>>>
>>>>>> Please find the link to the stack trace below.
>>>>>>
>>>>>> https://dl.dropboxusercontent.com/u/81780569/stack.txt
>>>>>>
>>>>>> The issue was visible in DHIS2 v2.23 and v2.24.
>>>>>>
>>>>>> Have I done something wrong in the above API call or is this a bug in
>>>>>> the DHIS2. Is there any walk around for this issue?
>>>>>>
>>>>>> Thanks
>>>>>> --
>>>>>> Best Regards,
>>>>>>
>>>>>> *Chathura Widanage,*
>>>>>> Undergraduate,
>>>>>> Department of Computer Science and Engineering,
>>>>>> University of Moratuwa,
>>>>>> Sri Lanka
>>>>>>
>>>>>> <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
>>>>>>   <http://facebook.com/chathura.widanage>
>>>>>> <https://plus.google.com/u/0/109418781686423002025>
>>>>>> <https://github.com/chathurawidanage>
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>

[Dhis2-devs] API query for Last Event for a Program Stage for TEI

2016-08-25 Thread Pamod Amarakoon
Dear All,

Is it possible to query an event for a TEI for a particular program stage
depending on last updated time. I want to obtain the records of an event
that was updated last for a program stage for a TEI.

Thank you.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] heads up on tomcat versions and dhis

2017-01-07 Thread Pamod Amarakoon
Thanx for fixing this Lars.

On Sat, Jan 7, 2017 at 6:26 PM, Lars Helge Øverland  wrote:

> Hi all,
>
> the latest builds of tomcat (the servlet container mostly used with DHIS
> 2) has tightened up validation of characters in URLs, so that only
> characters defined as safe per RFC 1738
> <https://www.ietf.org/rfc/rfc1738.txt> are allowed. Our apps had some
> cases of un-escaped use of the pipe character which was causing tomcat to
> occasionally return 400 bad request.
>
> We have patched this now in 2.24, 2.25 and master.
>
> Bottom line: If you plan to upgrade to very latest Tomcat 7, 8 or 8.5
> builds on your server, make sure to upgrade to latest 2.24 or 2.25 of DHIS
> 2.
>
>
> regards,
>
> Lars
>
>
>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Regards,
Dr. Pamod Amarakoon
MBBS (SL)
MSc (Biomedical Informatics), EMSc (Health Admin)
Medical Officer in Health Informatics
Nutrition Coordination Division
Ministry of Health, Nutrition and Indigenous Medicine,
Sri Lanka

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API Update User Info

2017-02-09 Thread Pamod Amarakoon
Hi,

Is it possible to update only first name and last name of the user without
including other info such as assigned org unit in json payload using web
API.

Thank you
___
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] Web API Update User Info

2017-02-09 Thread Pamod Amarakoon
Thanx Antonia. I tried PUT earlier and it needed uploading the entire
payload.

On Feb 9, 2017 5:57 PM, "Antonia - Pro"  wrote:

> Hi Pamod,
>
> Yes, you can do it with the PATCH.
>
> For example to change only the surname and firstName of the
> Username: konan ; on the the Demo server
>
> https://play.dhis2.org/demo/api/26/users/I9fMsY4pRKk
> Username: konan ; Fullname: Didier, Konan
>
> you can do
>  > curl -k -X PATCH -d @user_konan1.json "https://play.dhis2.org/demo/
> api/26/users/I9fMsY4pRKk" -H "Content-Type: application/json" -u
> admin:district
>
> the file  *user_konan1.json*  has to contain only:
>
>  { "surname": "Mona", "firstName": "Lisa" }
>
> Regards,
> antonia
>
>
>  www.informa.pro - *Seguici su *LinkedIn
> <https://www.linkedin.com/company/informapro>
> INFORMAPRO S.r.l. - via Luigi Rava 43,  Rome 00149 , Italy
> tel. +39 06 5758926 <+39%2006%20575%208926>, fax +39  06 62207168, P.IVA
> IT08095781004
> Skype: informa_antonia.bezenchek
> Eng. Antonia Bezenchek - CIO - ICT Engineer
>
> 2017-02-09 10:04 GMT+01:00 Pamod Amarakoon :
>
>> Hi,
>>
>> Is it possible to update only first name and last name of the user
>> without including other info such as assigned org unit in json payload
>> using web API.
>>
>> Thank you
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] View Access to Tracker Capture

2017-02-10 Thread Pamod Amarakoon
Hi,

Is it possible to only provide a user role view access to tracker capture
without providing the ability to edit or delete event data. It seems that
Add/Update Tracked Entity Data Value access has to be provided to view the
tracked entity dash board on 2.24

-- 
Regards,
Pamod

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] critical security vulnerability found - immediate dhis upgrade required

2017-03-13 Thread Pamod Amarakoon
Thank you Lars

On Mar 13, 2017 11:40 PM, "Lars Helge Øverland"  wrote:

> Hi all,
>
> a critical vulnerability has been detected in one of the software
> libraries used by DHIS 2. This vulnerability allows an attacker to run
> remote commands on the server as the user running Tomcat/DHIS 2.
>
> We have patched all DHIS 2 versions from 2.21 to 2.26 / master. You can
> find new WAR file builds here:
>
> https://www.dhis2.org/downloads
>
> We strongly recommend all DHIS 2 server admins to *upgrade immediately*
> to a patched version.
>
> Keep in mind that your server might already be compromised. As a result
> one should look for suspicious activity on the server (bandwidth usage, tmp
> folders, etc). If you run Tomcat as a user with sudo privileges (not
> recommended) this means that your server might be fully compromised. To be
> on the absolute safe side it might be necessary to do a full wipe and
> re-install of your server environment.
>
> More info on the exploit:
>
> - https://arstechnica.com/security/2017/03/critical-
> vulnerability-under-massive-attack-imperils-high-impact-sites/
>
> - http://www.javaworld.com/article/3179215/security/
> hackers-exploit-apache-struts-vulnerability-to-compromise-
> corporate-web-servers.html#tk.rss_all
>
>
> We are sorry about this. The vulnerable library is the Struts2 web
> framework, which we are in the process of writing out of the system.
>
> regards,
>
> Lars
>
>
>
> --
> 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-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] [Dhis2-users] Analyze across events

2017-04-10 Thread Pamod Amarakoon
Hi Markus,

What happens when you add enrollment date in defining program indicator and
also select the compulsory time dimension in pivot table. Just confused as
to what may take precedence.

eg: In Pramil's case,

He has a registration stage with an enrollment date and he wants to analyze
the outcome event status of another program stage. Say he wants to follow a
cohort registered in 2016Q1 who's outcome will only be available in a
different program stage in 2017Q2, could this be achieved using Program
indicator in pivot table.

Thanx.

On Mon, Apr 10, 2017 at 1:04 PM, Pramil Liyanage  wrote:

> Thanks Markus. I'm on 2.25. Will update to 2.26 and try. Will get back to
> you if any issue. Thanks again.
>
> Pramil
>
> On Mon, Apr 10, 2017 at 12:59 PM, Markus Bekken  wrote:
>
>> Hi there Pramil,
>> if you are on version 2.26 or later you can make a program indicator with
>> the "Enrollment" analytics type:
>>
>> This will let you compare data from different events within the same
>> enrollment. The enrollment date is used as the aggregation date when
>> looking at the data in a pivot.
>>
>> Hope this helps, get back if you have any further questions.
>>
>> Best regards,
>> Markus
>>
>>
>> 7. apr. 2017 kl. 21.48 skrev Pramil Liyanage :
>>
>> Hi,
>>
>> I need to analyze data across variables in two events in a program with
>> multiple stages.
>>
>> For example, I need to find the number of patients marked as cured in 
>> *treatment
>> outcome* stage,  for a cohort registered during a specified time. Can I
>> combine enrollment date or date from another event (e.g. *registration
>> event*)? Event reports will aggregate to the event, *treatment outcome*,
>> not registration.
>>
>> I know that this is not possible to combine elements from two events in
>> event reports. Is it possible to do this using programme indicators? If so
>> what is the syntax?
>>
>> Regards
>> Pramil
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Regards,
Dr. Pamod Amarakoon
MBBS (SL)
MSc (Biomedical Informatics), EMSc (Health Admin)
Medical Officer in Health Informatics
Nutrition Coordination Division
Ministry of Health, Nutrition and Indigenous Medicine,
Sri Lanka

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analyze across events

2017-04-10 Thread Pamod Amarakoon
Thanx a lot Markus. Adding the feature to query individual dates /last
updated date per program stage is going to solve lot of problems we had
lately. Will surely update you on anything that we might encounter on the
way.

On Mon, Apr 10, 2017 at 2:07 PM, Markus Bekken  wrote:

> Hi Pamod,
> When using enrollment program indicators, the enrollments being aggregated
> in your pivot will be the defined by the enrollment date entered during
> registration/enrollment. Meaning that asking for a report from 2016Q1 will
> give you data for all enrollments that started in this period. You would
> then be able to filter out the enrollments you want using a filter that
> queries the outcome or other data data from one or more program stages
> within the enrollment. The event date of the outcome data event will not be
> taken into account in the current solution.
>
> Created a JIRA issue to support aggregating on different dates in the
> enrollment(this had been planned for a while but not documented):
> DHIS2-1398 <https://jira.dhis2.org/browse/DHIS2-1398>. The last event
> date in the enrollment across all program stages can be accessed in filters
> and expressions calculations by using the V{event_date} variable. However,
> the individual program stages event dates cannot be accessed at the moment,
> so if you use a registration program stage you will not be able to use the
> event date here with enrollment analytics. JIRA issue for adding support
> for this can be found here: DHIS2-1397
> <https://jira.dhis2.org/browse/DHIS2-1397>
>
> Let us know the gaps if your you case doesn't seem to be supported -
> especially interested in the relation between the enrollment and event date
> below. Given the two improvements listed above, can you make a filter or
> expression that covers it?
>
> Best regards
> Markus
>
> 10. apr. 2017 kl. 09.43 skrev Pamod Amarakoon :
>
> Hi Markus,
>
> What happens when you add enrollment date in defining program indicator
> and also select the compulsory time dimension in pivot table. Just confused
> as to what may take precedence.
>
> eg: In Pramil's case,
>
> He has a registration stage with an enrollment date and he wants to
> analyze the outcome event status of another program stage. Say he wants to
> follow a cohort registered in 2016Q1 who's outcome will only be available
> in a different program stage in 2017Q2, could this be achieved using
> Program indicator in pivot table.
>
> Thanx.
>
> On Mon, Apr 10, 2017 at 1:04 PM, Pramil Liyanage 
> wrote:
>
>> Thanks Markus. I'm on 2.25. Will update to 2.26 and try. Will get back to
>> you if any issue. Thanks again.
>>
>> Pramil
>>
>> On Mon, Apr 10, 2017 at 12:59 PM, Markus Bekken  wrote:
>>
>>> Hi there Pramil,
>>> if you are on version 2.26 or later you can make a program indicator
>>> with the "Enrollment" analytics type:
>>> 
>>>
>>> This will let you compare data from different events within the same
>>> enrollment. The enrollment date is used as the aggregation date when
>>> looking at the data in a pivot.
>>>
>>> Hope this helps, get back if you have any further questions.
>>>
>>> Best regards,
>>> Markus
>>>
>>>
>>> 7. apr. 2017 kl. 21.48 skrev Pramil Liyanage :
>>>
>>> Hi,
>>>
>>> I need to analyze data across variables in two events in a program with
>>> multiple stages.
>>>
>>> For example, I need to find the number of patients marked as cured in 
>>> *treatment
>>> outcome* stage,  for a cohort registered during a specified time. Can I
>>> combine enrollment date or date from another event (e.g. *registration
>>> event*)? Event reports will aggregate to the event, *treatment outcome*,
>>> not registration.
>>>
>>> I know that this is not possible to combine elements from two events in
>>> event reports. Is it possible to do this using programme indicators? If so
>>> what is the syntax?
>>>
>>> Regards
>>> Pramil
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-us

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Pamod Amarakoon
Dear Marcus,

Want to clarify something.

Suppose for example Child A has been marked positive for a disease in
October 2016 and he has not turned up for further clinic followups. If we
configure the program indicator the way you mentioned and select period
dimension as last 12 months from pivot table and consider the output, we
are interested in obtaining the cross sectional view of number of affected
children at a given time.

Will the child A only be calculated for the month of October 2016 or will
he be counted on subsequent months as well. (In the output we are expecting
to see the prevalence of the disease per month).

Thank you

On Mon, Apr 10, 2017 at 2:47 PM, Markus Bekken  wrote:

> Hi there Chathura,
>
> it seems that the query you want to make below can be achieved with
> enrollment program indicators. Assuming the program is built as a multiple
> event with registration, and the DE1 is part of a repeating program stage,
> the inherent properties of enrollment program indicators covers much of
> what you want. Each child will be counted only once, and only the latest
> value of D1 will be considered for each child.
>
> Can you for example try making a program indicator with analytics type
> "Enrollment", aggregation type "Sum" and the expression being the value of
> DE1? Then you can use pivot or the API to query and see if the results
> match your expectation.
>
> Markus
>
> 1. apr. 2017 kl. 10.58 skrev chathura widanage  >:
>
> Hi,
>
> We are currently using DHIS2 to track nutrition problems of children under
> 5 years.
>
> Assume we have only two children in the database and DE1 be a certain
> condition that we monitor continuously,
>
> child 1 -> [event 1, DE1=1, time=t1] [event 2 - DE1=1,time=t2] [event 3 -
> DE1=0,time=t3]
> child 2 -> [event 1, DE1=0, time=t1] [event 2 - DE1=0,time=t2] [event 3 -
> DE1=0,time=t3]
>
> Now if I call "events/aggregate/?dimension=*DE1*:EQ:1&startDate=*T1*
> &endDate=*T2*&dimension=ou:", is there a parameter that we can set
> in the query to consider only the last value of the data element in the
> chosen event series.
>
> eg :
>
> case
> T1
> T2
> Result
> *Expected result*
> 1
> t1
> t1+delta
> 1
> *1*
> 2
> t1
> t2+delta
> 2
> *1*
> 3
> t1
> t3+delta
> 2
> *0*
> 4
> t2
> t3+delta
> 1
> *0*
>
> case 1 : child 1 has the condition (because DE1=1), hence result =1
> case 2 : child 1 still has the condition, but we want to consider him only
> once.
> case 3 : child 1 has got rid of the condition, so we don't want to
> consider him for the results
>
> Why we need this :  we want to analyze the state of org unit during a
> specific period of time and draw a trend chart to determine whether
> measures taken to improve child health has actually worked or not.
>
> 
>  And also we need to compare the identified risk factors graphically, so
> we know which area should get the highest focus or attention.
>
> 
>
> Please let us know whether above results can be achieved using API version
> 2.26.
> Currently we are using SQL Views (2 SQL views + 1 Query) to generate above
> results, but that is extremely inefficient and expensive.
>
> Thanks
>
>
>
> --
> Best Regards,
>
> *Chathura Widanage,*
> Undergraduate,
> Department of Computer Science and Engineering,
> University of Moratuwa,
> Sri Lanka
>
> <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
>   <http://facebook.com/chathura.widanage>
> <https://plus.google.com/u/0/109418781686423002025>
> <https://github.com/chathurawidanage>
> ___
> 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
>
>


-- 
Regards,
Dr. Pamod Amarakoon
MBBS (SL)
MSc (Biomedical Informatics), EMSc (Health Admin)
Medical Officer in Health Informatics
Nutrition Coordination Division
Ministry of Health, Nutrition and Indigenous Medicine,
Sri Lanka

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
r

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Pamod Amarakoon
Dear Markus,

If I elaborate more, suppose there are 6 children A,B,C,D,E and F.
A, B, and C are enrolled to the program in July 2016 being positive for the
disease X (yes/no DE)
D,E gets enrolled to programme in August 2016 also being positive for X
F gets enrolled in September 2016 being positive for X.

All the 6 children are being monthly followed up to assess the existence of
the Disease X.

B gets cured of disease X in January 2017and enrollment gets completed.
D is lost to follow up from October 2016.
A, C, E and F are being followed up till  now and all positive for Disease
X.
Although children D has not turned up at clinic we still consider him as
positive for Disease X.

So what I'm interested is to develop a table or trend chart (line chart)
for prevalence (old+new) of Disease X in the given community. Should be
something like below

July 2016 - *3*
August 2016 - *5*
September 2016 - *6*
October 2016 - *6*
November 2016 - *6*
December 2016 - *6*
January 2017 - *5*
February 2017 - *5*
March 2017 - *5*
April 2017 - *5*

Is it possible to get this output using a program indicator.

Thank you.

On Mon, Apr 10, 2017 at 5:53 PM, Markus Bekken  wrote:

> Dear Pamod,
> to put it simply - if you use October 2016 as reporting date and display
> this enrollment program indicator, the pivot will be populated only with
> the data for the children enrolled in October 2016. The child enrolled in
> October will not show up un the numbers for November. If you want to make a
> report of all currently positive children, you would have to define a long
> enough reporting period to capture all enrollment dates, and filter out
> anyone not positive.
>
> As a reminder there is a planned improvement to allow other dates to be
> the basis of aggregation: DHIS2-1398
> <https://jira.dhis2.org/browse/DHIS2-1398>
>
> Curious to hear how this covers your use case.
>
> Markus
>
> 10. apr. 2017 kl. 13.37 skrev Pamod Amarakoon :
>
> Dear Marcus,
>
> Want to clarify something.
>
> Suppose for example Child A has been marked positive for a disease in
> October 2016 and he has not turned up for further clinic followups. If we
> configure the program indicator the way you mentioned and select period
> dimension as last 12 months from pivot table and consider the output, we
> are interested in obtaining the cross sectional view of number of affected
> children at a given time.
>
> Will the child A only be calculated for the month of October 2016 or will
> he be counted on subsequent months as well. (In the output we are expecting
> to see the prevalence of the disease per month).
>
> Thank you
>
> On Mon, Apr 10, 2017 at 2:47 PM, Markus Bekken  wrote:
>
>> Hi there Chathura,
>>
>> it seems that the query you want to make below can be achieved with
>> enrollment program indicators. Assuming the program is built as a multiple
>> event with registration, and the DE1 is part of a repeating program stage,
>> the inherent properties of enrollment program indicators covers much of
>> what you want. Each child will be counted only once, and only the latest
>> value of D1 will be considered for each child.
>>
>> Can you for example try making a program indicator with analytics type
>> "Enrollment", aggregation type "Sum" and the expression being the value of
>> DE1? Then you can use pivot or the API to query and see if the results
>> match your expectation.
>>
>> Markus
>>
>> 1. apr. 2017 kl. 10.58 skrev chathura widanage <
>> chathurawidan...@gmail.com>:
>>
>> Hi,
>>
>> We are currently using DHIS2 to track nutrition problems of children
>> under 5 years.
>>
>> Assume we have only two children in the database and DE1 be a certain
>> condition that we monitor continuously,
>>
>> child 1 -> [event 1, DE1=1, time=t1] [event 2 - DE1=1,time=t2] [event 3 -
>> DE1=0,time=t3]
>> child 2 -> [event 1, DE1=0, time=t1] [event 2 - DE1=0,time=t2] [event 3 -
>> DE1=0,time=t3]
>>
>> Now if I call "events/aggregate/?dimension=*DE1*:EQ:1&startDate=*T1*
>> &endDate=*T2*&dimension=ou:", is there a parameter that we can set
>> in the query to consider only the last value of the data element in the
>> chosen event series.
>>
>> eg :
>>
>> case
>> T1
>> T2
>> Result
>> *Expected result*
>> 1
>> t1
>> t1+delta
>> 1
>> *1*
>> 2
>> t1
>> t2+delta
>> 2
>> *1*
>> 3
>> t1
>> t3+delta
>> 2
>> *0*
>> 4
>> t2
>> t3+delta
>> 1
>> *0*
>>
>> case 1 : child 1 has the condition (because DE1=1), hence result =

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Pamod Amarakoon
Forgot to add we also need to consider the fact that B gets positive for
the disease again in May 2017 where we enroll him again and the total
becomes *6* again.

Thanx.

On Mon, Apr 10, 2017 at 6:06 PM, Pamod Amarakoon  wrote:

> Dear Markus,
>
> If I elaborate more, suppose there are 6 children A,B,C,D,E and F.
> A, B, and C are enrolled to the program in July 2016 being positive for
> the disease X (yes/no DE)
> D,E gets enrolled to programme in August 2016 also being positive for X
> F gets enrolled in September 2016 being positive for X.
>
> All the 6 children are being monthly followed up to assess the existence
> of the Disease X.
>
> B gets cured of disease X in January 2017and enrollment gets completed.
> D is lost to follow up from October 2016.
> A, C, E and F are being followed up till  now and all positive for Disease
> X.
> Although children D has not turned up at clinic we still consider him as
> positive for Disease X.
>
> So what I'm interested is to develop a table or trend chart (line chart)
> for prevalence (old+new) of Disease X in the given community. Should be
> something like below
>
> July 2016 - *3*
> August 2016 - *5*
> September 2016 - *6*
> October 2016 - *6*
> November 2016 - *6*
> December 2016 - *6*
> January 2017 - *5*
> February 2017 - *5*
> March 2017 - *5*
> April 2017 - *5*
>
> Is it possible to get this output using a program indicator.
>
> Thank you.
>
> On Mon, Apr 10, 2017 at 5:53 PM, Markus Bekken  wrote:
>
>> Dear Pamod,
>> to put it simply - if you use October 2016 as reporting date and display
>> this enrollment program indicator, the pivot will be populated only with
>> the data for the children enrolled in October 2016. The child enrolled in
>> October will not show up un the numbers for November. If you want to make a
>> report of all currently positive children, you would have to define a long
>> enough reporting period to capture all enrollment dates, and filter out
>> anyone not positive.
>>
>> As a reminder there is a planned improvement to allow other dates to be
>> the basis of aggregation: DHIS2-1398
>> <https://jira.dhis2.org/browse/DHIS2-1398>
>>
>> Curious to hear how this covers your use case.
>>
>> Markus
>>
>> 10. apr. 2017 kl. 13.37 skrev Pamod Amarakoon :
>>
>> Dear Marcus,
>>
>> Want to clarify something.
>>
>> Suppose for example Child A has been marked positive for a disease in
>> October 2016 and he has not turned up for further clinic followups. If we
>> configure the program indicator the way you mentioned and select period
>> dimension as last 12 months from pivot table and consider the output, we
>> are interested in obtaining the cross sectional view of number of affected
>> children at a given time.
>>
>> Will the child A only be calculated for the month of October 2016 or will
>> he be counted on subsequent months as well. (In the output we are expecting
>> to see the prevalence of the disease per month).
>>
>> Thank you
>>
>> On Mon, Apr 10, 2017 at 2:47 PM, Markus Bekken  wrote:
>>
>>> Hi there Chathura,
>>>
>>> it seems that the query you want to make below can be achieved with
>>> enrollment program indicators. Assuming the program is built as a multiple
>>> event with registration, and the DE1 is part of a repeating program stage,
>>> the inherent properties of enrollment program indicators covers much of
>>> what you want. Each child will be counted only once, and only the latest
>>> value of D1 will be considered for each child.
>>>
>>> Can you for example try making a program indicator with analytics type
>>> "Enrollment", aggregation type "Sum" and the expression being the value of
>>> DE1? Then you can use pivot or the API to query and see if the results
>>> match your expectation.
>>>
>>> Markus
>>>
>>> 1. apr. 2017 kl. 10.58 skrev chathura widanage <
>>> chathurawidan...@gmail.com>:
>>>
>>> Hi,
>>>
>>> We are currently using DHIS2 to track nutrition problems of children
>>> under 5 years.
>>>
>>> Assume we have only two children in the database and DE1 be a certain
>>> condition that we monitor continuously,
>>>
>>> child 1 -> [event 1, DE1=1, time=t1] [event 2 - DE1=1,time=t2] [event 3
>>> - DE1=0,time=t3]
>>> child 2 -> [event 1, DE1=0, time=t1] [event 2 - DE1=0,time=t2] [event 3
>>> - DE1=0,time=t3]
>>>
>>> Now if I call "events/aggregate/

[Dhis2-devs] Error in Embedding GIS Map on Web Page : 2.26

2017-04-15 Thread Pamod Amarakoon
Dear All,

I tried to embed a GIS map on an external web page using the code that is
generated from GIS app after providing public access permission.

There seems to be an issue with the css. dhis2-cdn.org doesn't have the CSS
files for version 2.26

Just to try out, I used css files from an available previous version and
proceeded. But that also didn't work and console showed following errors.
[image: Inline image 1]

What may be the reason the maps are not loading. The html file with the
generated code with the css files for previous versions attached.

Thank you
-- 
Regards,
Pamod

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.









___
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] Interactive Dashboard app

2017-04-27 Thread Pamod Amarakoon
Hi Georgi,

Is it the HISP Tanzania product that ur referring to,
http://www.hisptanzania.org/#/product-details/idashboard

On Fri, Apr 28, 2017 at 1:49 AM, Georgi Chakarov  wrote:

> Hi all,
>
>
>
> In the DHIS2 demo version (https://play.dhis2.org/) there is an app
> called Interactive Dashboard.
>
> Does anyone have an idea where to get this app from and how to install?
>
>
>
> Thanks,
>
>
>
> Georgi
>
>
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x 104
> <+1%20647-478-5634> | LogicalOutcomes c/o Centre for Social Innovation,
> 720 Bathurst Street, Toronto Canada M5S 2R4 | *You may unsubscribe from
> receiving commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* 
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Regards,
Dr. Pamod Amarakoon
MBBS (SL)
MSc (Biomedical Informatics), EMSc (Health Admin)
Medical Officer in Health Informatics
Nutrition Coordination Division
Ministry of Health, Nutrition and Indigenous Medicine,
Sri Lanka

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Julhas,

Thank you very much. I actually needed orgUnitId to call web-api. Iused the
following code to get it done. Seems to work on data entry screen.

var ouselect = $('.selected').attr('href');
var orgid = ouselect.match(/"([^"]+)"/)[1];



On Mon, Nov 16, 2015 at 3:39 PM, Julhas Sujan 
wrote:

> Hi Pamod,
>
> Please paste the following code in your dataentry screen and check the
> result from console. It will show the selected organization unit and period:
>
> 
>
> dhis2.util.on( 'dhis2.de.event.formReady', function( event, aglAzf2x2bF  )
> {
>
>var orgName = $( '#selectedOrganisationUnit' ).val();
>console .log('Org Name: '+orgName );
>var periodName = $( '#selectedPeriodId :selected' ).text();
>console.log('Period:  '+periodName);
>
> });
> 
>
>
> If you need more information please let me know.
>
> Thanks
> Julhas
>
> On Mon, Nov 16, 2015 at 3:10 PM, Pamod Amarakoon  wrote:
>
>> Hi Julhas,
>>
>> I managed to get most of the stuff figured out to get the above
>> functionality done. Just need a quick help if you are not busy. How to
>> capture the selected org unit ID from DOM at data entry screen. I could
>> capture org unit name from input box but id doesn't contain
>> organisationUnit ID.
>>
>> Thank you
>>
>> On Sun, Nov 15, 2015 at 7:50 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Sure. Thanx Julhas.
>>>
>>> On Sun, Nov 15, 2015 at 7:15 PM, Julhas Sujan 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Thank you very much. I got your point. It is possible but u need to
>>>> call internal API from DHIS2 data entry screen and api will give you the
>>>> last day mid night total.
>>>>
>>>> You need to use JavaScript to auto save this extracted data. I am too
>>>> much busy with my recent project. You may organize this following things:
>>>>
>>>> 1. Create dataset and data elements and make elements group
>>>> 2. Assign organization Unit and
>>>> 3. Design Data entry Screen
>>>>
>>>> Develop the mentioned points in your development server and send me
>>>> this credentials. I will develop this api in your development when i will
>>>> free.
>>>>
>>>>
>>>> Thanks
>>>> Julhas
>>>>
>>>>
>>>>
>>>> On Sun, Nov 15, 2015 at 7:36 PM, Pamod Amarakoon 
>>>> wrote:
>>>>
>>>>> Hi Julhas,
>>>>>
>>>>> There is a data set which records number and category of in ward
>>>>> patients in a hospital. for example following  are few data elements in 
>>>>> the
>>>>> data set.
>>>>> 1. mid night total
>>>>> 2. new admissions
>>>>> 3. transfer out
>>>>> 4. transfer in
>>>>> 5. deaths
>>>>> 6. discharges
>>>>> 7. total in ward
>>>>>
>>>>> therefore, today's mid night total would be yesterday's total in ward
>>>>> patients. therefore, rather than manually entering mid night total, it
>>>>> would avoid typing errors if we can retrieve that from yesterday's data 
>>>>> set.
>>>>>
>>>>> the web api query u work could be used to obtain the value. i was just
>>>>> wondering of 2 things.
>>>>>
>>>>> 1. whether relative periods like last_month, yesterday are not
>>>>> supported
>>>>> 2. whether filtering could be used to obtain the specific dataElement
>>>>> value.
>>>>> eg:
>>>>> https://play.dhis2.org/demo/api/dataValueSets?dataSet=BfMAe6Itzgt&period=201506&orgUnit=DiszpKrYNg8&filter=dataElement:eq:s46m5MS0hxu
>>>>> but above does not work
>>>>>
>>>>> Thanx a lot.
>>>>>
>>>>> On Sun, Nov 15, 2015 at 3:35 PM, Julhas Sujan >>>> > wrote:
>>>>>
>>>>>> Hi Pamod,
>>>>>>
>>>>>> Sure, I will check. Can you please give me the detail business logic
>>>>>> that you want to do. I need more conceptualization on your problem/api
>>>>>> issue.
>>>>>>
>>>>>> Thanks
>>>>>> Julhas
>>>>>>
>>>>>> On Sun, Nov 15, 2015 at 3:39 PM, Pamod Amar

Re: [Dhis2-devs] [Dhis2-users] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Hannan,

Thank you for the reply. Use case was to auto fill a dataElement from a
value of a previous Day/Month dataSet, will try your lead with indicators

On Mon, Nov 16, 2015 at 4:07 PM, Hannan Khan  wrote:

> Dear Pamod
>
> To get a indicator through web API is by calling using uid of the
> indicator. for example:
>
> https://play.dhis2.org/demo/api/indicators/ReUHfIn0pTQ will give you 'ANC
> 1-3 Dropout Rate'; the last 11 digit is the uid of the indicator.
>
> Indicator values are not saved in tables, DHIS2 calculate indicators on
> the fly from analytics.
>
> Currently DHIS2 data visualizer, Pivot Table and GIS doesn't provide
> previous day reporting, but programatically you can call.
>
> Regards
>
> Hannan
> HISP Bangladesh
>
> On Sun, Sep 20, 2015 at 1:22 PM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> 1. what is the format to get a value of an aggregated indicator of a
>> particular data set using web - API. Is it stored in database or calculated
>> in real time
>>
>> 2. is the relative period available for Previous Day (yesterday).
>>
>> Thank you
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>> [image: http://ehealthasia.org] <http://ehealthasia.org>
>>
>>
>> _______
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Dear Julhas,

Thanx a lot for the code. I'll check this out

I was working on the following code.


$(document).ready(function() {

function getPreVal(){
var orgunit = selectedOrganisationUnit.value;
console.log(orgunit);
var ouselect = $('.selected').attr('href');
var orgid = ouselect.match(/"([^"]+)"/)[1];
console.log(orgid);
var selectperiod = selectedPeriodId.value;
var calperiod = selectperiod-1;
$.ajax({
  url: '
<a  rel="nofollow" href="http:///api/dataValueSets?dataSet=NaUf5vEr5aA&period=">http:///api/dataValueSets?dataSet=NaUf5vEr5aA&period=</a>'+calperiod+'&orgUnit='+orgid+'
',
  type: 'GET',
  success: function(data) {
console.log(data);
console.log(data.dataValues[0].value);
console.log(selectedPeriodId.value);
var tval=(data.dataValues[0].value);
$("#aG2h8rVbPuN-kCL5HdqbH9d-val").val(tval);
$("#aG2h8rVbPuN-kCL5HdqbH9d-val").change();
  },
  error: function(e) {
//called when there is an error
console.log(e.message);
  }
});
}

$('#selectedOrganisationUnit').change(function(){
getPreVal();
});
$('#selectedPeriodId').change(function(){
getPreVal();
});
//
});


I still have to work out on a way to get previous day's value.(here it just
subtract 1 from the selected period). There is another dataSet which
records daily values. Was just wondering whether relative periods can be
used for this to get previous day's value.

On Mon, Nov 16, 2015 at 4:21 PM, Julhas Sujan 
wrote:

> You will get period look like: November-2015. You need last day or month
> data. If month you may convert it as a simple way for 201510 as follows:
>
> if(periodName=='December 2015'){
>  var periodN="201511";
> }else if(periodName=='November 2015'){
>  var periodN="201510";
> }else if(periodName=='October 2015'){
>  var periodN="201509";
> }else if(periodName=='September 2015'){
>  var periodN="201508";
> }else if(periodName=='August 2015'){
>  var periodN="201507";
> }else if(periodName=='July 2015'){
>  var periodN="201506";
> }else if(periodName=='June 2015'){
>  var periodN="201505";
> }else if(periodName=='May 2016'){
>  var periodN="201604";
> }else if(periodName=='April 2016'){
>  var periodN="201603";
> }else if(periodName=='March 2016'){
>  var periodN="201602";
> }else if(periodName=='February 2016'){
>  var periodN="201601";
> }else if(periodName=='January 2016'){
>  var periodN="201512";
> }
>
> Use the following code for API:
> jQuery.get("../api/organisationUnits.json?query="+orgName+"",function(json){
>
> $.each(json, function(key, value){
>  var arr = [];
>  for(var x in value){
>arr.push(value[x]);
>  }
> var id=value[x]["id"];//console.log('ID: '+id);
>
>
> jQuery.get("../api/analytics?dimension=dx:"+elementId+"&dimension=pe:"+periodN+"&dimension=ou:"+id+"",function(json){
> //console.log(json);
>  var jsonRows=json.rows;//console.log(jsonRows);// Getting json
> rows data
>  var jsonStr = jsonRows.toString();// Converting fetched data to
> String
>  var rowsSeperation= new Array();// jsonStr is an array with comma
>  rowsSeperation= jsonStr .split(",");// Array stored string comma
> separated data
>
> });
> });
>
> You can extract last day data from: rowsSeperation based on your api
> parameters.
>
> Hope it will work perfectly. If not please let me know.
>
> Thanks
> Julhas
>
> On Mon, Nov 16, 2015 at 4:09 PM, Julhas Sujan 
> wrote:
>
>> Hi Pamod,
>>
>> Please paste the following code in your dataentry screen and check the
>> result from console. It will show the selected organization unit and period:
>>
>> 
>>
>> dhis2.util.on( 'dhis2.de.event.formReady', function( event, aglAzf2x2bF
>> ) {
>>
>>var orgName = $( '#selectedOrganisationUnit' ).val();
>>console .log('Org Name: '+orgName );
>>var periodName = $( '#selectedPeriodId :selected' ).text();
>>console.log('Period:  '+periodName);
>>
>> });
>> 
>>
>>
>> If you need more information please let me know.
>>
>> Thanks
>> Julhas
>>
>> On Mon, Nov 16, 2015 at 3:10 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Hi

Re: [Dhis2-devs] Web API : Get Indicator Value

2015-11-16 Thread Pamod Amarakoon
Hi Julhas,

Thank you very much for the descriptive guide and the codes. Will try them
out :)

On Mon, Nov 16, 2015 at 6:15 PM, Julhas Sujan 
wrote:

> Hi Pamod,
>
> Please check the following links:
>
> Download Guide:
> http://www.julhas.info/dhis2/dataextract/previousmonthdata.pdf
> Download Source Code:
> http://www.julhas.info/dhis2/dataextract/previousmonthdata.zip
>
> If you need more information please let me know.
>
> Thanks
> Julhas
>
> On Mon, Nov 16, 2015 at 5:16 PM, Julhas Sujan 
> wrote:
>
>> Hi Pamod,
>>
>> I am sending you soon the whole code with a business scenario that will
>> be helpful for you. You can easily adapt your business in this script.
>>
>> Thanks
>> Julhas
>>
>> On Mon, Nov 16, 2015 at 5:04 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Dear Julhas,
>>>
>>> Thanx a lot for the code. I'll check this out
>>>
>>> I was working on the following code.
>>>
>>> 
>>> $(document).ready(function() {
>>> 
>>> function getPreVal(){
>>> var orgunit = selectedOrganisationUnit.value;
>>> console.log(orgunit);
>>> var ouselect = $('.selected').attr('href');
>>> var orgid = ouselect.match(/"([^"]+)"/)[1];
>>> console.log(orgid);
>>> var selectperiod = selectedPeriodId.value;
>>> var calperiod = selectperiod-1;
>>> $.ajax({
>>>   url: '
>>> <a  rel="nofollow" href="http:///api/dataValueSets?dataSet=NaUf5vEr5aA&period=">http:///api/dataValueSets?dataSet=NaUf5vEr5aA&period=</a>'+calperiod+'&orgUnit='+orgid+'
>>> ',
>>>   type: 'GET',
>>>   success: function(data) {
>>> console.log(data);
>>> console.log(data.dataValues[0].value);
>>> console.log(selectedPeriodId.value);
>>> var tval=(data.dataValues[0].value);
>>> $("#aG2h8rVbPuN-kCL5HdqbH9d-val").val(tval);
>>> $("#aG2h8rVbPuN-kCL5HdqbH9d-val").change();
>>>   },
>>>   error: function(e) {
>>> //called when there is an error
>>> console.log(e.message);
>>>   }
>>> });
>>> }
>>> 
>>> $('#selectedOrganisationUnit').change(function(){
>>> getPreVal();
>>> });
>>> $('#selectedPeriodId').change(function(){
>>> getPreVal();
>>> });
>>> //
>>> });
>>> 
>>>
>>> I still have to work out on a way to get previous day's value.(here it
>>> just subtract 1 from the selected period). There is another dataSet which
>>> records daily values. Was just wondering whether relative periods can be
>>> used for this to get previous day's value.
>>>
>>> On Mon, Nov 16, 2015 at 4:21 PM, Julhas Sujan 
>>> wrote:
>>>
>>>> You will get period look like: November-2015. You need last day or
>>>> month data. If month you may convert it as a simple way for 201510 as
>>>> follows:
>>>>
>>>> if(periodName=='December 2015'){
>>>>  var periodN="201511";
>>>> }else if(periodName=='November 2015'){
>>>>  var periodN="201510";
>>>> }else if(periodName=='October 2015'){
>>>>  var periodN="201509";
>>>> }else if(periodName=='September 2015'){
>>>>  var periodN="201508";
>>>> }else if(periodName=='August 2015'){
>>>>  var periodN="201507";
>>>> }else if(periodName=='July 2015'){
>>>>  var periodN="201506";
>>>> }else if(periodName=='June 2015'){
>>>>  var periodN="201505";
>>>> }else if(periodName=='May 2016'){
>>>>  var periodN="201604";
>>>> }else if(periodName=='April 2016'){
>>>>  var periodN="201603";
>>>> }else if(periodName=='March 2016'){
>>>>  var periodN="201602";
>>>> }else if(periodName=='February 2016'){
>>>>  var periodN="201601";
>>>> }else if(periodName=='January 2016'){
>>>>  var periodN="201512";
>>>> }
>>>>
>>>> Use the following code for API:
>>>> jQuery.get("../api/organisationUnits.json?query="+orgName+"&qu

[Dhis2-devs] Data Approval for Programmes

2015-12-08 Thread Pamod Amarakoon
Dear All,

Is there a provision to add data accept/approval for program data. The use
case is facility manager should approve data entered for a program stage by
data entry operator prior to be viewed by district manager or province
manager.

Thanx.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Data Approval for Programmes

2015-12-09 Thread Pamod Amarakoon
Thank you for the update Lars

On Wed, Dec 9, 2015 at 5:48 PM, Lars Helge Øverland 
wrote:

> HI Pamod,
>
> yes we have this feature coming in 2.22:
>
> https://blueprints.launchpad.net/dhis2/+spec/approval-for-event-data
>
> regards,
>
> Lars
>
>
> On Wed, Dec 9, 2015 at 4:26 AM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> Is there a provision to add data accept/approval for program data. The
>> use case is facility manager should approve data entered for a program
>> stage by data entry operator prior to be viewed by district manager or
>> province manager.
>>
>> Thanx.
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Bangladesh web portal using dhis2 plugins

2015-12-23 Thread Pamod Amarakoon
Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan 
wrote:

> Dear Munna Viyya,
>
> It will be helpful for us. Thank you very much.
>
> *Best Regards*
> *Julhas Sujan*
> Java Consultant
> Management Science for Health(MSH)
> USAID, Dhaka, Bangladesh
> Cell: +8801989 442856
> Skype: julhas08
> Web: www.julhas.info
> ​
> www.msh.org http://siapsprogram.org/wherewework/bangladesh/
>
> On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah 
> wrote:
>
>> Dear all,
>>
>> I am pleased to share with you the Bangladesh portal which we have
>> created based on the live data from dhis2 using dhis2 plugins. Please visit
>> the following link to see the portal,
>> http://103.247.238.81:8080/portal/index.html
>>
>> We highly appreciate the help from the community. We have got quick
>> support from the community during the development.
>>
>> I would like to share my knowledge and experience of the development
>> process, i believe this will be helpful for others,
>>
>> Solution
>> ---
>> 1) Please add the full address in the CORS whitelist,
>> [image: Inline image 3]
>>
>> 2) Its better to download the plugins and attach those from local folder.
>>
>> 3) I have used the following version of the plugins,
>>
>> > rel="stylesheet" type="text/css" 
>> href="//apps.dhis2.org/demo/dhis-web-commons/javascripts/ext-ux/carousel/css/carousel.css"
>>  />> src="js/plugins/v17/v217_openlayers_OpenLayers.js">> src="js/plugins/Carousel.js">> src="js/plugins/v21/v221_plugin_chart.js">> src="js/plugins/v21/v221_plugin_table.js">> src="js/plugins/v17/v217_plugin_map.js">
>>
>> 4) Please use the username and password inside the get method (see the
>> examples),
>>
>> DHIS.getChart({ crossDomain: true, username: 'view', password: 'DGHS1234', 
>> uid: 'oSNtDZNZGIp', el: 'chartA1', url: base });
>>
>> 5) We have created a reporting server where all the live data sync
>> everyday in one instance of DHIS2. We have hosted the portal in the same
>> reporting server.
>>
>> Please let me know if i can provide any support regarding this issue.
>>
>> --
>> Regards,
>>
>> *Mohammad Ullah*
>>
>> -
>> Technical Advisor (HIS) – Health Sector
>> Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
>> German House
>> House 10/A-2, Road 90
>> Gulshan 2, Dhaka 1212, Bangladesh
>>
>> T+880 9666701000
>> F+880 28823099
>> M+880 196 31 56 988
>> Webhttp://lnkd.in/gQrxXz
>> Skypemohammad_ullah_giz
>>
>> Office Location:
>> Room # 304, Shahid Dr. Milan Bhavan,
>> MIS, DGHS of MoHFW, Mohakhali, Dhaka.
>>
>> T02 8816412 (ex:118)
>>
>>
>> ___
>> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Dear All,

I tried setting up email on an instance with SMTP using Google Apps
settings. Following are the settings I used.

hostname: smtp.gmail.com
port: 465
username: x...@xxx.net
password: 
Email sender: x...@xxx.net
TLS enabled

But, testing email is never received at my emaiil account.

When I checked catalina.out it contained following errors.

* INFO  2015-12-28 16:03:45,413 Sending email to user: XXX with email
address: x...@xxx.net to host: smtp.gmail.com:1 (EmailMessageSender.java
[SimpleAsyncTaskExecutor-15])
* WARN  2015-12-28 16:04:45,491 Could not send email: Sending the email to
the following server failed : smtp.gmail.com:1,
org.apache.commons.mail.EmailException: Sending the email to the following
server failed : smtp.gmail.com:1
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
at org.apache.commons.mail.Email.send(Email.java:1437)
at
org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
smtp.gmail.com, port: 1;
  nested exception is:
java.net.SocketTimeoutException: connect timed out
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
... 12 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at
com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:317)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
... 19 more
 (EmailMessageSender.java [SimpleAsyncTaskExecutor-15])

//

it contains could not connect to SMTP host and connection timed out. Do I
need to set anything else on Tomcat config? What am I missing here.

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Thanx Morten. By bad, wrong port.

But when I selected port 587, it throws out following error.

* WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot connect
to a port number that is less than 1 ( 0 ),
java.lang.IllegalArgumentException: Cannot connect to a port number that is
less than 1 ( 0 )
at org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
at
org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
at
org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:127)
at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
 (EmailMessageSender.java [SimpleAsyncTaskExecutor-24])

On Mon, Dec 28, 2015 at 4:18 PM, Morten Olav Hansen 
wrote:

> Hi
>
> Could it be that its the wrong port? it seems like TLS requires port 587
> [1] ?
>
> [1] http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 11:44 AM, Pamod Amarakoon 
> wrote:
>
>> Dear All,
>>
>> I tried setting up email on an instance with SMTP using Google Apps
>> settings. Following are the settings I used.
>>
>> hostname: smtp.gmail.com
>> port: 465
>> username: x...@xxx.net
>> password: 
>> Email sender: x...@xxx.net
>> TLS enabled
>>
>> But, testing email is never received at my emaiil account.
>>
>> When I checked catalina.out it contained following errors.
>>
>> * INFO  2015-12-28 16:03:45,413 Sending email to user: XXX with email
>> address: x...@xxx.net to host: smtp.gmail.com:1 (EmailMessageSender.java
>> [SimpleAsyncTaskExecutor-15])
>> * WARN  2015-12-28 16:04:45,491 Could not send email: Sending the email
>> to the following server failed : smtp.gmail.com:1,
>> org.apache.commons.mail.EmailException: Sending the email to the following
>> server failed : smtp.gmail.com:1
>> at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
>> at org.apache.commons.mail.Email.send(Email.java:1437)
>> at
>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:150)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>> at
>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
>> smtp.gmail.com, port: 1;
>>   nested exception is:
>> java.net.SocketTimeoutException: connect timed out
>> at
>> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
>> at
>> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
>> at javax.mail.Service.connect(Service.java:317)
>> at javax.mail.Service.connect(Service.java:176)
>> at javax.mail.Service.connect(Service.java:125)
>> at javax.mail.Transport.send0(Transport.java:194)
>> at javax.mail.Transport.send(Transport.java:124)
>> at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
>> ... 12 more
>> Caused by: java.net.SocketTimeoutException: connect timed out
>>

Re: [Dhis2-devs] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Thanx Morten,

it's
Version:2.21Build revision:20850Build date:2015-10-26 01:19

On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen 
wrote:

> Ok
>
> What version of DHIS 2? I'm adding in Lars, I think he has set it up for
> gmail before (I haven't).
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon 
> wrote:
>
>> Thanx Morten. By bad, wrong port.
>>
>> But when I selected port 587, it throws out following error.
>>
>> * WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot connect
>> to a port number that is less than 1 ( 0 ),
>> java.lang.IllegalArgumentException: Cannot connect to a port number that is
>> less than 1 ( 0 )
>> at org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
>> at
>> org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
>> at
>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:127)
>> at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>> at
>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.lang.Thread.run(Thread.java:745)
>>  (EmailMessageSender.java [SimpleAsyncTaskExecutor-24])
>>
>> On Mon, Dec 28, 2015 at 4:18 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> Could it be that its the wrong port? it seems like TLS requires port 587
>>> [1] ?
>>>
>>> [1] http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm
>>>
>>> --
>>> Morten
>>>
>>> On Mon, Dec 28, 2015 at 11:44 AM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> I tried setting up email on an instance with SMTP using Google Apps
>>>> settings. Following are the settings I used.
>>>>
>>>> hostname: smtp.gmail.com
>>>> port: 465
>>>> username: x...@xxx.net
>>>> password: 
>>>> Email sender: x...@xxx.net
>>>> TLS enabled
>>>>
>>>> But, testing email is never received at my emaiil account.
>>>>
>>>> When I checked catalina.out it contained following errors.
>>>>
>>>> * INFO  2015-12-28 16:03:45,413 Sending email to user: XXX with email
>>>> address: x...@xxx.net to host: smtp.gmail.com:1
>>>> (EmailMessageSender.java [SimpleAsyncTaskExecutor-15])
>>>> * WARN  2015-12-28 16:04:45,491 Could not send email: Sending the email
>>>> to the following server failed : smtp.gmail.com:1,
>>>> org.apache.commons.mail.EmailException: Sending the email to the following
>>>> server failed : smtp.gmail.com:1
>>>> at
>>>> org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
>>>> at org.apache.commons.mail.Email.send(Email.java:1437)
>>>> at
>>>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:150)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>> at
>>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>>>> at
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>>> at
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>>> at
>>>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExe

[Dhis2-devs] Favourites with Multiple Analysis Org Units

2015-12-28 Thread Pamod Amarakoon
Dear All,

Is it possible to create favorites (pivot table, event visualizer) for
users who are assigned to multiple data analysis org units, when the option
"User org unit" is selected at pivot table/event visualizer.

I tried this on demo server by assigning the user "test1" to both Bo and
Bombali and it seems to analyze only the first org unit "Bo".


​

What's the proper method to follow to get analysis results for users who
are assigned for multiple analysis org units.

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Hi,

It's "0"

On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen 
wrote:

> Could you give me the output of:
>
> SERVER/api/systemSettings/keyEmailPort
>
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon 
> wrote:
>
>> Thanx Morten,
>>
>> it's
>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>
>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Ok
>>>
>>> What version of DHIS 2? I'm adding in Lars, I think he has set it up for
>>> gmail before (I haven't).
>>>
>>> --
>>> Morten
>>>
>>> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Thanx Morten. By bad, wrong port.
>>>>
>>>> But when I selected port 587, it throws out following error.
>>>>
>>>> * WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot
>>>> connect to a port number that is less than 1 ( 0 ),
>>>> java.lang.IllegalArgumentException: Cannot connect to a port number that is
>>>> less than 1 ( 0 )
>>>> at org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
>>>> at
>>>> org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
>>>> at
>>>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:127)
>>>> at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>> at
>>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>>>> at
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>>> at
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>>> at
>>>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>>  (EmailMessageSender.java [SimpleAsyncTaskExecutor-24])
>>>>
>>>> On Mon, Dec 28, 2015 at 4:18 PM, Morten Olav Hansen >>> > wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> Could it be that its the wrong port? it seems like TLS requires port
>>>>> 587 [1] ?
>>>>>
>>>>> [1] http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Mon, Dec 28, 2015 at 11:44 AM, Pamod Amarakoon 
>>>>> wrote:
>>>>>
>>>>>> Dear All,
>>>>>>
>>>>>> I tried setting up email on an instance with SMTP using Google Apps
>>>>>> settings. Following are the settings I used.
>>>>>>
>>>>>> hostname: smtp.gmail.com
>>>>>> port: 465
>>>>>> username: x...@xxx.net
>>>>>> password: 
>>>>>> Email sender: x...@xxx.net
>>>>>> TLS enabled
>>>>>>
>>>>>> But, testing email is never received at my emaiil account.
>>>>>>
>>>>>> When I checked catalina.out it contained following errors.
>>>>>>
>>>>>> * INFO  2015-12-28 16:03:45,413 Sending email to user: XXX with email
>>>>>> address: x...@xxx.net to host: smtp.gmail.com:1
>>>>>> (EmailMessageSender.java [SimpleAsyncTaskExecutor-15])
>>>>>> * WARN  2015-12-28 16:04:45,491 Could not send email: Sending the
>>>>>> email to the following server failed : smtp.gmail.com:1,
>>>>>> org.apache.commons.mail.EmailException: Sending the email to the 
>>>>>> following
>>>>>> server failed : smtp.gmail.com:1
>>>>>> at
>>>>>> org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
>>>>>> at org.apache.commons.mail.Email.send(Email.java:1437)
>>>>>> at
>>>>>> org

Re: [Dhis2-devs] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Dear Morten,

Deleting keyEmailPort from systemsetting table solved the problem.

Thanx a lot !

On Mon, Dec 28, 2015 at 5:15 PM, Morten Olav Hansen 
wrote:

> Ok, could be a bug in the settings app.
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 12:43 PM, Pamod Amarakoon 
> wrote:
>
>> Yes, when trying to send out test email after entering the email settings.
>>
>> On Mon, Dec 28, 2015 at 5:12 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Ok, so is this happening when you are sending out the test email?
>>>
>>> --
>>> Morten
>>>
>>> On Mon, Dec 28, 2015 at 12:40 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> and yes, it's the new settings app I used
>>>>
>>>> On Mon, Dec 28, 2015 at 5:10 PM, Pamod Amarakoon 
>>>> wrote:
>>>>
>>>>> Dear Morten,
>>>>>
>>>>> I toggled between the remaining ports 25 and 465. Both throws out
>>>>>
>>>>> "Caused by: javax.mail.MessagingException: Could not connect to SMTP
>>>>> host: smtp.gmail.com, port: 2;
>>>>>   nested exception is:
>>>>> java.net.SocketTimeoutException: connect timed out
>>>>> "
>>>>> I'll try the method you suggested.
>>>>>
>>>>> On Mon, Dec 28, 2015 at 5:07 PM, Morten Olav Hansen <
>>>>> morte...@gmail.com> wrote:
>>>>>
>>>>>> While not ideal, you could null it out with:
>>>>>> delete from systemsetting where name='keyEmailPort';
>>>>>>
>>>>>> And then it should default to TLS port.
>>>>>>
>>>>>> --
>>>>>> Morten
>>>>>>
>>>>>> On Mon, Dec 28, 2015 at 12:35 PM, Morten Olav Hansen <
>>>>>> morte...@gmail.com> wrote:
>>>>>>
>>>>>>> Right. That's what i suspected, that setting is wrong. Did you use
>>>>>>> the new setting app to set it? could you try and change between the
>>>>>>> different ports and see if the output changes for you?
>>>>>>>
>>>>>>> It could be a bug in the settings app, but I'm not sure. 0 is never
>>>>>>> a valid value for that setting.
>>>>>>>
>>>>>>> --
>>>>>>> Morten
>>>>>>>
>>>>>>> On Mon, Dec 28, 2015 at 12:33 PM, Pamod Amarakoon 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> It's "0"
>>>>>>>>
>>>>>>>> On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen <
>>>>>>>> morte...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Could you give me the output of:
>>>>>>>>>
>>>>>>>>> SERVER/api/systemSettings/keyEmailPort
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Morten
>>>>>>>>>
>>>>>>>>> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon <
>>>>>>>>> pam...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Thanx Morten,
>>>>>>>>>>
>>>>>>>>>> it's
>>>>>>>>>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>>>>>>>>>
>>>>>>>>>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen <
>>>>>>>>>> morte...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Ok
>>>>>>>>>>>
>>>>>>>>>>> What version of DHIS 2? I'm adding in Lars, I think he has set
>>>>>>>>>>> it up for gmail before (I haven't).
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Morten
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon <
>>>>>>>>>>> pam...@gmail.com> wrote:
>>>>>>>>>>>
>

Re: [Dhis2-devs] [Dhis2-users] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Thanx Lars. Will do :)

On Mon, Dec 28, 2015 at 5:24 PM, Lars Helge Øverland 
wrote:

> Hi Pamod,
>
> this was a bug with the settings app which has been fixed. Try upgrading
> to latest 2.21 from dhis2.org/downloads.
>
> regards,
>
> Lars
>
>
> On Mon, Dec 28, 2015 at 12:45 PM, Morten Olav Hansen 
> wrote:
>
>> Ok, could be a bug in the settings app.
>>
>> --
>> Morten
>>
>> On Mon, Dec 28, 2015 at 12:43 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Yes, when trying to send out test email after entering the email
>>> settings.
>>>
>>> On Mon, Dec 28, 2015 at 5:12 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Ok, so is this happening when you are sending out the test email?
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Mon, Dec 28, 2015 at 12:40 PM, Pamod Amarakoon 
>>>> wrote:
>>>>
>>>>> and yes, it's the new settings app I used
>>>>>
>>>>> On Mon, Dec 28, 2015 at 5:10 PM, Pamod Amarakoon 
>>>>> wrote:
>>>>>
>>>>>> Dear Morten,
>>>>>>
>>>>>> I toggled between the remaining ports 25 and 465. Both throws out
>>>>>>
>>>>>> "Caused by: javax.mail.MessagingException: Could not connect to SMTP
>>>>>> host: smtp.gmail.com, port: 2;
>>>>>>   nested exception is:
>>>>>> java.net.SocketTimeoutException: connect timed out
>>>>>> "
>>>>>> I'll try the method you suggested.
>>>>>>
>>>>>> On Mon, Dec 28, 2015 at 5:07 PM, Morten Olav Hansen <
>>>>>> morte...@gmail.com> wrote:
>>>>>>
>>>>>>> While not ideal, you could null it out with:
>>>>>>> delete from systemsetting where name='keyEmailPort';
>>>>>>>
>>>>>>> And then it should default to TLS port.
>>>>>>>
>>>>>>> --
>>>>>>> Morten
>>>>>>>
>>>>>>> On Mon, Dec 28, 2015 at 12:35 PM, Morten Olav Hansen <
>>>>>>> morte...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Right. That's what i suspected, that setting is wrong. Did you use
>>>>>>>> the new setting app to set it? could you try and change between the
>>>>>>>> different ports and see if the output changes for you?
>>>>>>>>
>>>>>>>> It could be a bug in the settings app, but I'm not sure. 0 is never
>>>>>>>> a valid value for that setting.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Morten
>>>>>>>>
>>>>>>>> On Mon, Dec 28, 2015 at 12:33 PM, Pamod Amarakoon >>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> It's "0"
>>>>>>>>>
>>>>>>>>> On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen <
>>>>>>>>> morte...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Could you give me the output of:
>>>>>>>>>>
>>>>>>>>>> SERVER/api/systemSettings/keyEmailPort
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Morten
>>>>>>>>>>
>>>>>>>>>> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon <
>>>>>>>>>> pam...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thanx Morten,
>>>>>>>>>>>
>>>>>>>>>>> it's
>>>>>>>>>>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen <
>>>>>>>>>>> morte...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Ok
>>>>>>>>>>>>
>>>>>>>>>&g

Re: [Dhis2-devs] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Dear Morten,

I toggled between the remaining ports 25 and 465. Both throws out

"Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
smtp.gmail.com, port: 2;
  nested exception is:
java.net.SocketTimeoutException: connect timed out
"
I'll try the method you suggested.

On Mon, Dec 28, 2015 at 5:07 PM, Morten Olav Hansen 
wrote:

> While not ideal, you could null it out with:
> delete from systemsetting where name='keyEmailPort';
>
> And then it should default to TLS port.
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 12:35 PM, Morten Olav Hansen 
> wrote:
>
>> Right. That's what i suspected, that setting is wrong. Did you use the
>> new setting app to set it? could you try and change between the different
>> ports and see if the output changes for you?
>>
>> It could be a bug in the settings app, but I'm not sure. 0 is never a
>> valid value for that setting.
>>
>> --
>> Morten
>>
>> On Mon, Dec 28, 2015 at 12:33 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Hi,
>>>
>>> It's "0"
>>>
>>> On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Could you give me the output of:
>>>>
>>>> SERVER/api/systemSettings/keyEmailPort
>>>>
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon 
>>>> wrote:
>>>>
>>>>> Thanx Morten,
>>>>>
>>>>> it's
>>>>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>>>>
>>>>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen <
>>>>> morte...@gmail.com> wrote:
>>>>>
>>>>>> Ok
>>>>>>
>>>>>> What version of DHIS 2? I'm adding in Lars, I think he has set it up
>>>>>> for gmail before (I haven't).
>>>>>>
>>>>>> --
>>>>>> Morten
>>>>>>
>>>>>> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon 
>>>>>> wrote:
>>>>>>
>>>>>>> Thanx Morten. By bad, wrong port.
>>>>>>>
>>>>>>> But when I selected port 587, it throws out following error.
>>>>>>>
>>>>>>> * WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot
>>>>>>> connect to a port number that is less than 1 ( 0 ),
>>>>>>> java.lang.IllegalArgumentException: Cannot connect to a port number 
>>>>>>> that is
>>>>>>> less than 1 ( 0 )
>>>>>>> at org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
>>>>>>> at
>>>>>>> org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
>>>>>>> at
>>>>>>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:127)
>>>>>>> at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown
>>>>>>> Source)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>>>>> at
>>>>>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>>>>>>> at
>>>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>>>>>> at
>>>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>>>>>> at
>>>>>>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>  (EmailMessageSender.java [SimpleAsyncTaskExecutor-24])
>>>>>>>
>>>>>>> On Mon, Dec 28, 2015 at 4:18 PM, Morten Olav Hansen <
>>>>>>> morte...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi
>>

Re: [Dhis2-devs] Setting up Email

2015-12-28 Thread Pamod Amarakoon
and yes, it's the new settings app I used

On Mon, Dec 28, 2015 at 5:10 PM, Pamod Amarakoon  wrote:

> Dear Morten,
>
> I toggled between the remaining ports 25 and 465. Both throws out
>
> "Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
> smtp.gmail.com, port: 2;
>   nested exception is:
> java.net.SocketTimeoutException: connect timed out
> "
> I'll try the method you suggested.
>
> On Mon, Dec 28, 2015 at 5:07 PM, Morten Olav Hansen 
> wrote:
>
>> While not ideal, you could null it out with:
>> delete from systemsetting where name='keyEmailPort';
>>
>> And then it should default to TLS port.
>>
>> --
>> Morten
>>
>> On Mon, Dec 28, 2015 at 12:35 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Right. That's what i suspected, that setting is wrong. Did you use the
>>> new setting app to set it? could you try and change between the different
>>> ports and see if the output changes for you?
>>>
>>> It could be a bug in the settings app, but I'm not sure. 0 is never a
>>> valid value for that setting.
>>>
>>> --
>>> Morten
>>>
>>> On Mon, Dec 28, 2015 at 12:33 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> It's "0"
>>>>
>>>> On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen >>> > wrote:
>>>>
>>>>> Could you give me the output of:
>>>>>
>>>>> SERVER/api/systemSettings/keyEmailPort
>>>>>
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon 
>>>>> wrote:
>>>>>
>>>>>> Thanx Morten,
>>>>>>
>>>>>> it's
>>>>>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>>>>>
>>>>>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen <
>>>>>> morte...@gmail.com> wrote:
>>>>>>
>>>>>>> Ok
>>>>>>>
>>>>>>> What version of DHIS 2? I'm adding in Lars, I think he has set it up
>>>>>>> for gmail before (I haven't).
>>>>>>>
>>>>>>> --
>>>>>>> Morten
>>>>>>>
>>>>>>> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Thanx Morten. By bad, wrong port.
>>>>>>>>
>>>>>>>> But when I selected port 587, it throws out following error.
>>>>>>>>
>>>>>>>> * WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot
>>>>>>>> connect to a port number that is less than 1 ( 0 ),
>>>>>>>> java.lang.IllegalArgumentException: Cannot connect to a port number 
>>>>>>>> that is
>>>>>>>> less than 1 ( 0 )
>>>>>>>> at org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
>>>>>>>> at
>>>>>>>> org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
>>>>>>>> at
>>>>>>>> org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:127)
>>>>>>>> at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown
>>>>>>>> Source)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>>>>>> at
>>>>>>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>>>>>>>> at
>>>>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>>>>>>> at
>>>>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>>>>>>> at
>>>>>>>> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)

Re: [Dhis2-devs] Setting up Email

2015-12-28 Thread Pamod Amarakoon
Yes, when trying to send out test email after entering the email settings.

On Mon, Dec 28, 2015 at 5:12 PM, Morten Olav Hansen 
wrote:

> Ok, so is this happening when you are sending out the test email?
>
> --
> Morten
>
> On Mon, Dec 28, 2015 at 12:40 PM, Pamod Amarakoon 
> wrote:
>
>> and yes, it's the new settings app I used
>>
>> On Mon, Dec 28, 2015 at 5:10 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Dear Morten,
>>>
>>> I toggled between the remaining ports 25 and 465. Both throws out
>>>
>>> "Caused by: javax.mail.MessagingException: Could not connect to SMTP
>>> host: smtp.gmail.com, port: 2;
>>>   nested exception is:
>>> java.net.SocketTimeoutException: connect timed out
>>> "
>>> I'll try the method you suggested.
>>>
>>> On Mon, Dec 28, 2015 at 5:07 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> While not ideal, you could null it out with:
>>>> delete from systemsetting where name='keyEmailPort';
>>>>
>>>> And then it should default to TLS port.
>>>>
>>>> --
>>>> Morten
>>>>
>>>> On Mon, Dec 28, 2015 at 12:35 PM, Morten Olav Hansen <
>>>> morte...@gmail.com> wrote:
>>>>
>>>>> Right. That's what i suspected, that setting is wrong. Did you use the
>>>>> new setting app to set it? could you try and change between the different
>>>>> ports and see if the output changes for you?
>>>>>
>>>>> It could be a bug in the settings app, but I'm not sure. 0 is never a
>>>>> valid value for that setting.
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Mon, Dec 28, 2015 at 12:33 PM, Pamod Amarakoon 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> It's "0"
>>>>>>
>>>>>> On Mon, Dec 28, 2015 at 5:00 PM, Morten Olav Hansen <
>>>>>> morte...@gmail.com> wrote:
>>>>>>
>>>>>>> Could you give me the output of:
>>>>>>>
>>>>>>> SERVER/api/systemSettings/keyEmailPort
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Morten
>>>>>>>
>>>>>>> On Mon, Dec 28, 2015 at 12:20 PM, Pamod Amarakoon 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Thanx Morten,
>>>>>>>>
>>>>>>>> it's
>>>>>>>> Version:2.21Build revision:20850Build date:2015-10-26 01:19
>>>>>>>>
>>>>>>>> On Mon, Dec 28, 2015 at 4:48 PM, Morten Olav Hansen <
>>>>>>>> morte...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Ok
>>>>>>>>>
>>>>>>>>> What version of DHIS 2? I'm adding in Lars, I think he has set it
>>>>>>>>> up for gmail before (I haven't).
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Morten
>>>>>>>>>
>>>>>>>>> On Mon, Dec 28, 2015 at 11:54 AM, Pamod Amarakoon <
>>>>>>>>> pam...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Thanx Morten. By bad, wrong port.
>>>>>>>>>>
>>>>>>>>>> But when I selected port 587, it throws out following error.
>>>>>>>>>>
>>>>>>>>>> * WARN  2015-12-28 16:22:00,067 Error while sending email: Cannot
>>>>>>>>>> connect to a port number that is less than 1 ( 0 ),
>>>>>>>>>> java.lang.IllegalArgumentException: Cannot connect to a port number 
>>>>>>>>>> that is
>>>>>>>>>> less than 1 ( 0 )
>>>>>>>>>> at
>>>>>>>>>> org.apache.commons.mail.Email.setSmtpPort(Email.java:533)
>>>>>>>>>> at
>>>>>>>>>> org.hisp.dhis.message.EmailMessageSender.getHtmlEmail(EmailMessageSender.java:176)
>>>>>>>>>> at
>>>>>>>>>> org.hisp.dhis.me

[Dhis2-devs] Tracker Capture reactivate completed enrollment

2016-01-02 Thread Pamod Amarakoon
Dear All,

I'd like to wish you all a happy and prosperous new year !

I noticed an issue, which I need to clarify. Is it not possible to edit
records or to make an enrollment active again once it has been completed.


​
As shown in the screenshot, the enrollment grays out once it has been
completed. I cannot find an option to make the enrollment active again or
to edit the data of any events attached to any of the stages of the
particular enrollment.

Version:
2.21
Build revision:
20983
Build date:
2015-12-30 14:31

But when I manually changed the relevant field in programinstance table it
goes active again.

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Favourites with Multiple Analysis Org Units

2016-01-06 Thread Pamod Amarakoon
Hi Ola,

Will check that out. Thanx for the tip

On Wed, Jan 6, 2016 at 1:22 PM, Ola Hodne Titlestad 
wrote:

> Pamod,
>
> One relatively new Dashboard feature that might interest you is the
> ability to switch 'user orgunit' for all items in a dashboard using the
> gear icon next to the Search field. This will basically replace the 'user
> orgunit' parameter value with whatever orgunit you select in the orgunit
> selection tree.
>
> Ola
> --
> On 5 Jan 2016 16:47, "Jan Henrik Øverland" 
> wrote:
>
>> Hi Pamod,
>>
>> Having multiple user org units should work well. Please note that "user
>> org unit" (it should say "units" instead of "unit", I will fix that) refers
>> to "Data capture and maintenance organisation units" in the user
>> maintenance ui. The other one, "Data output and analysis organisation
>> units", only controls the user's access in the org unit tree.
>>
>> Jan
>>
>> On Mon, Dec 28, 2015 at 12:30 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Dear All,
>>>
>>> Is it possible to create favorites (pivot table, event visualizer) for
>>> users who are assigned to multiple data analysis org units, when the option
>>> "User org unit" is selected at pivot table/event visualizer.
>>>
>>> I tried this on demo server by assigning the user "test1" to both Bo and
>>> Bombali and it seems to analyze only the first org unit "Bo".
>>>
>>>
>>> ​
>>>
>>> What's the proper method to follow to get analysis results for users who
>>> are assigned for multiple analysis org units.
>>>
>>> Thank you
>>>
>>> --
>>> Regards,
>>> Pamod Amarakoon
>>>
>>> Confidentiality Notice: the information contained in this email and any
>>> attachments may be legally privileged and confidential. If you are not an
>>> intended recipient, you are hereby notified that any dissemination,
>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>> received this e-mail in error, please notify the sender and permanently
>>> delete the e-mail and any attachments immediately. You should not retain,
>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>> all or any part of the contents to any other person.
>>>
>>>
>>>
>>>
>>> _______
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Favourites with Multiple Analysis Org Units

2016-01-06 Thread Pamod Amarakoon
Hi Jan,

in the demo instance I created following users

test1 (role:data entry operator, group : test, Org Unit : Bo)
test2 (role:data entry operator, group : test, Org Unit : Bo, Bombali)

I also created 2 favourite items with org unit selected as user org unit.
Created a dashboard ANC_test and assigned it to the particular group of
which test 1 and test 2 belongs to.

What I expected to see is each user being presented reports only related to
the org units they are assigned (in this case information related to org
unit Bo). But following is the dashboard of the user test1, which contain
analytics of whole country

​
Am I missing something or is there any other way to get this done.

Thank a lot.



On Wed, Jan 6, 2016 at 10:29 PM, Pamod Amarakoon  wrote:

> Hi Ola,
>
> Will check that out. Thanx for the tip
>
> On Wed, Jan 6, 2016 at 1:22 PM, Ola Hodne Titlestad 
> wrote:
>
>> Pamod,
>>
>> One relatively new Dashboard feature that might interest you is the
>> ability to switch 'user orgunit' for all items in a dashboard using the
>> gear icon next to the Search field. This will basically replace the 'user
>> orgunit' parameter value with whatever orgunit you select in the orgunit
>> selection tree.
>>
>> Ola
>> --
>> On 5 Jan 2016 16:47, "Jan Henrik Øverland" 
>> wrote:
>>
>>> Hi Pamod,
>>>
>>> Having multiple user org units should work well. Please note that "user
>>> org unit" (it should say "units" instead of "unit", I will fix that) refers
>>> to "Data capture and maintenance organisation units" in the user
>>> maintenance ui. The other one, "Data output and analysis organisation
>>> units", only controls the user's access in the org unit tree.
>>>
>>> Jan
>>>
>>> On Mon, Dec 28, 2015 at 12:30 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> Is it possible to create favorites (pivot table, event visualizer) for
>>>> users who are assigned to multiple data analysis org units, when the option
>>>> "User org unit" is selected at pivot table/event visualizer.
>>>>
>>>> I tried this on demo server by assigning the user "test1" to both Bo
>>>> and Bombali and it seems to analyze only the first org unit "Bo".
>>>>
>>>>
>>>> ​
>>>>
>>>> What's the proper method to follow to get analysis results for users
>>>> who are assigned for multiple analysis org units.
>>>>
>>>> Thank you
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-us...@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use

Re: [Dhis2-devs] [Dhis2-users] Favourites with Multiple Analysis Org Units

2016-01-07 Thread Pamod Amarakoon
Thank you Jan

On Thu, Jan 7, 2016 at 2:55 PM, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> You probably do it right. I know there is a vulnerability in how the
> server handles this at the moment. We will try to fix this asap.
>
> On Wed, Jan 6, 2016 at 6:05 PM, Pamod Amarakoon  wrote:
>
>> Hi Jan,
>>
>> in the demo instance I created following users
>>
>> test1 (role:data entry operator, group : test, Org Unit : Bo)
>> test2 (role:data entry operator, group : test, Org Unit : Bo, Bombali)
>>
>> I also created 2 favourite items with org unit selected as user org unit.
>> Created a dashboard ANC_test and assigned it to the particular group of
>> which test 1 and test 2 belongs to.
>>
>> What I expected to see is each user being presented reports only related
>> to the org units they are assigned (in this case information related to org
>> unit Bo). But following is the dashboard of the user test1, which contain
>> analytics of whole country
>>
>> ​
>> Am I missing something or is there any other way to get this done.
>>
>> Thank a lot.
>>
>>
>>
>>
>> On Wed, Jan 6, 2016 at 10:29 PM, Pamod Amarakoon 
>> wrote:
>>
>>> Hi Ola,
>>>
>>> Will check that out. Thanx for the tip
>>>
>>> On Wed, Jan 6, 2016 at 1:22 PM, Ola Hodne Titlestad 
>>> wrote:
>>>
>>>> Pamod,
>>>>
>>>> One relatively new Dashboard feature that might interest you is the
>>>> ability to switch 'user orgunit' for all items in a dashboard using the
>>>> gear icon next to the Search field. This will basically replace the 'user
>>>> orgunit' parameter value with whatever orgunit you select in the orgunit
>>>> selection tree.
>>>>
>>>> Ola
>>>> --
>>>> On 5 Jan 2016 16:47, "Jan Henrik Øverland" <
>>>> janhenrik.overl...@gmail.com> wrote:
>>>>
>>>>> Hi Pamod,
>>>>>
>>>>> Having multiple user org units should work well. Please note that
>>>>> "user org unit" (it should say "units" instead of "unit", I will fix that)
>>>>> refers to "Data capture and maintenance organisation units" in the user
>>>>> maintenance ui. The other one, "Data output and analysis organisation
>>>>> units", only controls the user's access in the org unit tree.
>>>>>
>>>>> Jan
>>>>>
>>>>> On Mon, Dec 28, 2015 at 12:30 PM, Pamod Amarakoon 
>>>>> wrote:
>>>>>
>>>>>> Dear All,
>>>>>>
>>>>>> Is it possible to create favorites (pivot table, event visualizer)
>>>>>> for users who are assigned to multiple data analysis org units, when the
>>>>>> option "User org unit" is selected at pivot table/event visualizer.
>>>>>>
>>>>>> I tried this on demo server by assigning the user "test1" to both Bo
>>>>>> and Bombali and it seems to analyze only the first org unit "Bo".
>>>>>>
>>>>>>
>>>>>> ​
>>>>>>
>>>>>> What's the proper method to follow to get analysis results for users
>>>>>> who are assigned for multiple analysis org units.
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Pamod Amarakoon
>>>>>>
>>>>>> Confidentiality Notice: the information contained in this email and
>>>>>> any attachments may be legally privileged and confidential. If you are 
>>>>>> not
>>>>>> an intended recipient, you are hereby notified that any dissemination,
>>>>>> distribution, or copying of this e-mail is strictly prohibited. If you 
>>>>>> have
>>>>>> received this e-mail in error, please notify the sender and permanently
>>>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>>>> all or any part of the contents to any other person.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___
>

Re: [Dhis2-devs] Tracker Capture reactivate completed enrollment

2016-01-07 Thread Pamod Amarakoon
Thanx Morten.

It would be great if it's possible re-enroll. I'd wait for Abyot.

On Fri, Jan 8, 2016 at 11:16 AM, Morten Olav Hansen 
wrote:

> Hi Pamod
>
> Yes, this is the current standing of how enrollments work. There have been
> some discussions internally about this, maybe Abyot can explain what the
> ending result was.
>
> --
> Morten
>
> On Sat, Jan 2, 2016 at 10:59 PM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> I'd like to wish you all a happy and prosperous new year !
>>
>> I noticed an issue, which I need to clarify. Is it not possible to edit
>> records or to make an enrollment active again once it has been completed.
>>
>>
>> ​
>> As shown in the screenshot, the enrollment grays out once it has been
>> completed. I cannot find an option to make the enrollment active again or
>> to edit the data of any events attached to any of the stages of the
>> particular enrollment.
>>
>> Version:
>> 2.21
>> Build revision:
>> 20983
>> Build date:
>>     2015-12-30 14:31
>>
>> But when I manually changed the relevant field in programinstance table
>> it goes active again.
>>
>> Thank you
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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 Capture reactivate completed enrollment

2016-01-07 Thread Pamod Amarakoon
Thanx Abyot,

In fact what I'm expecting is something similar to "limited mode" for a
manager to edit event data of already completed enrollments.

On Fri, Jan 8, 2016 at 11:58 AM, Abyot Gizaw  wrote:

> Hi,
>
> Re-opening completed enrollments is coming in 2.22. The re-opening will
> allow full operations on enrollment - meaning adding / editing / removing
> events ... The only catch here is, it is not possible to re-open enrollment
> if there is another active enrollment going on.
>
> We are also hoping to allow re-opening enrollment in limited mode -
> meaning only to edit event data not add / remove event - when another
> active enrollment exists. But  I am afraid this won't make it for 2.22.
>
> ---
> Thank you,
> Abyot.
>
> On Fri, Jan 8, 2016 at 7:01 AM, Pamod Amarakoon  wrote:
>
>> Thanx Morten.
>>
>> It would be great if it's possible re-enroll. I'd wait for Abyot.
>>
>> On Fri, Jan 8, 2016 at 11:16 AM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Pamod
>>>
>>> Yes, this is the current standing of how enrollments work. There have
>>> been some discussions internally about this, maybe Abyot can explain what
>>> the ending result was.
>>>
>>> --
>>> Morten
>>>
>>> On Sat, Jan 2, 2016 at 10:59 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> I'd like to wish you all a happy and prosperous new year !
>>>>
>>>> I noticed an issue, which I need to clarify. Is it not possible to edit
>>>> records or to make an enrollment active again once it has been completed.
>>>>
>>>>
>>>> ​
>>>> As shown in the screenshot, the enrollment grays out once it has been
>>>> completed. I cannot find an option to make the enrollment active again or
>>>> to edit the data of any events attached to any of the stages of the
>>>> particular enrollment.
>>>>
>>>> Version:
>>>> 2.21
>>>> Build revision:
>>>> 20983
>>>> Build date:
>>>> 2015-12-30 14:31
>>>>
>>>> But when I manually changed the relevant field in programinstance table
>>>> it goes active again.
>>>>
>>>> Thank you
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] User Activity Report

2016-01-15 Thread Pamod Amarakoon
Dear All,

Is it possible to obtain a report on activities/interaction of individual
users with the DHIS2 instance at the moment. If not, is there any plans of
including this feature in future releases.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Assign Users to Program Stages

2016-01-15 Thread Pamod Amarakoon
Dear All,

Is it currently possible to assign a user/user role to a program stage. If
not any upcoming plans on having this feature?

The use case being, there is a health program which has several stages of
which certain user roles need exclusive access while restricting others.
Currently we are planning to run them as separate programs in DHIS2
instance just to have this access controls.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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 version 2.22 is released

2016-01-15 Thread Pamod Amarakoon
t; Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s14.html#d5e1781>
>
>
> Dynamic identifier schemes: For data imports you can now specify unique
> meta-data attributes as identifier schemes. This implies that DHIS 2 can be
> used to store any number of sets of identifiers and map data to those
> during import. This is useful when DHIS 2 is used to integrate data from a
> large number of systems and each have their own sets of identifiers.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s13.html#d5e1390>
>
>
> SMS: SMS can now be completely managed through the Web API, with new
> resources for sending and receiving SMS, starting and stopping the SMS
> service and configuration of SMS gateways. The system has now built-in
> support for five popular SMS gateway providers. The SMS services have been
> revamped and made more scalable.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s38.html>
>
>
> App store: The contents of the DHIS 2 app store is available at the
> appStore resource, which also allows you to install apps from the app
> store with a POST request.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s61.html>
>
>
> Field filter operators: A range of new field filter operators has been
> added, such as ^(like/ilike) to match from start of string and
> $(like/ilike) to match from end.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s08.html>
>
>
> Tracker bulk deletion: Bulk deletion of events, enrollments and tracked
> entity instances are now supported through a new delete import strategy.
>
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s53.html>
>
>
> Async data value import: Data values can now be imported asynchronously
> through a new async parameter, meaning you can post a large import file
> and poll for the results rather than having the response block until the
> process is done.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s13.html#d5e1390>
>
>
> Data pruning by org unit: Data, complete data set registrations and
> approvals can be removed by organisation unit through the
> maintenance/dataPruning resource.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s34.html>
>
>
> Typed user settings: You can now set all user settings through the
> userSettings resource, including those of complex types.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s42.html>
>
>
> Data value deletion: Data values can now more easily be deleted through a
> new delete import strategy, which lets you indicate explicitly that the
> posted data values should be deleted.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s13.html#d5e1390>
>
>
>
> SERVER MANAGEMENT FEATURES
>
> --
>
>
> System read-only mode: You can now set the system to start in read-only
> mode which means that no database write-operations will be executed when
> the system starts and when people are loggging in. This is useful in order
> to run DHIS 2 on read-only database replicas for horizontal scaling
> purposes.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch08s07.html>
>
>
> General configuration file: The DHIS 2 configuration file has been
> renamed to dhis.conf, and the configuration properties have been given
> general names, removing the association to the Hibernate framework.
>
> Docs
> <http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch08s03.html#d5e500>
>
>
>
> RELEASE INFO
>
> 
>
>
> You can download Live package, WAR file, sample data and source code here:
>
> https://www.dhis2.org/downloads
>
>
> You will find documentation and Javadocs here:
>
> https://www.dhis2.org/documentation
>
>
> You can read the upgrade notes and find upgrade script here:
>
> https://www.dhis2.org/222-upgrade
>
>
> The demo application can be found here:
>
> http://play.dhis2.org/demo
>
>
> Full list of features can be found at the Launchpad page:
>
> https://launchpad.net/dhis2/+milestone/2.22
>
>
> Instructions for signing up for the DHIS 2 mailing lists here:
>
> https://www.dhis2.org/contact
>
>
>
> Enjoy the new features.
>
>
> best regards,
>
>
> the DHIS 2 development team
>
>
>
>
>
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] DHIS V 2.22 : Tracker Capture Error

2016-01-15 Thread Pamod Amarakoon
.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:115)

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

org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

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

org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

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

org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

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

org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)

org.hisp.dhis.servlet.filter.ExcludableShallowEtagHeaderFilter.doFilterInternal(ExcludableShallowEtagHeaderFilter.java:102)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

The same could be retrieved with 2.21 without any error.

The same error arise when I try to view program instances from programs app.

Is there any database change necessary while upgrading. I can't find
the null value highlighted at repeatable program stage. could anyone
please point me where exactly I should look for.

Any help is appreciated.

Thanx.



-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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 V 2.22 : Tracker Capture Error

2016-01-16 Thread Pamod Amarakoon
Dear Markus,

Thanx a lot, I ran the SQL query and the issue is fixed now :)

On Sat, Jan 16, 2016 at 3:32 PM, Markus Bekken 
wrote:

> Dear Pamod,
> thank you for reporting. There seems to be a sensitivity towards null
> values in the repeatable property of program stage.
>
> Have made an update to 2.22 that makes the repeatable property false in
> the cases where it did not previously have a value. You can wait for the
> newest 2.22 build(triggering now), or you can run the following sql on your
> local database;
>
> update programstage set repeatable = false where repeatable is null;
>
> Best regards,
> Markus
>
> 16. jan. 2016 kl. 08.22 skrev Pamod Amarakoon :
>
> Hi,
>
> Upgraded an instance which was running on 2.21 to 2.22. There were no
> errors starting up the instance. But when I tried to access tracker
> capture, it doesn't show up list of programmes. When I checked the console
> it throws out an error while trying to retrieve the following.
>
>
> http://xxx.xxx.xxx:xxx/xxx/api/programs.json?filter=programType:eq:WITH_REGISTRATION&paging=false&fields=id,version,programTrackedEntityAttributes[trackedEntityAttribute[id,optionSet[id,version]]],programStages[id,version,programStageDataElements[dataElement[optionSet[id,version&_=1452926889280
>
> The error goes as follows,
>
> *type* Exception report
>
> *message* *Request processing failed; nested exception is
> org.hibernate.PropertyAccessException: Null value was assigned to a
> property of primitive type setter of
> org.hisp.dhis.program.ProgramStage.repeatable*
>
> *description* *The server encountered an internal error that prevented it
> from fulfilling this request.*
>
> *exception*
>
> org.springframework.web.util.NestedServletException: Request processing 
> failed; nested exception is org.hibernate.PropertyAccessException: Null value 
> was assigned to a property of primitive type setter of 
> org.hisp.dhis.program.ProgramStage.repeatable
>   
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:977)
>   
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:856)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>   
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:841)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>   
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
>   
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:88)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFil

[Dhis2-devs] Time stamp in Web API

2016-01-17 Thread Pamod Amarakoon
Dear All,

I currently have an instance of which server timezone, Postgresql time zone
and java time zone has been set to Asia/Colombo. I can see the data been
stored in database in local time stamp.

But when retrieving data through web API time stamp is in UTC. Is it
possible to change the timestamp of web API output to fall back to local
time zone.

Thank you.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] DHIS 2.22 : Tracked Entity Instance Registration Error

2016-01-17 Thread Pamod Amarakoon
rChainProxy.doFilterInternal(FilterChainProxy.java:192)
   
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
   
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
   
org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)

org.hisp.dhis.servlet.filter.ExcludableShallowEtagHeaderFilter.doFilterInternal(ExcludableShallowEtagHeaderFilter.java:102)
 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
   
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)note
The full stack trace of the root cause is available in the Apache
Tomcat/7.0.52 (Ubuntu) logs.Apache Tomcat/7.0.52 (Ubuntu)

Thanx



-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Data Synchronization - Tracker Data

2016-01-18 Thread Pamod Amarakoon
Hi,

Is it possible to synchronize event/tracker data at the moment. Any plans
to have this in future.

The user manual says,

"The data synchronization uses the UID property of data elements, category
option combos and organisation units to match the meta-data. Hence the
synchronization is dependent on these three meta-data objects being
harmonized on the local and remote instance in order to work appropriately."

So, I hope sync for tracker data is not possible at the moment.
-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] DHIS Live 2.13

2016-01-19 Thread Pamod Amarakoon
Dear All,

Could somebody share with me the DHIS2 Live .zip file for version 2.13.
There's a mysql dump of a instance on 2.13. I want to retrieve data from
couple of data sets.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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 Live 2.13

2016-01-20 Thread Pamod Amarakoon
Thanx a lot Morten. Will give it a try :)

On Wed, Jan 20, 2016 at 6:22 PM, Morten Olav Hansen 
wrote:

> Hi
>
> You can download 2.13 from here:
> https://www.dhis2.org/download/releases/2.13/dhis.war
>
> We don't have 2.13 live available, but what should work is to simply
> download a fresh live, unzip it, delete all in the webapps directory, put
> the dhis war file there, unzip it, and remove the .war file. You should
> have a single directory called dhis there with the content of the war file.
>
> --
> Morten
>
> On Tue, Jan 19, 2016 at 3:17 PM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> Could somebody share with me the DHIS2 Live .zip file for version 2.13.
>> There's a mysql dump of a instance on 2.13. I want to retrieve data from
>> couple of data sets.
>>
>> Thanx
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API : Create Favourite

2016-01-22 Thread Pamod Amarakoon
Hi,

I wanted to create a new favorite at pivot table that filters the date
values between a range of 500 to 1000.

I could get the output i needed using
http://xxx.xx.xx.xx:xxx
/x/api/analytics.json?dimension=dx:dHqbtLysQz0.fHcQdNbIBwQ:eq:0&dimension=ou:GYBZ1og9bk7&dimension=pe:LAST_12_MONTHS&displayProperty=NAME&skipMeta=true&measureCriteria=GT:500;LT:1000

I wanted to create a favourite for the same. I posted following json to
/api/reportTables/

{
"columns": [{
"dimension": "dx",
"items": [{
"id": "dHqbtLysQz0.fHcQdNbIBwQ",
"name": "BMI (BMI 18.5-24.9, Female)"
}]
}],
"rows": [{
"dimension": "pe",
"items": [{
"id": "LAST_12_MONTHS",
"name": ""
}]
},
{
"dimension": "ou",
"items": [{
"id": "GYBZ1og9bk7"
}]
}],
"filters": [],
"showDimensionLabels": true,
"hideEmptyRows": false,
"skipRounding": false,
"aggregationType": "DEFAULT",
"dataApprovalLevel": {
"id": "DEFAULT"
},
"showHierarchy": false,
"completedOnly": false,
"displayDensity": "NORMAL",
"fontSize": "NORMAL",
"digitGroupSeparator": "SPACE",
"legendSet": null,
"sorting": null,
"regression": false,
"measureCriteria": "GT:500;LT:1000",
"cumulative": false,
"sortOrder": 0,
"topLimit": 0,
"rowTotals": true,
"colTotals": true,
"rowSubTotals": true,
"colSubTotals": true,
"reportParams": {
"paramReportingPeriod": false,
"paramOrganisationUnit": false,
"paramParentOrganisationUnit": true
},
"name": "bmi_normal_female_w_LTGT"
}

But this doesn't seem to work. what's the dimension/criteria I should use
to get this done.

Thank you





-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Web API : Create Favourite

2016-01-22 Thread Pamod Amarakoon
Thanx Knut. Will write a blueprint :)

On Sat, Jan 23, 2016 at 3:30 AM, Knut Staring  wrote:

> Unfortunately, I think filtering through measureCriteria is currently not
> supported by the Pivot Tables. Sounds like a feature that should be added
> (both in the GUI and in the model). Maybe you could write a Blueprint?
>
> Knut
>
> On Fri, Jan 22, 2016 at 12:02 PM, Pamod Amarakoon 
> wrote:
>
>> Hi,
>> this is the json of analytic table I want to filter data of...
>>
>> {
>> "lastUpdated": "2016-01-22T08:20:21.575+",
>> "href": "http://xxx.xxx.224.242:3080/ncd/api/reportTables/Fmlq1WIqgeU
>> ",
>> "id": "Fmlq1WIqgeU",
>> "created": "2016-01-22T08:20:21.574+",
>> "name": "hlc-bmi_normal_female",
>> "publicAccess": "rw--",
>> "userOrganisationUnitChildren": false,
>> "hideEmptyRows": false,
>> "parentGraphMap": {
>> "GYBZ1og9bk7": ""
>> },
>> "userOrganisationUnit": false,
>> "rowSubTotals": true,
>> "displayDensity": "NORMAL",
>> "completedOnly": false,
>> "colTotals": true,
>> "showDimensionLabels": true,
>> "sortOrder": ​0,
>> "fontSize": "NORMAL",
>> "topLimit": ​0,
>> "aggregationType": "DEFAULT",
>> "userOrganisationUnitGrandChildren": false,
>> "displayName": "hlc-bmi_normal_female",
>> "externalAccess": false,
>> "colSubTotals": true,
>> "showHierarchy": false,
>> "rowTotals": true,
>> "cumulative": false,
>> "digitGroupSeparator": "SPACE",
>> "regression": false,
>> "skipRounding": false,
>> "reportParams": {
>> "paramGrandParentOrganisationUnit": false,
>> "paramReportingPeriod": false,
>> "paramParentOrganisationUnit": true,
>> "paramOrganisationUnit": false
>> },
>> "access": {
>> "read": true,
>> "update": true,
>> "externalize": true,
>> "delete": true,
>> "write": true,
>> "manage": true
>> },
>> "relativePeriods": {
>> "thisYear": false,
>> "quartersLastYear": false,
>> "last52Weeks": false,
>> "thisWeek": false,
>> "lastMonth": false,
>> "last2SixMonths": false,
>> "monthsThisYear": false,
>> "thisQuarter": false,
>> "last12Months": true,
>> "last5FinancialYears": false,
>> "lastQuarter": false,
>> "thisSixMonth": false,
>> "thisFinancialYear": false,
>> "last4Weeks": false,
>> "last3Months": false,
>> "thisMonth": false,
>> "last5Years": false,
>> "last6BiMonths": false,
>> "lastFinancialYear": false,
>> "last6Months": false,
>> "quartersThisYear": false,
>> "monthsLastYear": false,
>> "lastWeek": false,
>> "thisBimonth": false,
>> "lastBimonth": false,
>> "lastSixMonth": false,
>> "lastYear": false,
>> "last12Weeks": false,
>> "last4Quarters": false
>> },
>> "user": {
>> "id": "n6OIhU7cvg4",
>> "name": "Pamod Amarakoon",
>> "created": "2016-01-04T06:10:34.185+",
>> "lastUpdated": "2016-01-04T06:10:34.185+",
>> "href": "http://xxx.xxx.224.242:3080/ncd/api/users/n6OIhU7cvg4";
>> },
>> "attributeDimensions": [],
>> "filterDimensions": [],
>> "organisationUnitGroups": [],
>> "itemOrganisationUnitGroups": [],
>>  

[Dhis2-devs] Change Encryption Password

2016-02-01 Thread Pamod Amarakoon
Hi,

Is there any possibility of changing the encryption password once an
instance has been setup and already has encrypted data in it.

Thanx.
-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Change Encryption Password

2016-02-01 Thread Pamod Amarakoon
Hi Lars,

yes, with attribute set to confidential in 2.22.

But even if previous versions without confidential attributes, if I change
the encryption password in hibernate.properties and try to restart the
server it throws out errors. Is it possible to change this password once it
has been set.

Thanx

On Tue, Feb 2, 2016 at 2:31 AM, Lars Helge Øverland 
wrote:

> Hi Pamod,
>
> with encrypted data, do you mean attribute values (of an attribute set to
> "confidential") captured using 2.22?
>
> regards,
>
> Lars
>
>
>
>
>
>
> On Mon, Feb 1, 2016 at 8:03 PM, Pamod Amarakoon  wrote:
>
>> Hi,
>>
>> Is there any possibility of changing the encryption password once an
>> instance has been setup and already has encrypted data in it.
>>
>> Thanx.
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Change Encryption Password

2016-02-01 Thread Pamod Amarakoon
Okay. Thanx for the confirmation Lars

On Tue, Feb 2, 2016 at 3:17 AM, Lars Helge Øverland 
wrote:

> Hi Pamod,
>
> no you cannot do that. You can read more at the bottom here:
>
>
> http://dhis2.github.io/dhis2-docs/master/en/implementer/html/ch08s06.html#d5e763
>
>
>
> On Mon, Feb 1, 2016 at 10:04 PM, Pamod Amarakoon  wrote:
>
>> Hi Lars,
>>
>> yes, with attribute set to confidential in 2.22.
>>
>> But even if previous versions without confidential attributes, if I
>> change the encryption password in hibernate.properties and try to restart
>> the server it throws out errors. Is it possible to change this password
>> once it has been set.
>>
>> Thanx
>>
>> On Tue, Feb 2, 2016 at 2:31 AM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Pamod,
>>>
>>> with encrypted data, do you mean attribute values (of an attribute set
>>> to "confidential") captured using 2.22?
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Feb 1, 2016 at 8:03 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is there any possibility of changing the encryption password once an
>>>> instance has been setup and already has encrypted data in it.
>>>>
>>>> Thanx.
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> http://www.dhis2.org <https://www.dhis2.org>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] 2.23 Metadata importer rewrite and dryRuns

2016-02-02 Thread Pamod Amarakoon
Hi Morten,

We are using metaData import frequently when transferring data back and
forth in running instances. Dry Run feature is almost always used just to
check any incompatibility before actual transfer. So it's quite useful.

On Tue, Feb 2, 2016 at 1:45 PM, Morten Olav Hansen 
wrote:

> Hi everyone
>
> I'm currently in the process of re-writing our DXF2 metadata importer, and
> was wondering if anyone is actually using the dryRun option? its adds quite
> a bit of complexity to the code, so it will be added only to the new
> importer if people are actually using it for imports
>
> --
> Morten
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Reporting Rate Summary

2016-02-02 Thread Pamod Amarakoon
Hi,

I need to clarify 2 things on reporting rate summary.

1. Is it possible to obtain reporting rate summary through web api.
2. is it possible to add a reporting rate summary as a dashboard item

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] User Activity Report

2016-02-02 Thread Pamod Amarakoon
Hi,

Any update on this.

On Fri, Jan 15, 2016 at 2:09 PM, Pamod Amarakoon  wrote:

> Dear All,
>
> Is it possible to obtain a report on activities/interaction of individual
> users with the DHIS2 instance at the moment. If not, is there any plans of
> including this feature in future releases.
>
> Thanx
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Reporting Rate Summary

2016-02-02 Thread Pamod Amarakoon
Thanx Lars.

In this case I assume we can only use compulsory data elements to assess
the completeness. Will use that as a work around.

On Tue, Feb 2, 2016 at 8:23 PM, Lars Helge Øverland 
wrote:

> Hi Pamod,
>
> the "reporting rate summary" under reports is not available in the Web API.
>
> What you can do is to create a pivot table or chart from pivot table app
> or data visualizer app, and then access those through the API or put it on
> the dashboard.
>
> That will only give you percentages, not no of reports etc. We are working
> on that.
>
> regards,
>
> Lars
>
>
>
>
>
> On Tue, Feb 2, 2016 at 2:10 PM, Pamod Amarakoon  wrote:
>
>> Hi,
>>
>> I need to clarify 2 things on reporting rate summary.
>>
>> 1. Is it possible to obtain reporting rate summary through web api.
>> 2. is it possible to add a reporting rate summary as a dashboard item
>>
>> Thank you
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] User Activity Report

2016-02-02 Thread Pamod Amarakoon
Hi Lars,

Looks very useful. But my use case being the the district manager needs to
create a user report for each month where he wants to see the following,

1. number of data sets completed by the facility user
2. number of Program events completed by facility user
3. number of sms/emails sent by facility user
4. number of logins per each user per month

This could be made available at a separate section in user profile may be.

Just wondering if there is any plan of implementing such feature in future

On Tue, Feb 2, 2016 at 8:28 PM, Olav Poppe  wrote:

> Hi Lars,
> this looks good. Just a question, I wasn’t able to see from the blueprint
> if this statistics was for the number of report items that exist, or if it
> would somehow also include statistics on how often favourites are opened?
>
> Olav
>
>
> 2. feb. 2016 kl. 15.49 skrev Lars Helge Øverland :
>
> Hi Pamod,
>
> we do not plan to have support a full view of all activity. However we aim
> for a "data usage statistics" feature for 2.23, where you can see which
> types of data analysis a user is doing:
>
> https://blueprints.launchpad.net/dhis2/+spec/system-usage-analytics
>
> This might be expanded to more type of activity later, but not confirmed
> at this point.
>
> regards,
>
> Lars
>
>
> On Fri, Jan 15, 2016 at 9:39 AM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> Is it possible to obtain a report on activities/interaction of individual
>> users with the DHIS2 instance at the moment. If not, is there any plans of
>> including this feature in future releases.
>>
>> Thanx
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
> ___
> 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
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] User Activity Report

2016-02-02 Thread Pamod Amarakoon
Thanx Lars/Jason for the info. I'll start working on that path.

On Tue, Feb 2, 2016 at 9:22 PM, Lars Helge Øverland 
wrote:

>
>
> On Tue, Feb 2, 2016 at 4:21 PM, Pamod Amarakoon  wrote:
>
>> Hi Lars,
>>
>> Looks very useful. But my use case being the the district manager needs
>> to create a user report for each month where he wants to see the following,
>>
>> 1. number of data sets completed by the facility user
>> 2. number of Program events completed by facility user
>> 3. number of sms/emails sent by facility user
>> 4. number of logins per each user per month
>>
>> This could be made available at a separate section in user profile may be.
>>
>> Just wondering if there is any plan of implementing such feature in future
>>
>
> Thanks Pamod. That's interesting feedback. We will definitely think about
> implementing that.
>
> Note that these things can be calculated by plain SQL. You can create it
> as a standard report or SQL view as of now, assuming some SQL mastery.
>
> Lars
>
>
>
>
>
>
>
>>
>> On Tue, Feb 2, 2016 at 8:28 PM, Olav Poppe  wrote:
>>
>>> Hi Lars,
>>> this looks good. Just a question, I wasn’t able to see from the
>>> blueprint if this statistics was for the number of report items that exist,
>>> or if it would somehow also include statistics on how often favourites are
>>> opened?
>>>
>>> Olav
>>>
>>>
>>> 2. feb. 2016 kl. 15.49 skrev Lars Helge Øverland :
>>>
>>> Hi Pamod,
>>>
>>> we do not plan to have support a full view of all activity. However we
>>> aim for a "data usage statistics" feature for 2.23, where you can see which
>>> types of data analysis a user is doing:
>>>
>>> https://blueprints.launchpad.net/dhis2/+spec/system-usage-analytics
>>>
>>> This might be expanded to more type of activity later, but not confirmed
>>> at this point.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> On Fri, Jan 15, 2016 at 9:39 AM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> Is it possible to obtain a report on activities/interaction of
>>>> individual users with the DHIS2 instance at the moment. If not, is there
>>>> any plans of including this feature in future releases.
>>>>
>>>> Thanx
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-us...@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>> ___
>>> 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
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender 

Re: [Dhis2-devs] Reporting Rate Summary

2016-02-02 Thread Pamod Amarakoon
Okay. Thanx Lars.

On Tue, Feb 2, 2016 at 9:23 PM, Lars Helge Øverland 
wrote:

>
> Unfortunately we only the "complete data set registration" mode here per
> now.
>
> Lars
>
>
> On Tue, Feb 2, 2016 at 4:12 PM, Pamod Amarakoon  wrote:
>
>> Thanx Lars.
>>
>> In this case I assume we can only use compulsory data elements to assess
>> the completeness. Will use that as a work around.
>>
>> On Tue, Feb 2, 2016 at 8:23 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Pamod,
>>>
>>> the "reporting rate summary" under reports is not available in the Web
>>> API.
>>>
>>> What you can do is to create a pivot table or chart from pivot table app
>>> or data visualizer app, and then access those through the API or put it on
>>> the dashboard.
>>>
>>> That will only give you percentages, not no of reports etc. We are
>>> working on that.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Feb 2, 2016 at 2:10 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I need to clarify 2 things on reporting rate summary.
>>>>
>>>> 1. Is it possible to obtain reporting rate summary through web api.
>>>> 2. is it possible to add a reporting rate summary as a dashboard item
>>>>
>>>> Thank you
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> http://www.dhis2.org <https://www.dhis2.org>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Event Reports - Data of Last Event

2016-02-03 Thread Pamod Amarakoon
Hi,

Is it possible to consider the data of last event in a repeatable program
stage during analysis.

The use case is as follows.

We have a repeatable program stage which measures BMI of TEI on a monthly
basis, and we want to know the number of TEIs currently having BMI over 25.

The analysis in reports table seem to take into consideration all the
events of the repeatable program stage and picks up any event which had BMI
over 25 whereas the actual need is to know the TEIs who currently have a
BMI value of over 25. This could be obtained if analysis only considered
the last eventDate for a TEI for that stage.

Is it possible to achieve this.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Event Reports - Data of Last Event

2016-02-08 Thread Pamod Amarakoon
Hi,

Any update on this.

On Thu, Feb 4, 2016 at 10:09 AM, Pamod Amarakoon  wrote:

> Hi,
>
> Is it possible to consider the data of last event in a repeatable program
> stage during analysis.
>
> The use case is as follows.
>
> We have a repeatable program stage which measures BMI of TEI on a monthly
> basis, and we want to know the number of TEIs currently having BMI over 25.
>
> The analysis in reports table seem to take into consideration all the
> events of the repeatable program stage and picks up any event which had BMI
> over 25 whereas the actual need is to know the TEIs who currently have a
> BMI value of over 25. This could be obtained if analysis only considered
> the last eventDate for a TEI for that stage.
>
> Is it possible to achieve this.
>
> Thanx
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracker Capture Greyed out Input Boxes

2016-02-09 Thread Pamod Amarakoon
Hi,

Is there any particular reason why input boxes related to data elements
grey out in tracker capture. I have noticed this randomly in TEIs. At times
same record is editable in Firefox while it's disabled in Chrome. Audit
history is also not available when its greyed out.

I don't observe any errors in console either.

Any idea what's causing this?
I'm on 2.22 build 21808

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Changing Org Unit of TEI

2016-02-09 Thread Pamod Amarakoon
Dear All,

Is it possible to move a TEI to a different org unit. This is applicable
when a TEI moves to a different area physically and needs to be enrolled
and followed up in the same program while preserving the existing event
data.

Thank you.

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Changing Org Unit of TEI

2016-02-09 Thread Pamod Amarakoon
Dear Markus,

If the "referral" interface has the functionality of temporarily and
permanently scheduling visit at a different org unit, that would solve my
issue. And I think in a generic context,  the word "Referral" is fine :)

Thanx a lot!

On Wed, Feb 10, 2016 at 12:14 AM, Markus Bekken 
wrote:

> Hi Pamod!
> It is not currently enabled in trunk, but we have made a implementation
> for something that might be similar in Palestine. We have made a "Referral"
> user interface that allows scheduling a visit at another orgunit than the
> TEI is registered at(and another than the logged in user has selected). In
> this dialog there is an option to permanently move the TEI(update the TEI
> orgunit to whatever the TEI is scheduled for). Would this referral dialog
> solve your use case, or is there something different in your case?
>
> Screenshot:
>
> Markus
>
> P.S. The concept of "referral" is a bit patient-file specific - if anyone
> can suggest a more generic term it would be most welcome.
>
>
> 9. feb. 2016 kl. 18.54 skrev Pamod Amarakoon :
>
> Dear All,
>
> Is it possible to move a TEI to a different org unit. This is applicable
> when a TEI moves to a different area physically and needs to be enrolled
> and followed up in the same program while preserving the existing event
> data.
>
> Thank you.
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
> ___
> 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
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Time Stamp in Web API : Tracked Entity Instances

2016-02-14 Thread Pamod Amarakoon
Hi,

I noted that time stamp in trackedEntityInstances resource has both
DHIS2/server timestamp and ISO time stamp (in UTC) as below.

{

"lastUpdated": "2016-02-14 15:43:35.087",  <- Server time
"trackedEntity": "kuWSv1dRXIm",
"created": "2016-01-02 19:28:36.192",
"orgUnit": "wkMD0saXh3E",
"trackedEntityInstance": "GT3JaYS9IgJ",
"inactive": false,
"relationships": [ ],
"attributes":

[

{

"lastUpdated": "2016-02-14T10:13:35.087+", <--- ISO time in
UTC
"displayName": "Gender",
"created": "2016-02-14T10:13:35.087+",
"valueType": "TEXT",
"attribute": "BZEpuufLyDE",
"value": "male"

},
{

"lastUpdated": "2016-02-14T10:13:35.086+",
"displayName": "First Name",
"created": "2016-02-14T10:13:35.086+",
"valueType": "TEXT",
"attribute": "izuwkaOUgFg",
"value": "Rukmal"

},

{
"lastUpdated": "2016-02-14T10:13:34.981+",
"displayName": "Last Name",
"created": "2016-02-14T10:13:34.981+",
"valueType": "TEXT",
"attribute": "C8DBAo2wEYN",
"value": "Kumarapeli"
}
]

}

Any reason why it appears in 2 formats? Is it possible to get it a single
format.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Metadata API and lastUpdated

2016-02-14 Thread Pamod Amarakoon
Hi Carl,

it seems to be working fine.

eg: to query for events updated after 8th Feb 10.20 am UTC

http://localhost/api/events.json?lastUpdated=2016-02-08T10:20:15Z
, Z for UTC





On Sun, Feb 14, 2016 at 5:20 AM, Carl Leitner  wrote:

> Hi,
> Can someone either confirm or deny that you can use a ISO 8601 UTC
> timestamp for the lastUpdated parameter in the metadata API.  From the
> documentation:
>
> http://dhis2.github.io/dhis2-docs/2.21/en/developer/html/dhis2_developer_manual_full.html#d4934e315
> it appears that you cannot.
>
> If not, can support for this possibly be added.
>
> I tried with a UTC timestamp and it didn’t seem to work, but I may have
> messed up the request.
>
> Thanks!
>
> Cheers,
> -carl
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Time Stamp in Web API : Tracked Entity Instances

2016-02-15 Thread Pamod Amarakoon
Thanx Morten. Will update

On Mon, Feb 15, 2016 at 8:29 AM, Morten Olav Hansen 
wrote:

> Hi Pamod
>
> This should be fixed in latest 2.22/trunk.
>
> On Sun, Feb 14, 2016 at 5:27 PM, Pamod Amarakoon  wrote:
>
>> Hi,
>>
>> I noted that time stamp in trackedEntityInstances resource has both
>> DHIS2/server timestamp and ISO time stamp (in UTC) as below.
>>
>> {
>>
>> "lastUpdated": "2016-02-14 15:43:35.087",  <- Server time
>> "trackedEntity": "kuWSv1dRXIm",
>> "created": "2016-01-02 19:28:36.192",
>> "orgUnit": "wkMD0saXh3E",
>> "trackedEntityInstance": "GT3JaYS9IgJ",
>> "inactive": false,
>> "relationships": [ ],
>> "attributes":
>>
>> [
>>
>> {
>>
>> "lastUpdated": "2016-02-14T10:13:35.087+", <--- ISO time
>> in UTC
>> "displayName": "Gender",
>> "created": "2016-02-14T10:13:35.087+",
>> "valueType": "TEXT",
>> "attribute": "BZEpuufLyDE",
>> "value": "male"
>>
>> },
>> {
>>
>> "lastUpdated": "2016-02-14T10:13:35.086+",
>> "displayName": "First Name",
>> "created": "2016-02-14T10:13:35.086+",
>>     "valueType": "TEXT",
>> "attribute": "izuwkaOUgFg",
>> "value": "Rukmal"
>>
>> },
>>
>> {
>> "lastUpdated": "2016-02-14T10:13:34.981+",
>> "displayName": "Last Name",
>> "created": "2016-02-14T10:13:34.981+",
>> "valueType": "TEXT",
>> "attribute": "C8DBAo2wEYN",
>> "value": "Kumarapeli"
>> }
>> ]
>>
>> }
>>
>> Any reason why it appears in 2 formats? Is it possible to get it a single
>> format.
>>
>> Thanx
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Morten
>



-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instance assigned to multiple org units

2016-02-18 Thread Pamod Amarakoon
Dear All,

is it possible for a tracked entity instance to be assigned to multiple org
units with active enrollments for a particular programme.

I get the following json for the query.

http://xxx.xxx.xxx.xxx/api/events?trackedEntityInstance=VxxTPQ1eJII&paging=false

11050http://148.251.224.242/nss1/api/events/zHkYPz3035x"; event="zHkYPz3035x"
status="ACTIVE" eventDate="2016-01-01T18:30:00.000+" orgUnitName="Asiri
Uyana">2016-01-02T14:04:44.289+2016-01-02T14:04:44.289+falsehttp://148.251.224.242/nss1/api/events/Wlem0qlua11"; event="Wlem0qlua11"
status="ACTIVE" eventDate="2016-01-30T18:30:00.000+"
orgUnitName="Battaramulla">2016-01-17T07:23:18.812+2016-01-17T12:53:35.918+falsehttp://148.251.224.242/nss1/api/events/rZFvMF1kEOG"; event="rZFvMF1kEOG"
status="ACTIVE" eventDate="2016-02-28T18:30:00.000+"
orgUnitName="Battaramulla">2016-01-17T07:23:51.591+2016-01-17T07:23:51.591+falsehttp://148.251.224.242/nss1/api/events/Jv7yG6XuSZJ"; event="Jv7yG6XuSZJ"
status="ACTIVE" eventDate="2016-06-29T18:30:00.000+" orgUnitName="Asiri
Uyana">2016-01-02T14:04:44.296+2016-01-02T14:04:44.296+falsehttp://148.251.224.242/nss1/api/events/gb6HSyZ6s38"; event="gb6HSyZ6s38"
status="ACTIVE" eventDate="2016-01-30T18:30:00.000+"
orgUnitName="Batapotha">2016-01-17T07:20:02.005+2016-01-17T07:20:02.005+false

So the tracked entity instance with uid "VxxTPQ1eJII" is appearing under
multiple org units. but i cannot view this tracked entity instance in
tracker capture.
-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instance assigned to multiple org units

2016-02-18 Thread Pamod Amarakoon
Hi Abyot,

Thanx for the clarification. is it possible to assign a TEI to multiple org
units from Tracker Capture. Registering org unit and enrolling org units
are usually greyed out in my instance.



On Fri, Feb 19, 2016 at 1:23 AM, Abyot Asalefew Gizaw 
wrote:

> Hi,
>
> No, it is not possible to have multiple active enrollments per program at
> a time. Looking at your payload, there is only one enrollment
> (mRU4V4B5duK). What has happened is the same TEI has been to multiple
> orgunits and has got events along the way - all this has been for the same
> enrollment.
>
> For the other issue that you are not able to see a TEI, see what is coming
> under
>
> api/trackedEntityInstances/VxxTPQ1eJII.json
>
>
> The orgUnit property should tell you where the TEI is registered.
>
> ---
> Thank you,
> Abyot.
>
> On Thu, Feb 18, 2016 at 7:49 PM, Pamod Amarakoon  wrote:
>
>> Dear All,
>>
>> is it possible for a tracked entity instance to be assigned to multiple
>> org units with active enrollments for a particular programme.
>>
>> I get the following json for the query.
>>
>>
>> http://xxx.xxx.xxx.xxx/api/events?trackedEntityInstance=VxxTPQ1eJII&paging=false
>>
>> 11050> programStage="FyR0ymIDsoA" orgUnit="OvJ4fN4C4AT"
>> dueDate="2016-01-01T18:30:00.000+" program="MmGml1Gyb7K"
>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>> enrollmentStatus="ACTIVE" href="
>> http://148.251.224.242/nss1/api/events/zHkYPz3035x"; event="zHkYPz3035x"
>> status="ACTIVE" eventDate="2016-01-01T18:30:00.000+"
>> orgUnitName="Asiri
>> Uyana">2016-01-02T14:04:44.289+2016-01-02T14:04:44.289+false> latitude="0.0" longitude="0.0"/>> programStage="wS2i9c9hXXz" storedBy="admin" orgUnit="mjYyQLw4Mzp"
>> dueDate="2016-01-17T12:53:35.918+" program="MmGml1Gyb7K"
>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>> enrollmentStatus="ACTIVE" href="
>> http://148.251.224.242/nss1/api/events/Wlem0qlua11"; event="Wlem0qlua11"
>> status="ACTIVE" eventDate="2016-01-30T18:30:00.000+"
>> orgUnitName="Battaramulla">2016-01-17T07:23:18.812+2016-01-17T12:53:35.918+false> lastUpdated="2016-01-17T12:53:35.928+" storedBy="admin"
>> created="2016-01-17T12:42:08.741+" dataElement="GDhOcklahIq" value="30"
>> providedElsewhere="false"/>> programStage="wS2i9c9hXXz" orgUnit="mjYyQLw4Mzp"
>> dueDate="2016-02-28T18:30:00.000+" program="MmGml1Gyb7K"
>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>> enrollmentStatus="ACTIVE" href="
>> http://148.251.224.242/nss1/api/events/rZFvMF1kEOG"; event="rZFvMF1kEOG"
>> status="ACTIVE" eventDate="2016-02-28T18:30:00.000+"
>> orgUnitName="Battaramulla">2016-01-17T07:23:51.591+2016-01-17T07:23:51.591+false> programStage="vTWcDsFE1rf" orgUnit="OvJ4fN4C4AT"
>> dueDate="2016-06-29T18:30:00.000+" program="MmGml1Gyb7K"
>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>> enrollmentStatus="ACTIVE" href="
>> http://148.251.224.242/nss1/api/events/Jv7yG6XuSZJ"; event="Jv7yG6XuSZJ"
>> status="ACTIVE" eventDate="2016-06-29T18:30:00.000+"
>> orgUnitName="Asiri
>> Uyana">2016-01-02T14:04:44.296+2016-01-02T14:04:44.296+false> programStage="wS2i9c9hXXz" orgUnit="RECbE8BKyJ4"
>> dueDate="2016-01-30T18:30:00.000+" program="MmGml1Gyb7K"
>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>> enrollmentStatus="ACTIVE" href="
>> http://148.251.224.242/nss1/api/events/gb6HSyZ6s38"; event="gb6HSyZ6s38"
>> status="ACTIVE" eventDate="2016-01-30T18:30:00.000+"
>> orgUnitName="Batapotha">2016-01-17T07:20:02.005+2016-01-17T07:20:02.005+false
>>
>> So the tracked entity instance with uid "VxxTPQ1eJII" is appearing under
>> multiple org units. but i cannot view this tracked entity instance in
>> tracker capture.
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the info

Re: [Dhis2-devs] [Dhis2-users] Tracked Entity Instance assigned to multiple org units

2016-02-18 Thread Pamod Amarakoon
Hi Abyot,

Thanx. I was with the impression creating events at an orgUnit other than
the enrolled org unit is not possible. As u said I was trying to edit an
event happened in a different org unit (may be that's why it was greyed out)

On Fri, Feb 19, 2016 at 1:51 AM, Abyot Asalefew Gizaw 
wrote:

> What do you mean by assigning a TEI to multiple orgunits?
>
> What happens in Tracker Capture is - it is possible to register a TEI at
> orgunit A, enroll at orgUnit B and register event at orgUnit C. If this is
> what you mean by assign.
>
> what is greyed out orgunit in tree or the event boxes in data entry
> widget? You are not allowed to edit event that has happened in another
> orgunit.
>
> ---
> Thank you,
> Abyot.
>
> On Thu, Feb 18, 2016 at 9:14 PM, Pamod Amarakoon  wrote:
>
>> Hi Abyot,
>>
>> Thanx for the clarification. is it possible to assign a TEI to multiple
>> org units from Tracker Capture. Registering org unit and enrolling org
>> units are usually greyed out in my instance.
>>
>>
>>
>> On Fri, Feb 19, 2016 at 1:23 AM, Abyot Asalefew Gizaw 
>> wrote:
>>
>>> Hi,
>>>
>>> No, it is not possible to have multiple active enrollments per program
>>> at a time. Looking at your payload, there is only one enrollment
>>> (mRU4V4B5duK). What has happened is the same TEI has been to multiple
>>> orgunits and has got events along the way - all this has been for the same
>>> enrollment.
>>>
>>> For the other issue that you are not able to see a TEI, see what is
>>> coming under
>>>
>>> api/trackedEntityInstances/VxxTPQ1eJII.json
>>>
>>>
>>> The orgUnit property should tell you where the TEI is registered.
>>>
>>> ---
>>> Thank you,
>>> Abyot.
>>>
>>> On Thu, Feb 18, 2016 at 7:49 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Dear All,
>>>>
>>>> is it possible for a tracked entity instance to be assigned to multiple
>>>> org units with active enrollments for a particular programme.
>>>>
>>>> I get the following json for the query.
>>>>
>>>>
>>>> http://xxx.xxx.xxx.xxx/api/events?trackedEntityInstance=VxxTPQ1eJII&paging=false
>>>>
>>>> 11050>>> programStage="FyR0ymIDsoA" orgUnit="OvJ4fN4C4AT"
>>>> dueDate="2016-01-01T18:30:00.000+" program="MmGml1Gyb7K"
>>>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>>>> enrollmentStatus="ACTIVE" href="
>>>> http://148.251.224.242/nss1/api/events/zHkYPz3035x";
>>>> event="zHkYPz3035x" status="ACTIVE" 
>>>> eventDate="2016-01-01T18:30:00.000+"
>>>> orgUnitName="Asiri
>>>> Uyana">2016-01-02T14:04:44.289+2016-01-02T14:04:44.289+false>>> latitude="0.0" longitude="0.0"/>>>> programStage="wS2i9c9hXXz" storedBy="admin" orgUnit="mjYyQLw4Mzp"
>>>> dueDate="2016-01-17T12:53:35.918+" program="MmGml1Gyb7K"
>>>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>>>> enrollmentStatus="ACTIVE" href="
>>>> http://148.251.224.242/nss1/api/events/Wlem0qlua11";
>>>> event="Wlem0qlua11" status="ACTIVE" 
>>>> eventDate="2016-01-30T18:30:00.000+"
>>>> orgUnitName="Battaramulla">2016-01-17T07:23:18.812+2016-01-17T12:53:35.918+false>>> lastUpdated="2016-01-17T12:53:35.928+" storedBy="admin"
>>>> created="2016-01-17T12:42:08.741+" dataElement="GDhOcklahIq" value="30"
>>>> providedElsewhere="false"/>>>> programStage="wS2i9c9hXXz" orgUnit="mjYyQLw4Mzp"
>>>> dueDate="2016-02-28T18:30:00.000+" program="MmGml1Gyb7K"
>>>> trackedEntityInstance="VxxTPQ1eJII" enrollment="mRU4V4B5duK"
>>>> enrollmentStatus="ACTIVE" href="
>>>> http://148.251.224.242/nss1/api/events/rZFvMF1kEOG";
>>>> event="rZFvMF1kEOG" status="ACTIVE" 
>>>> eventDate="2016-02-28T18:30:00.000+0000"
>>>> orgUnitName="Battaramulla">2016-01-17T07:23:51.591+2016-01-17T07:23:51.591+false>>> programStage="vTWcDsFE1rf"

[Dhis2-devs] Event Date in Tracker Capture

2016-02-22 Thread Pamod Amarakoon
Dear All,

How's the event date that's displayed in tracker capture calculated. Is it
the time stamp of the particular event record in database or the converted
time to UTC?

eg: When i created an event for Feb 22 00:00 it's saved in database as Feb
22 00:00 (localtime). But output of tracker capture is 1 day less ( I
assume to convertion to UTC).

Thank you


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Event Date in Tracker Capture

2016-02-22 Thread Pamod Amarakoon
Thanx a lot Elmarie. I'll add my comments

On Tue, Feb 23, 2016 at 12:42 AM, Elmarie Claasen  wrote:

> Hi Pamod,
>
> This is a.known bug reported as
> https://bugs.launchpad.net/dhis2/+bug/1514693
>
> Apparently it is on the roadmap for 2.23. May help if you go into the bug
> and report that it affects you too.
>
> Elmarie
> On 22 Feb 2016 13:11, "Pamod Amarakoon"  wrote:
>
>> Dear All,
>>
>> How's the event date that's displayed in tracker capture calculated. Is
>> it the time stamp of the particular event record in database or the
>> converted time to UTC?
>>
>> eg: When i created an event for Feb 22 00:00 it's saved in database as
>> Feb 22 00:00 (localtime). But output of tracker capture is 1 day less ( I
>> assume to convertion to UTC).
>>
>> Thank you
>>
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>



-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] [Bug 1514693] Re: Tracker Event Date changes to previous day on refresh

2016-02-22 Thread Pamod Amarakoon
Hi,

I also experienced the same on an instance running on a server
UTC+05.30. I used web api to post events. The date appears correctly on
a the database. But on display at tracker capture, it seems to display
the date in UTC format disregarding the database date.

Hope this will be fixed soon.

Thanx

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1514693

Title:
  Tracker Event Date changes to previous day on refresh

Status in DHIS:
  New
Status in Ubuntu:
  Confirmed

Bug description:
  I posted a complete description of the bug (with the subject "Issue
  with tracker - is it a feature or a bug?") on dhis2_devs with screen
  shots from Sierra Leone.  I also demonstrated this to Ola and Markus
  while in Livingstone, Zambia and they confirmed that this is a bug
  (not just incorrect configuration).

  In short: when creating an event, the initial event date is displayed
  correctly, but when refreshing the screen or going out of event
  capture and back in again the event date has changed to the previous
  event date minus 1 day.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1514693/+subscriptions

___
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] Am trying to sync tracker data values to a central server

2016-02-28 Thread Pamod Amarakoon
Hi Ese,

My understanding was synchronization only work for aggregate data as of now.

On Sun, Feb 28, 2016 at 11:42 PM, Ese Egerega  wrote:

> Hello,
>
> Am trying to sync tracker data values from a local dhis2 instance to a
> central server.
>
> I have enabled data synchronization and all aggregate data values are
> synced but the *tracker* data are not. I also tried to export the data
> values via "Event Export" with no luck (see snapshot from dhis2 demo
> instance below). Is there something am not doing right? I have checked
> through the dhis2-users mail archive but didn't see a solution.
>
> Is there a way to automatically sync tracker data or at least export the
> data values to a central server?
>
> -Ese
>
>
> [image: Inline image 1]
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Am trying to sync tracker data values to a central server

2016-02-29 Thread Pamod Amarakoon
Hi Lars,

It certainly is useful since we are currently depending on daily backups to
mirror tracker data on sync server. Would be useful if this could be
achieved on the fly with synchronization.

On Mon, Feb 29, 2016 at 5:03 PM, Lars Helge Øverland  wrote:

> Hi Ese,
>
> the data sync only applies to aggregate data values at the moment. We can
> extend this to events (without registration) if that would be useful.
>
> regards,
>
> Lars
>
>
> On Mon, Feb 29, 2016 at 3:00 AM, Morten Olav Hansen 
> wrote:
>
>> There was a small issue in how program/programStages was displayed. I
>> have fixed this now.
>>
>> On Mon, Feb 29, 2016 at 1:33 AM, Ese Egerega  wrote:
>>
>>> Thanks Pamod,
>>> I also tried exporting the data values using Event Export but the
>>> programs are not displayed on the list. Am not sure but I think Event
>>> Export worked in earlier dhis2 releases.
>>>
>>> On Sun, Feb 28, 2016 at 7:20 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi Ese,
>>>>
>>>> My understanding was synchronization only work for aggregate data as of
>>>> now.
>>>>
>>>> On Sun, Feb 28, 2016 at 11:42 PM, Ese Egerega 
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Am trying to sync tracker data values from a local dhis2 instance to a
>>>>> central server.
>>>>>
>>>>> I have enabled data synchronization and all aggregate data values are
>>>>> synced but the *tracker* data are not. I also tried to export the
>>>>> data values via "Event Export" with no luck (see snapshot from dhis2 demo
>>>>> instance below). Is there something am not doing right? I have checked
>>>>> through the dhis2-users mail archive but didn't see a solution.
>>>>>
>>>>> Is there a way to automatically sync tracker data or at least export
>>>>> the data values to a central server?
>>>>>
>>>>> -Ese
>>>>>
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>>
>>>>> ___
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to : dhis2-us...@lists.launchpad.net
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Morten
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Am trying to sync tracker data values to a central server

2016-03-01 Thread Pamod Amarakoon
Thanks a lot Lars :)

On Mon, Feb 29, 2016 at 5:03 PM, Lars Helge Øverland  wrote:

> Hi Ese,
>
> the data sync only applies to aggregate data values at the moment. We can
> extend this to events (without registration) if that would be useful.
>
> regards,
>
> Lars
>
>
> On Mon, Feb 29, 2016 at 3:00 AM, Morten Olav Hansen 
> wrote:
>
>> There was a small issue in how program/programStages was displayed. I
>> have fixed this now.
>>
>> On Mon, Feb 29, 2016 at 1:33 AM, Ese Egerega  wrote:
>>
>>> Thanks Pamod,
>>> I also tried exporting the data values using Event Export but the
>>> programs are not displayed on the list. Am not sure but I think Event
>>> Export worked in earlier dhis2 releases.
>>>
>>> On Sun, Feb 28, 2016 at 7:20 PM, Pamod Amarakoon 
>>> wrote:
>>>
>>>> Hi Ese,
>>>>
>>>> My understanding was synchronization only work for aggregate data as of
>>>> now.
>>>>
>>>> On Sun, Feb 28, 2016 at 11:42 PM, Ese Egerega 
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Am trying to sync tracker data values from a local dhis2 instance to a
>>>>> central server.
>>>>>
>>>>> I have enabled data synchronization and all aggregate data values are
>>>>> synced but the *tracker* data are not. I also tried to export the
>>>>> data values via "Event Export" with no luck (see snapshot from dhis2 demo
>>>>> instance below). Is there something am not doing right? I have checked
>>>>> through the dhis2-users mail archive but didn't see a solution.
>>>>>
>>>>> Is there a way to automatically sync tracker data or at least export
>>>>> the data values to a central server?
>>>>>
>>>>> -Ese
>>>>>
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>>
>>>>> ___
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to : dhis2-us...@lists.launchpad.net
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Pamod Amarakoon
>>>>
>>>> Confidentiality Notice: the information contained in this email and any
>>>> attachments may be legally privileged and confidential. If you are not an
>>>> intended recipient, you are hereby notified that any dissemination,
>>>> distribution, or copying of this e-mail is strictly prohibited. If you have
>>>> received this e-mail in error, please notify the sender and permanently
>>>> delete the e-mail and any attachments immediately. You should not retain,
>>>> copy or use this e-mail or any attachments for any purpose, nor disclose
>>>> all or any part of the contents to any other person.
>>>>
>>>>
>>>>
>>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Morten
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Clear Audit Log

2016-03-07 Thread Pamod Amarakoon
Dear All,

How do I clear audit log in 2.22. I want to delete a particular event from
tracker capture, it prevents me from deleting giving an error "The event
could not be deleted because it contains an auditlog.".

Thank you

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Clear Audit Log

2016-03-09 Thread Pamod Amarakoon
Thank you Markus.

1. Are there any criteria for an event to appear in audit log or all events
appear in audit log. Any option of disabling it?

2. Can the API support delete records from audit log as of now.


On Thu, 10 Mar 2016 02:33 Markus Bekken,  wrote:

> Hi Pamod,
> when the event has an audit log there is currently no means of deleting it
> through the api(and therefore not from the apps). It can be done by first
> deleting entries in the database table trackedentitydatavalueaudit.
>
> Full support is coming, hopefully in 2.23.
>
> Markus
>
> 7. mar. 2016 kl. 18.41 skrev Pamod Amarakoon :
>
> Dear All,
>
> How do I clear audit log in 2.22. I want to delete a particular event from
> tracker capture, it prevents me from deleting giving an error "The event
> could not be deleted because it contains an auditlog.".
>
> Thank you
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
> ___
> 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 longitudinal charting

2016-03-13 Thread Pamod Amarakoon
Hi Anuradha,

Have u worked on any similar projects before. Are you clear about the
requirements mentioned at https://www.dhis2.org/gsoc2016

On Sun, Mar 13, 2016 at 10:17 AM, Anuradhe Kadurugasyaya <
anuradhe.prabh...@gmail.com> wrote:

> Hi,
>
> My name is Anuradha Prabhath. I am final year Computer Engineering Student
> in University of Peradeniya Sri Lanka. I am very interested about to
> contribute to 'Tracker longitudinal charting' project in this summer.
>
> Thank you,
> Anuradha.
>
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analytics Engine in Maintenance Mode

2016-03-15 Thread Pamod Amarakoon
Hi,

I'm facing this issue in 2.22 build 21900

Event report doesn't seem to produce any report and in console it gives
rise to an error which goes as
"

{"httpStatus":"Service
Unavailable","httpStatusCode":503,"status":"ERROR","message":"Analytics
engine is in maintenance mode, try again later"}"

I tried clearing analytics table from maintenance and regenerating and
finally restarted the instance but it still gives this errors.

How to get analytics engine live.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Analytics Engine in Maintenance Mode

2016-03-15 Thread Pamod Amarakoon
Thanx Lars.

Didn't notice that option and don't remember enabling it. Back online :)

But as soon as I got the output in events report, there's a new thing i
noted. The values in individual events and aggregated values of same events
do not tally. Any reason why it happens.



​
Thanx a lot !

On Tue, Mar 15, 2016 at 11:41 PM, Lars Helge Øverland 
wrote:

> Hi Pamod,
>
> can you go to system settings > general > Put analytics in maintenance
> mode and verify that the setting is not enabled?
>
> regards,
>
> Lars
>
>
> On Tue, Mar 15, 2016 at 7:01 PM, Pamod Amarakoon  wrote:
>
>> Hi,
>>
>> I'm facing this issue in 2.22 build 21900
>>
>> Event report doesn't seem to produce any report and in console it gives
>> rise to an error which goes as
>> "
>>
>> {"httpStatus":"Service 
>> Unavailable","httpStatusCode":503,"status":"ERROR","message":"Analytics 
>> engine is in maintenance mode, try again later"}"
>>
>> I tried clearing analytics table from maintenance and regenerating and
>> finally restarted the instance but it still gives this errors.
>>
>> How to get analytics engine live.
>>
>> Thanx
>>
>> --
>> Regards,
>> Pamod Amarakoon
>>
>> Confidentiality Notice: the information contained in this email and any
>> attachments may be legally privileged and confidential. If you are not an
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this e-mail is strictly prohibited. If you have
>> received this e-mail in error, please notify the sender and permanently
>> delete the e-mail and any attachments immediately. You should not retain,
>> copy or use this e-mail or any attachments for any purpose, nor disclose
>> all or any part of the contents to any other person.
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Incompatible values at Event Report

2016-03-19 Thread Pamod Amarakoon
Hi,

Any update on this. Couldn't find out what's wrong yet.

On Thu, Mar 17, 2016 at 10:26 AM, Pamod Amarakoon  wrote:

> Dear All,
>
> I have a particular instance newly setup, which are providing inconsistent
> totals in aggregated values compared to what's displayed on individual
> events overview. Screenshots as below.
>
>
>
> ​
> What may be causing this. Any advice on how to fix this.
>
> Thanx a lot  !
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Incompatible values at Event Report

2016-03-19 Thread Pamod Amarakoon
Dear All,

I have a particular instance newly setup, which are providing inconsistent
totals in aggregated values compared to what's displayed on individual
events overview. Screenshots as below.



​
What may be causing this. Any advice on how to fix this.

Thanx a lot  !

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] gsoc project - Tracker longitudinal charting

2016-03-22 Thread Pamod Amarakoon
Hi Janitha,

Thank you for your interest. Please let us know whether you understand the
project scope with the description provided at
https://www.dhis2.org/gsoc2016. We have included an elaborated overview
which could be accessed at
https://drive.google.com/file/d/0Bzu3IhThfb_mZ2taTGxpemMxSkhhVkozMHJDRmxETy1VZUhN/view

And also let us know your past experiences working with similar
applications if any.



On Tue, Mar 22, 2016 at 9:25 PM, Araz Abishov  wrote:

> Hello Janitha,
>
> I am including project mentors in discussion, so they can give you better
> overview of the project.
>
> Best Regards,
> Araz Abishov
>
> —
> Araz Abishov,
> Android developer at DHIS2
> University of Oslo
> https://www.dhis2.org/
>
> On March 21, 2016 at 5:18:29 PM, Janitha Lokuge (janitha...@cse.mrt.ac.lk)
> wrote:
>
> hi team,
>
> I am interested in doing gsoc project - Tracker longitudinal charting and
> i would like to know more about this project. Currently I am a final year
> student at  Computer Science and Engineering department of
> university of Moratuwa Sri Lanka.
>
> I have experience in HTML/CSS/JavaScript, HTTP, REST and open-web app.Apart
> from that i have experience in java script framework like EmberJS,
> AngularJS. and  chart libraries like C3, D3.
> Thank You !
>
> best regards,
> Janitha Lokuge,
> Computer Science & Engineering Department,
> University of Moratuwa,
> Sri Lanka.
> ___
> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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


  1   2   >