[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20885: Minor

2015-10-27 Thread noreply

revno: 20885
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Wed 2015-10-28 00:33:57 -0400
message:
  Minor
modified:
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java'
--- dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java	2015-10-28 02:23:35 +
+++ dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java	2015-10-28 04:33:57 +
@@ -128,9 +128,11 @@
 public boolean isLdapConfigured()
 {
 String ldapUrl = getProperty( ConfigurationKey.KEY_LDAP_URL );
+String managerDn = getProperty( ConfigurationKey.KEY_LDAP_MANAGER_DN );
 String dnPatterns = getProperty( ConfigurationKey.KEY_LDAP_DN_PATTERNS );
-
+
 return !( ConfigurationKey.KEY_LDAP_URL.getDefaultValue().equals( ldapUrl ) ||
+ConfigurationKey.KEY_LDAP_MANAGER_DN.getDefaultValue().equals( managerDn ) ||
 ConfigurationKey.KEY_LDAP_DN_PATTERNS.getDefaultValue().equals( dnPatterns ) );
 }
 }

___
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] Bulk Deletion of Data

2015-10-27 Thread Morten Olav Hansen
>
> With blueprint #1
>
> https://blueprints.launchpad.net/dhis2/+spec/webapi-bulk-deletion-of-tracker-objects
> it doesn't mention the deletion of the data values itself. Would the
> deletion of events via the web api also cascade delete the underlying data
> values?
>

Yes, it should work that way. What you do is this (for events)
{ "events": [
  { "event": "id1" },
  { "event": "id2" }
] }

Then send with
curl -u user:pass -X POST -d @events.json -H "Content-Type:
application/json" http://server:port/api/events?strategy=DELETE


> Alternately, how would I delete single tracked entity data values via the
> web API? I can't seem to find any API call specifically for these values.
>

curl -X DELETE -u user:pass http://server:port/api/events/ID should work


> And for datasets, I have tried sending a delete request for a specific
> data value but I get a 406. Not sure if I am doing something wrong? I've
> pasted my curl and results below for both GET and DELETE.
>

I'm not sure exactly why we have this requirement, but you need to use -H
"Accept: text/plain" (with curl), I will look into it..

--
Morten


>
> Thanks,
>
> Lorill
>
> curl "
> http://localhost:8090/dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC";
> -X GET -u admin:district -v
>
> *   Trying ::1...
>
> * Connected to localhost (::1) port 8090 (#0)
>
> * Server auth using Basic with user 'admin'
>
> > GET /dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC HTTP/1.1
>
> > Host: localhost:8090
>
> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
>
> > User-Agent: curl/7.43.0
>
> > Accept: */*
>
> >
>
> < HTTP/1.1 200 OK
>
> < Server: Apache-Coyote/1.1
>
> < X-XSS-Protection: 1; mode=block
>
> < X-Frame-Options: DENY
>
> < X-Content-Type-Options: nosniff
>
> < Set-Cookie: JSESSIONID=3F51C4A3F10135A648E45BAF42818AB7; Path=/dhis/;
> HttpOnly
>
> < ETag: "0ab3ca659aa5fc585fa72c6474d6b21df"
>
> < Content-Type: application/json;charset=UTF-8
>
> < Content-Language: en-US
>
> < Content-Length: 10
>
> < Date: Tue, 27 Oct 2015 19:16:29 GMT
>
> <
>
> * Connection #0 to host localhost left intact
>
> ["396411"]
>
> ---
>
> curl "
> http://localhost:8090/dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC";
> -X DELETE -u admin:district -v
>
> *   Trying ::1...
>
> * Connected to localhost (::1) port 8090 (#0)
>
> * Server auth using Basic with user 'admin'
>
> > DELETE /dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC
> HTTP/1.1
>
> > Host: localhost:8090
>
> > Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
>
> > User-Agent: curl/7.43.0
>
> > Accept: */*
>
> >
>
> < HTTP/1.1 406 Not Acceptable
>
> < Server: Apache-Coyote/1.1
>
> < X-XSS-Protection: 1; mode=block
>
> < X-Frame-Options: DENY
>
> < X-Content-Type-Options: nosniff
>
> < Set-Cookie: JSESSIONID=10438B228DF6F9FEF289CA05A3E9CA5F; Path=/dhis/;
> HttpOnly
>
> < Content-Type: text/html;charset=utf-8
>
> < Content-Language: en
>
> < Content-Length: 1110
>
> < Date: Tue, 27 Oct 2015 19:16:35 GMT
>
> <
>
> * Connection #0 to host localhost left intact
>
> Apache Tomcat/8.0.21 - Error
> reportH1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}.line {height: 1px;
> background-color: #525D76; border: none;} HTTP
> Status 406 - type Status
> reportmessage description The
> resource identified by this request is only capable of generating responses
> with characteristics not acceptable according to the request "accept"
> headers.Apache Tomcat/8.0.21
>
>
>
> On Tue, Oct 27, 2015 at 1:07 AM, Morten Olav Hansen 
> wrote:
>
>> Just FYI, we have two blueprints related to this in 2.22, [1] is
>> implemented already and [2] will hopefully come (but we are still
>> discussing implementation details for that one)
>>
>> [1]
>> https://blueprints.launchpad.net/dhis2/+spec/webapi-bulk-deletion-of-tracker-objects
>> [2] https://blueprints.launchpad.net/dhis2/+spec/soft-event-delete
>>
>> --
>> Morten
>>
>> On Tue, Oct 27, 2015 at 4:01 PM, Knut Staring  wrote:
>>
>>> My interpretation was that they would like a flag on each datavalue to
>>> say whether it is still current - which I guess would require an extension
>>> of that table. However, we do have something akin to this, namely the audit
>>> functionality, which preserves the history of earlier (overwritten) values
>>> - perhaps that could be leveraged?
>>>
>>> Knut
>>>
>>> On Tue, Oct 27, 2015 at 5:50 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 Hi Aaron,

 There is no "soft dele

Re: [Dhis2-devs] OpenFuturePeriods issue with DHIS 2 v 2.21 Upgrade

2015-10-27 Thread Lars Helge Øverland
Hi Lorill,

this is admittedly a bit confusing but expected behavior per now.

In 2.21 we have made the rules for data import a bit stricter and made it
consistent with the rules for direct data entry. The rule is that by
default you cannot enter data for a period for which the end date is in the
future (i.e period is not over). This is done to prevent people from
entering data before the period is over, and makes sense e.g. for service
delivery data (you cannot enter number of people treated for X before the
period is over). For some types of data, e.g. population data, this is not
ideal, as you want to enter population for future periods. To handle that
you can set the "open future periods" to a value higher than 0.

So you are correct in that this behavior has changed in 2.21, and that is
seems a bit strange. That said, given the logic explained above it gives
you better control of what data is imported. E.g. when you allow regular
users to import data you want to impose stricter control over the data that
can be imported. So we plan to keep this constraint in place for now - you
can just adjust the "allow future periods" value to work around it.

regards,

Lars






On Tue, Oct 27, 2015 at 6:52 PM, Lorill Crees  wrote:

> Hi,
>
> We're in the process of testing out an upgrade to v 2.21 and are
> encountering a new issue with the upload of data values via the API in
> regards to the openFuturePeriods field.
>
> The dataset we're uploading data to is set to yearly data, and the data we
> are uploading has a period of "2015". The openFuturePeriods field is set to
> "0". When uploading we get the error:
> "Data element does not allow for future periods through data sets:
> y8oCRZx5gMs"
>
> Testing setting the openFuturePeriods to "1" gets rid of the error.
>
> However, in v 2.20 we could upload data for 2015 (current year) with no
> problem when the openFuturePeriods was set to "0".
>
> Has something changed in the logic for how dates are calculated for
> openFuturePeriods? We wouldn't consider the current year to be a future
> year.
>
> Please help!
>
> Thanks,
>
> Lorill
>
> ___
> 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 
___
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] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20884: Minor

2015-10-27 Thread noreply

revno: 20884
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Tue 2015-10-27 22:23:35 -0400
message:
  Minor
modified:
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationPropertyFactoryBean.java
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationPropertyFactoryBean.java'
--- dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationPropertyFactoryBean.java	2015-10-27 03:18:11 +
+++ dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationPropertyFactoryBean.java	2015-10-28 02:23:35 +
@@ -1,5 +1,33 @@
 package org.hisp.dhis.external.conf;
 
+/*
+ * Copyright (c) 2004-2015, University of Oslo
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of the HISP project nor the names of its contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
 import java.util.List;
 
 /*

=== modified file 'dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java'
--- dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java	2015-10-27 14:11:44 +
+++ dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java	2015-10-28 02:23:35 +
@@ -129,7 +129,7 @@
 {
 String ldapUrl = getProperty( ConfigurationKey.KEY_LDAP_URL );
 String dnPatterns = getProperty( ConfigurationKey.KEY_LDAP_DN_PATTERNS );
-
+
 return !( ConfigurationKey.KEY_LDAP_URL.getDefaultValue().equals( ldapUrl ) ||
 ConfigurationKey.KEY_LDAP_DN_PATTERNS.getDefaultValue().equals( dnPatterns ) );
 }

___
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] OpenFuturePeriods issue with DHIS 2 v 2.21 Upgrade

2015-10-27 Thread Lorill Crees
Hi,

We're in the process of testing out an upgrade to v 2.21 and are
encountering a new issue with the upload of data values via the API in
regards to the openFuturePeriods field.

The dataset we're uploading data to is set to yearly data, and the data we
are uploading has a period of "2015". The openFuturePeriods field is set to
"0". When uploading we get the error:
"Data element does not allow for future periods through data sets:
y8oCRZx5gMs"

Testing setting the openFuturePeriods to "1" gets rid of the error.

However, in v 2.20 we could upload data for 2015 (current year) with no
problem when the openFuturePeriods was set to "0".

Has something changed in the logic for how dates are calculated for
openFuturePeriods? We wouldn't consider the current year to be a future
year.

Please help!

Thanks,

Lorill
___
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] Bulk Deletion of Data

2015-10-27 Thread Lorill Crees
Thanks for this Morten. Just to clarify the business need here, the desire
is to completely delete a dataset or a program from DHIS 2 which is not
possible when associated data value records are in the database.

With blueprint #1
https://blueprints.launchpad.net/dhis2/+spec/webapi-bulk-deletion-of-tracker-objects
it doesn't mention the deletion of the data values itself. Would the
deletion of events via the web api also cascade delete the underlying data
values?

Alternately, how would I delete single tracked entity data values via the
web API? I can't seem to find any API call specifically for these values.

And for datasets, I have tried sending a delete request for a specific data
value but I get a 406. Not sure if I am doing something wrong? I've pasted
my curl and results below for both GET and DELETE.

Thanks,

Lorill

curl "
http://localhost:8090/dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC";
-X GET -u admin:district -v

*   Trying ::1...

* Connected to localhost (::1) port 8090 (#0)

* Server auth using Basic with user 'admin'

> GET /dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC HTTP/1.1

> Host: localhost:8090

> Authorization: Basic YWRtaW46ZGlzdHJpY3Q=

> User-Agent: curl/7.43.0

> Accept: */*

>

< HTTP/1.1 200 OK

< Server: Apache-Coyote/1.1

< X-XSS-Protection: 1; mode=block

< X-Frame-Options: DENY

< X-Content-Type-Options: nosniff

< Set-Cookie: JSESSIONID=3F51C4A3F10135A648E45BAF42818AB7; Path=/dhis/;
HttpOnly

< ETag: "0ab3ca659aa5fc585fa72c6474d6b21df"

< Content-Type: application/json;charset=UTF-8

< Content-Language: en-US

< Content-Length: 10

< Date: Tue, 27 Oct 2015 19:16:29 GMT

<

* Connection #0 to host localhost left intact

["396411"]

---

curl "
http://localhost:8090/dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC";
-X DELETE -u admin:district -v

*   Trying ::1...

* Connected to localhost (::1) port 8090 (#0)

* Server auth using Basic with user 'admin'

> DELETE /dhis/api/dataValues?de=YBl3JnHlR5F&pe=2015&ou=qubeTudDNSC HTTP/1.1

> Host: localhost:8090

> Authorization: Basic YWRtaW46ZGlzdHJpY3Q=

> User-Agent: curl/7.43.0

> Accept: */*

>

< HTTP/1.1 406 Not Acceptable

< Server: Apache-Coyote/1.1

< X-XSS-Protection: 1; mode=block

< X-Frame-Options: DENY

< X-Content-Type-Options: nosniff

< Set-Cookie: JSESSIONID=10438B228DF6F9FEF289CA05A3E9CA5F; Path=/dhis/;
HttpOnly

< Content-Type: text/html;charset=utf-8

< Content-Language: en

< Content-Length: 1110

< Date: Tue, 27 Oct 2015 19:16:35 GMT

<

* Connection #0 to host localhost left intact

Apache Tomcat/8.0.21 - Error
reportH1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}.line {height: 1px;
background-color: #525D76; border: none;} HTTP
Status 406 - type Status
reportmessage description The
resource identified by this request is only capable of generating responses
with characteristics not acceptable according to the request "accept"
headers.Apache Tomcat/8.0.21



On Tue, Oct 27, 2015 at 1:07 AM, Morten Olav Hansen 
wrote:

> Just FYI, we have two blueprints related to this in 2.22, [1] is
> implemented already and [2] will hopefully come (but we are still
> discussing implementation details for that one)
>
> [1]
> https://blueprints.launchpad.net/dhis2/+spec/webapi-bulk-deletion-of-tracker-objects
> [2] https://blueprints.launchpad.net/dhis2/+spec/soft-event-delete
>
> --
> Morten
>
> On Tue, Oct 27, 2015 at 4:01 PM, Knut Staring  wrote:
>
>> My interpretation was that they would like a flag on each datavalue to
>> say whether it is still current - which I guess would require an extension
>> of that table. However, we do have something akin to this, namely the audit
>> functionality, which preserves the history of earlier (overwritten) values
>> - perhaps that could be leveraged?
>>
>> Knut
>>
>> On Tue, Oct 27, 2015 at 5:50 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Aaron,
>>>
>>> There is no "soft delete" function, if that is what you are after, but
>>> it has been discussed.
>>>
>>> Although there is no direct way as Lars points out, if you know what you
>>> wish to delete, it is still possible.  Namely, if you transmit a "" value
>>> for the value which you wish to delete, it will be deleted. Thus, if you
>>> wish to delete all values for a given dataset/OU/period, you can get all of
>>> the values from the API, then set them all to "", and upload the data
>>> again.  I think you can also use the DELETE verb as documented here

Re: [Dhis2-devs] problem on the reporting rate

2015-10-27 Thread Elmarie Claasen
Hi,

 

There is a blueprint for fixing this problem here 
https://blueprints.launchpad.net/dhis2/+spec/respect-org-unit-active-closed-date
 

The issue you are experiencing is related to the fact that all orgunits are 
counted in report rates instead of only open orgunits. 

We have the same problem but it also affects indicator formula calculations 
where a count of orgunitgroups are used. 

Hopefully it will be fixed soon – I see it is on Milestones for 2.22…

 

Regards,

 

Elmarie Claasen

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. 

 

From: Dhis2-devs 
[mailto:dhis2-devs-bounces+elmarie=hisp@lists.launchpad.net] On Behalf Of 
papa alioune Sokhna
Sent: 27 October 2015 12:35 PM
To: DHIS 2 Developers list; dhis2-us...@lists.launchpad.net
Subject: [Dhis2-devs] problem on the reporting rate

 

Hello

 I am using DHIS 2 version 2.18.

There is an issue regarding the completeness rate on the DHIS2. When DHIS2 is 
calculating the completeness rate for a district, sometime the total number of 
expected health facilities exceeds the total number of health facilities in the 
district. The same situation happens to others district.

 For a reference, see below a screenshot for the district of SAINT-LOUIS.

 

 

Regards

 

-- 

Papa Alioune SOKHNA

Informaticien 

Spécialité: développement d'application web, mobile et logiciels surs

Tel: +221 77 442 16 22 


-- 


*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.*
___
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 1510664] [NEW] Data integrity check shows error in indicator formula when denominator = sum of orgunitgroups

2015-10-27 Thread Elmarie Claasen
Public bug reported:

The data integrity checker incorrectly displays an integrity violation on 
indicators using the sum of OrganisationUnitGroups e.g. Clinic+Community Day 
Centre+Community Health Centre as the denominator value. 
The specific integrity check that displays an error is Invalid Indicator 
Denominators. 
The indicator also calculates correctly so there are no issues with the 
denominator formulae.

Tested on SL demo and same error occurs for indicators: 
Public facilities with access to Internet connectivity: 
org_unit_group_does_not_exist
Public facilities with access to running water: org_unit_group_does_not_exist
Public facilities with access to stable electrical power: 
org_unit_group_does_not_exist

Local version tested: 
2.20 build revision 16792

SL demo version: 
2.21 build revision 20853

The integrity check does not seem to be well formulated.

** Affects: dhis2
 Importance: Undecided
 Status: New

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

Title:
  Data integrity check shows error in indicator formula when denominator
  = sum of orgunitgroups

Status in DHIS:
  New

Bug description:
  The data integrity checker incorrectly displays an integrity violation on 
indicators using the sum of OrganisationUnitGroups e.g. Clinic+Community Day 
Centre+Community Health Centre as the denominator value. 
  The specific integrity check that displays an error is Invalid Indicator 
Denominators. 
  The indicator also calculates correctly so there are no issues with the 
denominator formulae.

  Tested on SL demo and same error occurs for indicators: 
  Public facilities with access to Internet connectivity: 
org_unit_group_does_not_exist
  Public facilities with access to running water: org_unit_group_does_not_exist
  Public facilities with access to stable electrical power: 
org_unit_group_does_not_exist

  Local version tested: 
  2.20 build revision 16792

  SL demo version: 
  2.21 build revision 20853

  The integrity check does not seem to be well formulated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1510664/+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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20883: Minor

2015-10-27 Thread noreply

revno: 20883
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Tue 2015-10-27 14:06:21 -0400
message:
  Minor
modified:
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/DhisBindAuthenticator.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/DhisBindAuthenticator.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/DhisBindAuthenticator.java	2015-10-27 14:11:44 +
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/DhisBindAuthenticator.java	2015-10-27 18:06:21 +
@@ -59,7 +59,6 @@
 {
 boolean ldapConf = configurationProvider.isLdapConfigured();
 
-System.out.println( "IS LDAP CONF " + ldapConf );
 if ( !ldapConf )
 {
 throw new BadCredentialsException( "LDAP authentication is not configured" );

___
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] dhis version 2.21 is released

2015-10-27 Thread Morten Olav Hansen
Great :)

--
Morten

On Tue, Oct 27, 2015 at 6:15 PM, Harivola RANDRIANJAFY 
wrote:

> Morten,
>
>
>
> Great, all works perfectly with 2.21 after reinstalling to latest tomcat7
> J
>
>
>
> BIG THANKS,
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* mardi 27 octobre 2015 11:59
>
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> You sure you are running this with the same tomcat? (as when you tried
> with empty database)
>
>
>
> GRAVE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeSyntaxError$Prototype.class] from Jar
> [jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar!/] for
> annotations
>
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 15
>
>
>
>
> http://stackoverflow.com/questions/23484098/invalid-byte-tag-in-constant-pool-tomcat7-war-jdk-incompatibilty
>
>
>
> Try and upgrade to the latest tomcat 7 (or tomcat 8) and see if it works
> for you, not sure why you wouldn't see this with an empty database though..
>
>
>
>
> --
> Morten
>
>
>
> On Tue, Oct 27, 2015 at 4:49 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Please find attached the actually catalina.out log file.
>
>
>
> This gives the white screen webpage
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* mardi 27 octobre 2015 11:22
>
>
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> Ok, thats great.
>
>
>
> There must be something in catalina.out that gives you a hint? probably
> something happen during our startup routines that make dhis not start up
> (seems very likely since it works on a new database)
>
>
> --
> Morten
>
>
>
> On Tue, Oct 27, 2015 at 4:08 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Hi Morten,
>
>
>
> Java – version gives
>
> java version "1.8.0_66"
>
> Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
>
>
>
> And java 8 is the active jre
>
> After restarting server and creating a new database in postgres, it WORKS
> PERFECTLY J but the old database (backup from 2.20) could not be restored
> and could not accessed with 2.21 through pg_restore - or working with the
> old database (2.20),  it gives white webpage.
>
>
>
> Your suggestions ?
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* lundi 26 octobre 2015 16:33
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi
>
>
>
> There is nothing too useful in that log. Please make sure that you also
> restartet your server (it can be required sometimes), and make sure to
> properly clean out you webapps directory.
>
>
>
> Also, please do java -version and verify that you have java 8 as the
> active jre
>
>
> --
> Morten
>
>
>
> On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Please find attached the catalina log file after starting tomcat in 2.21
> version.
>
>
>
> Harivola
>
>
>
>
>
>
>
> *De :* Harivola RANDRIANJAFY [mailto:harivo...@psi.mg]
> *Envoyé :* lundi 26 octobre 2015 15:36
> *À :* 'Shurajit Dutta' 
> *Cc :* 'Lars Helge Øverland' ; 'DHIS 2 Users list' <
> dhis2-us...@lists.launchpad.net>; 'dhis2-devs' <
> dhis2-devs@lists.launchpad.net>
> *Objet :* RE: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Nick
>
>
>
> Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7
>
>
>
> Harivola
>
>
>
> *De :* Shurajit Dutta [mailto:shurajitdu...@gmail.com
> ]
> *Envoyé :* lundi 26 octobre 2015 12:18
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Lars Helge Øverland ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>
> *Objet :* Re: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Harivola,
>
>
>
> When using 2.21 are you also using java 8 and tomcat 7?
>
>
>
> Nick
>
>
>
> On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Hi Lars,
>
>
>
> Thank you for this great work, I am using now 2.20 (build 19960) in test
> server. Upgrading this into 2.21, I am facing with blank screen (no login
> action). Downgrading into 2.20, the tracked entity instance in Individual
> records could not be accessed -  likewise in Tracker Capture, all tracked
> entity already registered could not be accessed in dashboard Tracker.
>
>
>
> Please, could you help on this ?
>
>
>
> Sincerely,
>
>
>
> Harivola
>
>
>

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20882: pt noext

2015-10-27 Thread noreply

revno: 20882
committer: Jan Henrik Overland 
branch nick: dhis2
timestamp: Tue 2015-10-27 16:20:53 +0100
message:
  pt noext
added:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html	1970-01-01 00:00:00 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/index2.html	2015-10-27 15:20:53 +
@@ -0,0 +1,37 @@
+
+
+
+
+
+	
+
+Pivot Table
+
+	
+	
+
+
+
+
+DHIS 2PIVOT TABLE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+	
+
+
+
+

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js	1970-01-01 00:00:00 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app2.js	2015-10-27 15:20:53 +
@@ -0,0 +1,3 @@
+Ext.onReady( function() {
+	var NS = PT;
+

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js	1970-01-01 00:00:00 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js	2015-10-27 15:20:53 +
@@ -0,0 +1,282 @@
+$( function() {
+var NS = PT = {};
+
+// NS i18n
+(function() {
+var i18n = function(config) {
+this.map = config || {};
+};
+
+i18n.prototype.get = function(key) {
+return this.map[key];
+};
+
+i18n.prototype.add = function(obj) {
+$.extend(this.map, obj);
+};
+
+NS.i18n = new i18n();
+})();
+
+// NS conf
+(function() {
+var conf = function() {
+var me = this;
+
+this.finals = {
+dimension: {
+	data: {
+		value: 'data',
+		name: NS.i18n.data || 'Data',
+		dimensionName: 'dx',
+		objectName: 'dx'
+	},
+	category: {
+		name: NS.i18n.assigned_categories || 'Assigned categories',
+		dimensionName: 'co',
+		objectName: 'co',
+	},
+	indicator: {
+		value: 'indicators',
+		name: NS.i18n.indicators || 'Indicators',
+		dimensionName: 'dx',
+		objectName: 'in'
+	},
+	dataElement: {
+		value: 'dataElements',
+		name: NS.i18n.data_elements || 'Data elements',
+		dimensionName: 'dx',
+		objectName: 'de'
+	},
+	operand: {
+		value: 'operand',
+		name: 'Operand',
+		dimensionName: 'dx',
+		objectName: 'dc'
+	},
+	dataSet: {
+		value: 'dataSets',
+		name: NS.i18n.data_sets || 'Data sets',
+		dimensionName: 'dx',
+		objectName: 'ds'
+	},
+	eventDataItem: {
+		value: 'eventDataItem',
+		name: NS.i18n.event_data_items || 'Event data items',
+		dimensionName: 'dx',
+		objectName: 'di'
+	},
+	programIndicator: {
+		value: 'programIndicator',
+		name: NS.i18n.program_indicators || 'Program indicators',
+		dimensionName: 'dx',
+		objectName: 'pi'
+	},
+	period: {
+		value: 'period',
+		name: NS.i18n.periods || 'Periods',
+		dimensionName: 'pe',
+		objectName: 'pe'
+	},
+	fixedPeriod: {
+		value: 'periods'
+	},
+	relativePeriod: {
+		value: 'relativePeriods'
+	},
+	organisationUnit: {
+		value: 'organisationUnits',
+		name: NS.i18n.organisation_units || 'Organisation units',
+		dimensionName: 'ou',
+		objectName: 'ou'
+	},
+	dimension: {
+		value: 'dimension'
+		//objectName: 'di'
+	},
+	value: {
+		value: 'value'
+	}
+},
+root: {
+	id: 'root'
+},
+style: {
+'normal': 'NORMAL',
+'compact': 'COMPACT',
+'xcompact': 'XCOMPACT',
+'comfortable': 'COMFORTABLE',
+'xcomfortable': 'XCOMFORTABLE',
+'small': 'SMALL',
+'xsmall': 'XSMALL',
+'large': 'LARGE',
+'xlarge': 'XLARGE',
+'space': 'SPACE',
+'comma': 'COMMA',
+'none': 'NONE',
+'default_': 'DEFAULT'
+}
+			};
+
+(function() {
+var dimConf = me.finals.dimension;
+
+dimConf.objectNameMap = 

Re: [Dhis2-devs] problem on the reporting rate

2015-10-27 Thread Dapo Adejumo
Hi Papa,
Do you have an orgunit level between the District and Facility? If yes , can 
you check if this dataset has been assigned to any of member of this level or 
the district itself.

……… 
Regards, 
Dapo Adejumo 
+2348033683677 
Skype : dapojorge 

- Original Message -
From: "papa alioune Sokhna" 
To: "DHIS 2 Developers list" , 
dhis2-us...@lists.launchpad.net
Sent: Tuesday, October 27, 2015 11:34:48 AM
Subject: [Dhis2-devs] problem on the reporting rate





Hello 

I am using DHIS 2 version 2.18. 

There is an issue regarding the completeness rate on the DHIS2. When DHIS2 is 
calculating the completeness rate for a district, sometime the total number of 
expected health facilities exceeds the total number of health facilities in the 
district. The same situation happens to others district. 

For a reference, see below a screenshot for the district of SAINT-LOUIS. 






Regards 

-- 


Papa Alioune SOKHNA 
Informaticien 

Spécialité: développement d'application web, mobile et logiciels surs 
Tel: +221 77 442 16 22 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20881: Introduced LDAP authentication support. The flow: 1. user logs into dhis with a username / passwo...

2015-10-27 Thread noreply
Merge authors:
  Lars Helge Øverland (larshelge)

revno: 20881 [merge]
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Tue 2015-10-27 10:11:44 -0400
message:
  Introduced LDAP authentication support. The flow: 1. user logs into dhis with 
a username / password. 2. username/password is matched/authenticated against 
dhis database. 3. if not successful, username is included in a pattern for the 
ldap DN (distinguished name) and a bind is attempted against LDAP server. 4. if 
authentication is successful, the username is used to look up a matching dhis 
user, from which we fetch the authorities / user roles. 5. If found, from now 
on, the combined ldap credentials and dhis authorities are assembled and used 
for the user session. Also introduced a DhisConfigurationProvider which loads 
properties from the dhis configuration file (can be reused for other purposes).
added:
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/ldap/authentication/DhisBindAuthenticator.java
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationPropertyFactoryBean.java
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DefaultDhisConfigurationProvider.java
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/DhisConfigurationProvider.java
  
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/SecurityUtils.java
modified:
  dhis-2/dhis-services/dhis-service-core/pom.xml
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUserDetailsService.java
  
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/security.xml
  
dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/location/DefaultLocationManager.java
  
dhis-2/dhis-support/dhis-support-external/src/main/resources/META-INF/dhis/beans.xml
  
dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/ConnectionPropertyFactoryBean.java
  dhis-2/dhis-support/dhis-support-system/pom.xml
  
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/DefaultAuthenticationSuccessHandler.java
  dhis-2/pom.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/pom.xml'
--- dhis-2/dhis-services/dhis-service-core/pom.xml	2015-10-20 22:50:17 +
+++ dhis-2/dhis-services/dhis-service-core/pom.xml	2015-10-25 19:44:21 +
@@ -93,8 +93,12 @@
   org.apache.jclouds.provider
   aws-s3
 
-
- 
+
+  org.springframework.security
+  spring-security-ldap
+
+
+
 
 
   org.smslib

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUserDetailsService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUserDetailsService.java	2015-01-17 07:41:26 +
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/DefaultUserDetailsService.java	2015-10-25 20:30:23 +
@@ -1,49 +1,15 @@
 package org.hisp.dhis.security;
 
-/*
- * Copyright (c) 2004-2015, University of Oslo
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of the HISP project nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIA

Re: [Dhis2-devs] Exporting Indicators from the DHIS 2 Demo to my Instance

2015-10-27 Thread Johan Ivar Sæbø

Hi Gerald,

For making formulae with constants, you can just enter these figures in 
the texbox "Formula" in the numerator and denominator boxes of the 
indicators.


More here, info on constants at the bottom:

https://www.dhis2.org/doc/snapshot/en/user/html/ch13.html

I would not put something like expected pregnancies as a constant 
though, but rather as a data element. Then the indicator using that data 
element in the formula would be valid for all organization units you 
have the number of expected pregnancies for. If you only have the 
national figure, it would still be better to make a data element rather 
than a constant, as you would get missing figures for districts or lower 
rather than very wrong indicator values. Typically you would have a 
"population figures" dataset with such figures (age group populations, 
expected pregnancies, etc), set for annual data "collection" (in most 
cases meaning calculation based on previous estimates/census and growth 
rates).


Johan


On 27.10.2015 12:48, gerald thomas wrote:

Dear All,
How can I insert "Constant" for indicator calculation. For example
Expected Pregnancies = 243 951 in the Demo Instance or Pi

On 10/27/15, gerald thomas  wrote:

Dear All,
I am finding it hard to create indicators on my local instance because
when i did pivot there is no output. Is there any way i can export and
import indicators from the Demo instance to my local instance.

Please help.

--
Regards,

Gerald







___
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] Exporting Indicators from the DHIS 2 Demo to my Instance

2015-10-27 Thread gerald thomas
Dear All,
How can I insert "Constant" for indicator calculation. For example
Expected Pregnancies = 243 951 in the Demo Instance or Pi

On 10/27/15, gerald thomas  wrote:
> Dear All,
> I am finding it hard to create indicators on my local instance because
> when i did pivot there is no output. Is there any way i can export and
> import indicators from the Demo instance to my local instance.
>
> Please help.
>
> --
> Regards,
>
> Gerald
>


-- 
Regards,

Gerald

___
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] Exporting Indicators from the DHIS 2 Demo to my Instance

2015-10-27 Thread gerald thomas
Dear All,
I am finding it hard to create indicators on my local instance because
when i did pivot there is no output. Is there any way i can export and
import indicators from the Demo instance to my local instance.

Please help.

-- 
Regards,

Gerald

___
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] Translations of DHIS2

2015-10-27 Thread Annisa Ristya
Hi Jason

Thanks for the update. We are currently doing the translation of dhis2 for
indonesian language in translate.dhis2.net
I notice it is a different web but I just want to make sure, is it related
with the address you mentioned on your previous email?
One more question, when we are done with the translation, what should we do
to proceed with the translation seetting?

Regards,

Annisa
On 27 Oct 2015 14:18, "Jason Pickering"  wrote:

> To all translators.
>
> Please note that the development team is in the process of changing the
> workflow for translations of the DHIS2 user interface. If you are currently
> translating the application with the help of the translation server (
> http://translate.dhis2.org) please DO NOT put your translations in the
> "DHIS2" project (http://translate.dhis2.org/projects/dhis2/) but rather
> in the "DHIS2 Translations" project (
> http://translate.dhis2.org/projects/dhis2-translations/)
>
> We will remove the "DHIS2" project shortly from the translation server,
> but it looks like we need to clear some translations from it first. If you
> have done work there, and still need to get these translations into the
> source code, please let me know.
>
> Regards,
> Jason Pickering
>
> ___
> 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


Re: [Dhis2-devs] [Dhis2-users] Translations of DHIS2

2015-10-27 Thread Annisa Ristya
Thanks Jason,

Regards,

Annisa
On 27 Oct 2015 14:37, "Jason Pickering"  wrote:

> HI Annisa,
>
> It is the same website. Both addresses should work. You can use either
> one.
>
> Once you are done with the translations, just let me know, and I will take
> care of committing the translations back to the source code.
>
> Regards,
> Jason
>
>
> On Tue, Oct 27, 2015 at 8:35 AM, Annisa Ristya 
> wrote:
>
>> Hi Jason
>>
>> Thanks for the update. We are currently doing the translation of dhis2
>> for indonesian language in translate.dhis2.net
>> I notice it is a different web but I just want to make sure, is it
>> related with the address you mentioned on your previous email?
>> One more question, when we are done with the translation, what should we
>> do to proceed with the translation seetting?
>>
>> Regards,
>>
>> Annisa
>> On 27 Oct 2015 14:18, "Jason Pickering" 
>> wrote:
>>
>>> To all translators.
>>>
>>> Please note that the development team is in the process of changing the
>>> workflow for translations of the DHIS2 user interface. If you are currently
>>> translating the application with the help of the translation server (
>>> http://translate.dhis2.org) please DO NOT put your translations in the
>>> "DHIS2" project (http://translate.dhis2.org/projects/dhis2/) but rather
>>> in the "DHIS2 Translations" project (
>>> http://translate.dhis2.org/projects/dhis2-translations/)
>>>
>>> We will remove the "DHIS2" project shortly from the translation server,
>>> but it looks like we need to clear some translations from it first. If you
>>> have done work there, and still need to get these translations into the
>>> source code, please let me know.
>>>
>>> Regards,
>>> Jason Pickering
>>>
>>> ___
>>> 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
>>>
>>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
___
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] dhis version 2.21 is released

2015-10-27 Thread Harivola RANDRIANJAFY
Morten,



Great, all works perfectly with 2.21 after reinstalling to latest tomcat7 J



BIG THANKS,



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com]
Envoyé : mardi 27 octobre 2015 11:59
À : Harivola RANDRIANJAFY 
Cc : Shurajit Dutta ; DHIS 2 Users list 
; dhis2-devs ; 
Lars Helge Øverland 
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



You sure you are running this with the same tomcat? (as when you tried with 
empty database)



GRAVE: Unable to process Jar entry 
[jdk/nashorn/internal/objects/NativeSyntaxError$Prototype.class] from Jar 
[jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar!/] for annotations

org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in 
constant pool: 15



http://stackoverflow.com/questions/23484098/invalid-byte-tag-in-constant-pool-tomcat7-war-jdk-incompatibilty



Try and upgrade to the latest tomcat 7 (or tomcat 8) and see if it works for 
you, not sure why you wouldn't see this with an empty database though..






--
Morten



On Tue, Oct 27, 2015 at 4:49 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Please find attached the actually catalina.out log file.



This gives the white screen webpage



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com  ]
Envoyé : mardi 27 octobre 2015 11:22


À : Harivola RANDRIANJAFY mailto:harivo...@psi.mg> >
Cc : Shurajit Dutta mailto:shurajitdu...@gmail.com> 
>; DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; dhis2-devs 
mailto:dhis2-devs@lists.launchpad.net> >; Lars 
Helge Øverland mailto:larshe...@gmail.com> >
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



Ok, thats great.



There must be something in catalina.out that gives you a hint? probably 
something happen during our startup routines that make dhis not start up (seems 
very likely since it works on a new database)




--
Morten



On Tue, Oct 27, 2015 at 4:08 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Hi Morten,



Java – version gives

java version "1.8.0_66"

Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)



And java 8 is the active jre

After restarting server and creating a new database in postgres, it WORKS 
PERFECTLY J but the old database (backup from 2.20) could not be restored and 
could not accessed with 2.21 through pg_restore - or working with the old 
database (2.20),  it gives white webpage.



Your suggestions ?



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com  ]
Envoyé : lundi 26 octobre 2015 16:33
À : Harivola RANDRIANJAFY mailto:harivo...@psi.mg> >
Cc : Shurajit Dutta mailto:shurajitdu...@gmail.com> 
>; DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; dhis2-devs 
mailto:dhis2-devs@lists.launchpad.net> >; Lars 
Helge Øverland mailto:larshe...@gmail.com> >
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



Hi



There is nothing too useful in that log. Please make sure that you also 
restartet your server (it can be required sometimes), and make sure to properly 
clean out you webapps directory.



Also, please do java -version and verify that you have java 8 as the active jre




--
Morten



On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Please find attached the catalina log file after starting tomcat in 2.21 
version.



Harivola







De : Harivola RANDRIANJAFY [mailto:harivo...@psi.mg  ]
Envoyé : lundi 26 octobre 2015 15:36
À : 'Shurajit Dutta' mailto:shurajitdu...@gmail.com> >
Cc : 'Lars Helge Øverland' mailto:larshe...@gmail.com> >; 
'DHIS 2 Users list' mailto:dhis2-us...@lists.launchpad.net> >; 'dhis2-devs' 
mailto:dhis2-devs@lists.launchpad.net> >
Objet : RE: [Dhis2-users] dhis version 2.21 is released



Hi Nick



Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7



Harivola



De : Shurajit Dutta [  
mailto:shurajitdu...@gmail.com]
Envoyé : lundi 26 octobre 2015 12:18
À : Harivola RANDRIANJAFY <  harivo...@psi.mg>
Cc : Lars Helge Øverland <  larshe...@gmail.com>; 
DHIS 2 Users list <  
dhis2-us...@lists.launchpad.net>; dhis2-devs < 
 dhis2-devs@lists.launchpad.net>
Objet : Re: [Dhis2-users] dhis version 2.21 is released



Hi Harivola,



When using 2.21 are you also using java 8 and tomcat 7?



Nick



On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Hi Lars,



Thank you for this great work, I am using now 2.20 (build 19960) in test 
server. Upgrading this into 2.21, I am facing with blank screen (no login 
action). Downgrading into 2.20, the tracked entity instance in Individual 
records could not be accessed -  likewise in Tracker Captu

[Dhis2-devs] [Bug 1479858] Re: Relative periods (Reporting Month, month this year) in Standard Reports returns wrong periods

2015-10-27 Thread John Francis Mukulu
Yes Alex, It is.

Most recent build is on Jenkins CI server:
https://apps.dhis2.org/ci/job/dhis-2.20/

You can find details of changes here:
https://apps.dhis2.org/ci/job/dhis-2.20/changes

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

Title:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods

Status in DHIS:
  Fix Committed

Bug description:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods.

  For example:
When you edit a standard report, tick reporting month and save. When you 
run the report, it returns the chosen period minus one e.g July 2015 will 
return data of June 2015 (201506 as a period when using the web browser 
console). 
  Also the relative period save on return to edit the report is unchecked.

  
  Checking analytics, everything works as expected.
  I went ahead check the database for relative periods table "relativeperiods", 
many new relativeperiodsids are generated instead of using the existing ones 
and are set null instead of either true or false.

  This affects version 2.19, tested on dhis2 demo, on my own
  test/production server build revision 19266 and several build
  revisions below.

  
  The reports tested with a HTML reports.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1479858/+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] [Bug 1479858] Re: Relative periods (Reporting Month, month this year) in Standard Reports returns wrong periods

2015-10-27 Thread Alex Tumwesigye
Dear John,

Thanks for fixing this.
Is it backported to 2.20 too?

Alex

On Tue, Oct 27, 2015 at 11:57 AM, John Francis Mukulu <
1479...@bugs.launchpad.net> wrote:

> Bug introduced on release of  This relative period on version 2.19,
> Standard report parameters where saved to last relative period causing
> choices to be dated back by one period.
>
> On release of 2.21 Change of Report enum type "html" to "HTML" caused html
> report to be redirected pdf generation.
> Both issues fixed.
>
> ** Changed in: dhis2
>Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1479858
>
> Title:
>   Relative periods (Reporting Month, month this year) in Standard
>   Reports returns wrong periods
>
> Status in DHIS:
>   Fix Committed
>
> Bug description:
>   Relative periods (Reporting Month, month this year) in Standard
>   Reports returns wrong periods.
>
>   For example:
> When you edit a standard report, tick reporting month and save. When
> you run the report, it returns the chosen period minus one e.g July 2015
> will return data of June 2015 (201506 as a period when using the web
> browser console).
>   Also the relative period save on return to edit the report is unchecked.
>
>
>   Checking analytics, everything works as expected.
>   I went ahead check the database for relative periods table
> "relativeperiods", many new relativeperiodsids are generated instead of
> using the existing ones and are set null instead of either true or false.
>
>   This affects version 2.19, tested on dhis2 demo, on my own
>   test/production server build revision 19266 and several build
>   revisions below.
>
>
>   The reports tested with a HTML reports.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1479858/+subscriptions
>


-- 
Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET
Kampala
Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems -
DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don't want to be anything other than what I have been - one tree hill
"

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

Title:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods

Status in DHIS:
  Fix Committed

Bug description:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods.

  For example:
When you edit a standard report, tick reporting month and save. When you 
run the report, it returns the chosen period minus one e.g July 2015 will 
return data of June 2015 (201506 as a period when using the web browser 
console). 
  Also the relative period save on return to edit the report is unchecked.

  
  Checking analytics, everything works as expected.
  I went ahead check the database for relative periods table "relativeperiods", 
many new relativeperiodsids are generated instead of using the existing ones 
and are set null instead of either true or false.

  This affects version 2.19, tested on dhis2 demo, on my own
  test/production server build revision 19266 and several build
  revisions below.

  
  The reports tested with a HTML reports.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1479858/+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


[Dhis2-devs] [Bug 1479858] Re: Relative periods (Reporting Month, month this year) in Standard Reports returns wrong periods

2015-10-27 Thread John Francis Mukulu
Bug introduced on release of  This relative period on version 2.19,
Standard report parameters where saved to last relative period causing
choices to be dated back by one period.

On release of 2.21 Change of Report enum type "html" to "HTML" caused html 
report to be redirected pdf generation.
Both issues fixed.

** Changed in: dhis2
   Status: In Progress => Fix Committed

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

Title:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods

Status in DHIS:
  Fix Committed

Bug description:
  Relative periods (Reporting Month, month this year) in Standard
  Reports returns wrong periods.

  For example:
When you edit a standard report, tick reporting month and save. When you 
run the report, it returns the chosen period minus one e.g July 2015 will 
return data of June 2015 (201506 as a period when using the web browser 
console). 
  Also the relative period save on return to edit the report is unchecked.

  
  Checking analytics, everything works as expected.
  I went ahead check the database for relative periods table "relativeperiods", 
many new relativeperiodsids are generated instead of using the existing ones 
and are set null instead of either true or false.

  This affects version 2.19, tested on dhis2 demo, on my own
  test/production server build revision 19266 and several build
  revisions below.

  
  The reports tested with a HTML reports.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1479858/+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] dhis version 2.21 is released

2015-10-27 Thread Morten Olav Hansen
You sure you are running this with the same tomcat? (as when you tried with
empty database)

GRAVE: Unable to process Jar entry
[jdk/nashorn/internal/objects/NativeSyntaxError$Prototype.class] from Jar
[jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar!/] for
annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 15

http://stackoverflow.com/questions/23484098/invalid-byte-tag-in-constant-pool-tomcat7-war-jdk-incompatibilty

Try and upgrade to the latest tomcat 7 (or tomcat 8) and see if it works
for you, not sure why you wouldn't see this with an empty database though..


--
Morten

On Tue, Oct 27, 2015 at 4:49 PM, Harivola RANDRIANJAFY 
wrote:

> Please find attached the actually catalina.out log file.
>
>
>
> This gives the white screen webpage
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* mardi 27 octobre 2015 11:22
>
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> Ok, thats great.
>
>
>
> There must be something in catalina.out that gives you a hint? probably
> something happen during our startup routines that make dhis not start up
> (seems very likely since it works on a new database)
>
>
> --
> Morten
>
>
>
> On Tue, Oct 27, 2015 at 4:08 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Hi Morten,
>
>
>
> Java – version gives
>
> java version "1.8.0_66"
>
> Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
>
>
>
> And java 8 is the active jre
>
> After restarting server and creating a new database in postgres, it WORKS
> PERFECTLY J but the old database (backup from 2.20) could not be restored
> and could not accessed with 2.21 through pg_restore - or working with the
> old database (2.20),  it gives white webpage.
>
>
>
> Your suggestions ?
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* lundi 26 octobre 2015 16:33
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi
>
>
>
> There is nothing too useful in that log. Please make sure that you also
> restartet your server (it can be required sometimes), and make sure to
> properly clean out you webapps directory.
>
>
>
> Also, please do java -version and verify that you have java 8 as the
> active jre
>
>
> --
> Morten
>
>
>
> On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Please find attached the catalina log file after starting tomcat in 2.21
> version.
>
>
>
> Harivola
>
>
>
>
>
>
>
> *De :* Harivola RANDRIANJAFY [mailto:harivo...@psi.mg]
> *Envoyé :* lundi 26 octobre 2015 15:36
> *À :* 'Shurajit Dutta' 
> *Cc :* 'Lars Helge Øverland' ; 'DHIS 2 Users list' <
> dhis2-us...@lists.launchpad.net>; 'dhis2-devs' <
> dhis2-devs@lists.launchpad.net>
> *Objet :* RE: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Nick
>
>
>
> Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7
>
>
>
> Harivola
>
>
>
> *De :* Shurajit Dutta [mailto:shurajitdu...@gmail.com
> ]
> *Envoyé :* lundi 26 octobre 2015 12:18
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Lars Helge Øverland ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>
> *Objet :* Re: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Harivola,
>
>
>
> When using 2.21 are you also using java 8 and tomcat 7?
>
>
>
> Nick
>
>
>
> On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Hi Lars,
>
>
>
> Thank you for this great work, I am using now 2.20 (build 19960) in test
> server. Upgrading this into 2.21, I am facing with blank screen (no login
> action). Downgrading into 2.20, the tracked entity instance in Individual
> records could not be accessed -  likewise in Tracker Capture, all tracked
> entity already registered could not be accessed in dashboard Tracker.
>
>
>
> Please, could you help on this ?
>
>
>
> Sincerely,
>
>
>
> Harivola
>
>
>
> *De :* Dhis2-users [
> mailto:dhis2-users-bounces+harivolar=psi...@lists.launchpad.net
> ] *De la part
> de* Lars Helge Øverland
> *Envoyé :* mercredi 21 octobre 2015 23:03
> *À :* DHIS 2 Users list ; DHIS 2
> Developers list 
> *Objet :* [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi all,
>
>
>
> DHIS version 2.21 is out with a lot of great new features and
> improvements.
>
>
>
> Log in with admin/district on the demo 
> system.
>
>
>
> *File cloud storage:* You can now upload and store large files directly
> from data entry forms. Data elements can have a file value type and render
> as file upload

Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released

2015-10-27 Thread Harivola RANDRIANJAFY
Please find attached the actually catalina.out log file.



This gives the white screen webpage



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com]
Envoyé : mardi 27 octobre 2015 11:22
À : Harivola RANDRIANJAFY mailto:harivo...@psi.mg> >
Cc : Shurajit Dutta mailto:shurajitdu...@gmail.com> 
>; DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; dhis2-devs 
mailto:dhis2-devs@lists.launchpad.net> >; Lars 
Helge Øverland mailto:larshe...@gmail.com> >
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



Ok, thats great.



There must be something in catalina.out that gives you a hint? probably 
something happen during our startup routines that make dhis not start up (seems 
very likely since it works on a new database)




--
Morten



On Tue, Oct 27, 2015 at 4:08 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Hi Morten,



Java – version gives

java version "1.8.0_66"

Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)



And java 8 is the active jre

After restarting server and creating a new database in postgres, it WORKS 
PERFECTLY J but the old database (backup from 2.20) could not be restored and 
could not accessed with 2.21 through pg_restore - or working with the old 
database (2.20),  it gives white webpage.



Your suggestions ?



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com  ]
Envoyé : lundi 26 octobre 2015 16:33
À : Harivola RANDRIANJAFY mailto:harivo...@psi.mg> >
Cc : Shurajit Dutta mailto:shurajitdu...@gmail.com> 
>; DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; dhis2-devs 
mailto:dhis2-devs@lists.launchpad.net> >; Lars 
Helge Øverland mailto:larshe...@gmail.com> >
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



Hi



There is nothing too useful in that log. Please make sure that you also 
restartet your server (it can be required sometimes), and make sure to properly 
clean out you webapps directory.



Also, please do java -version and verify that you have java 8 as the active jre




--
Morten



On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Please find attached the catalina log file after starting tomcat in 2.21 
version.



Harivola







De : Harivola RANDRIANJAFY [mailto:harivo...@psi.mg  ]
Envoyé : lundi 26 octobre 2015 15:36
À : 'Shurajit Dutta' mailto:shurajitdu...@gmail.com> >
Cc : 'Lars Helge Øverland' mailto:larshe...@gmail.com> >; 
'DHIS 2 Users list' mailto:dhis2-us...@lists.launchpad.net> >; 'dhis2-devs' 
mailto:dhis2-devs@lists.launchpad.net> >
Objet : RE: [Dhis2-users] dhis version 2.21 is released



Hi Nick



Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7



Harivola



De : Shurajit Dutta [  
mailto:shurajitdu...@gmail.com]
Envoyé : lundi 26 octobre 2015 12:18
À : Harivola RANDRIANJAFY <  harivo...@psi.mg>
Cc : Lars Helge Øverland <  larshe...@gmail.com>; 
DHIS 2 Users list <  
dhis2-us...@lists.launchpad.net>; dhis2-devs < 
 dhis2-devs@lists.launchpad.net>
Objet : Re: [Dhis2-users] dhis version 2.21 is released



Hi Harivola,



When using 2.21 are you also using java 8 and tomcat 7?



Nick



On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Hi Lars,



Thank you for this great work, I am using now 2.20 (build 19960) in test 
server. Upgrading this into 2.21, I am facing with blank screen (no login 
action). Downgrading into 2.20, the tracked entity instance in Individual 
records could not be accessed -  likewise in Tracker Capture, all tracked 
entity already registered could not be accessed in dashboard Tracker.



Please, could you help on this ?



Sincerely,



Harivola



De : Dhis2-users 
[mailto:dhis2-users-bounces+harivolar=psi...@lists.launchpad.net] De la part de 
Lars Helge Øverland
Envoyé : mercredi 21 octobre 2015 23:03
À : DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; DHIS 2 Developers list 
mailto:dhis2-devs@lists.launchpad.net> >
Objet : [Dhis2-users] dhis version 2.21 is released



Hi all,



DHIS version 2.21 is out with a lot of great new features and improvements.



Log in with admin/district on the   demo system.



File cloud storage: You can now upload and store large files directly from data 
entry forms. Data elements can have a file value type and render as file upload 
widgets in forms. Files can be stored either on the Web server or sent directly 
to   AWS S3 cloud storage, which in practice 
provides unlimited storage capacity. This capability allows you to use DHIS 2 
as a general document repository which can be utilized for project management, 
documentation, CMS and many othe

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20880: Fixed relative period bug in standard report

2015-10-27 Thread noreply

revno: 20880
committer: John Francis Mukulu
branch nick: dhis2
timestamp: Tue 2015-10-27 11:48:36 +0300
message:
  Fixed relative period bug in standard report
modified:
  
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/AbstractRelativePeriodsAction.java
  
dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js
  
dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/relativePeriodsInput.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/AbstractRelativePeriodsAction.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/AbstractRelativePeriodsAction.java	2015-04-08 22:57:51 +
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/AbstractRelativePeriodsAction.java	2015-10-27 08:48:36 +
@@ -65,6 +65,12 @@
 this.lastSixMonth = lastSixMonth;
 }
 
+protected boolean thisSixMonth;
+
+public void setThisSixMonth( boolean thisSixMonth )
+{
+this.thisSixMonth = thisSixMonth;
+}
 protected boolean monthsThisYear;
 
 public void setMonthsThisYear( boolean monthsThisYear )
@@ -207,7 +213,7 @@
 
 protected RelativePeriods getRelativePeriods()
 {
-RelativePeriods relatives = new RelativePeriods( false, reportingMonth, false, reportingBimonth, false, reportingQuarter, false, lastSixMonth,
+RelativePeriods relatives = new RelativePeriods( reportingMonth, false, reportingBimonth, false, reportingQuarter, false, thisSixMonth, false,
 monthsThisYear, quartersThisYear, thisYear, 
 monthsLastYear, quartersLastYear, lastYear, 
 last5Years, last12Months, last6Months, last3Months, last6BiMonths, last4Quarters, last2SixMonths,

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js	2013-04-30 09:09:08 +
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js	2015-10-27 08:48:36 +
@@ -39,7 +39,7 @@
 
 if ( MODE_REPORT == mode )
 {
-	if ( TYPE_HTML == type )
+	if ( TYPE_HTML == type.toLowerCase() )
 	{
 		window.location.href= "generateHtmlReport.action?uid=" + uid + "&" + getUrlParams();
 	}

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/relativePeriodsInput.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/relativePeriodsInput.vm	2013-03-17 14:52:32 +
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/relativePeriodsInput.vm	2015-10-27 08:48:36 +
@@ -1,11 +1,11 @@
 $i18n.getString( "reporting_month" )
- 
+ 
 $i18n.getString( "reporting_bimonth" )
- 
+ 
 $i18n.getString( "reporting_quarter" )
- 
-$i18n.getString( "reporting_sixmonth" )
-
+ 
+$i18n.getString( "reporting_sixmonth" )
+
 
 $i18n.getString( "months_this_year" )
  

___
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] dhis version 2.21 is released

2015-10-27 Thread Morten Olav Hansen
Ok, thats great.

There must be something in catalina.out that gives you a hint? probably
something happen during our startup routines that make dhis not start up
(seems very likely since it works on a new database)

--
Morten

On Tue, Oct 27, 2015 at 4:08 PM, Harivola RANDRIANJAFY 
wrote:

> Hi Morten,
>
>
>
> Java – version gives
>
> java version "1.8.0_66"
>
> Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
>
>
>
> And java 8 is the active jre
>
> After restarting server and creating a new database in postgres, it WORKS
> PERFECTLY J but the old database (backup from 2.20) could not be restored
> and could not accessed with 2.21 through pg_restore - or working with the
> old database (2.20),  it gives white webpage.
>
>
>
> Your suggestions ?
>
>
>
> Harivola
>
>
>
> *De :* Morten Olav Hansen [mailto:morte...@gmail.com]
> *Envoyé :* lundi 26 octobre 2015 16:33
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Shurajit Dutta ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; Lars Helge Øverland 
> *Objet :* Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi
>
>
>
> There is nothing too useful in that log. Please make sure that you also
> restartet your server (it can be required sometimes), and make sure to
> properly clean out you webapps directory.
>
>
>
> Also, please do java -version and verify that you have java 8 as the
> active jre
>
>
> --
> Morten
>
>
>
> On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Please find attached the catalina log file after starting tomcat in 2.21
> version.
>
>
>
> Harivola
>
>
>
>
>
>
>
> *De :* Harivola RANDRIANJAFY [mailto:harivo...@psi.mg]
> *Envoyé :* lundi 26 octobre 2015 15:36
> *À :* 'Shurajit Dutta' 
> *Cc :* 'Lars Helge Øverland' ; 'DHIS 2 Users list' <
> dhis2-us...@lists.launchpad.net>; 'dhis2-devs' <
> dhis2-devs@lists.launchpad.net>
> *Objet :* RE: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Nick
>
>
>
> Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7
>
>
>
> Harivola
>
>
>
> *De :* Shurajit Dutta [mailto:shurajitdu...@gmail.com
> ]
> *Envoyé :* lundi 26 octobre 2015 12:18
> *À :* Harivola RANDRIANJAFY 
> *Cc :* Lars Helge Øverland ; DHIS 2 Users list <
> dhis2-us...@lists.launchpad.net>; dhis2-devs <
> dhis2-devs@lists.launchpad.net>
> *Objet :* Re: [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi Harivola,
>
>
>
> When using 2.21 are you also using java 8 and tomcat 7?
>
>
>
> Nick
>
>
>
> On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY 
> wrote:
>
> Hi Lars,
>
>
>
> Thank you for this great work, I am using now 2.20 (build 19960) in test
> server. Upgrading this into 2.21, I am facing with blank screen (no login
> action). Downgrading into 2.20, the tracked entity instance in Individual
> records could not be accessed -  likewise in Tracker Capture, all tracked
> entity already registered could not be accessed in dashboard Tracker.
>
>
>
> Please, could you help on this ?
>
>
>
> Sincerely,
>
>
>
> Harivola
>
>
>
> *De :* Dhis2-users [
> mailto:dhis2-users-bounces+harivolar=psi...@lists.launchpad.net
> ] *De la part
> de* Lars Helge Øverland
> *Envoyé :* mercredi 21 octobre 2015 23:03
> *À :* DHIS 2 Users list ; DHIS 2
> Developers list 
> *Objet :* [Dhis2-users] dhis version 2.21 is released
>
>
>
> Hi all,
>
>
>
> DHIS version 2.21 is out with a lot of great new features and
> improvements.
>
>
>
> Log in with admin/district on the demo 
> system.
>
>
>
> *File cloud storage:* You can now upload and store large files directly
> from data entry forms. Data elements can have a file value type and render
> as file upload widgets in forms. Files can be stored either on the Web
> server or sent directly to AWS S3  cloud
> storage, which in practice provides unlimited storage capacity. This
> capability allows you to use DHIS 2 as a general document repository which
> can be utilized for project management, documentation, CMS and many other
> purposes.
>
>
>
> File storage currently works for aggregate data entry forms - tracker
> coming up. Have a look at the “Project management” data set in data entry
> on the demo:
>
>
>
> Demo  | Docs
> 
> | Screenshot 
>
>
>
> *Settings app:* The settings front-end has been re-written as a true app.
> It features real-time saving, search for settings and a fresh new look.
>
>
>
> Demo  | Docs
>  | Screenshot
> 
>
>
>
> *Data import constraints:* Several optional constraints for data import
> can be enabled to provide stricter

Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released

2015-10-27 Thread Harivola RANDRIANJAFY
Hi Morten,



Java – version gives

java version "1.8.0_66"

Java(TM) SE Runtime Environment (build 1.8.0_66-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)



And java 8 is the active jre

After restarting server and creating a new database in postgres, it WORKS 
PERFECTLY J but the old database (backup from 2.20) could not be restored and 
could not accessed with 2.21 through pg_restore - or working with the old 
database (2.20),  it gives white webpage.



Your suggestions ?



Harivola



De : Morten Olav Hansen [mailto:morte...@gmail.com]
Envoyé : lundi 26 octobre 2015 16:33
À : Harivola RANDRIANJAFY 
Cc : Shurajit Dutta ; DHIS 2 Users list 
; dhis2-devs ; 
Lars Helge Øverland 
Objet : Re: [Dhis2-devs] [Dhis2-users] dhis version 2.21 is released



Hi



There is nothing too useful in that log. Please make sure that you also 
restartet your server (it can be required sometimes), and make sure to properly 
clean out you webapps directory.



Also, please do java -version and verify that you have java 8 as the active jre




--
Morten



On Mon, Oct 26, 2015 at 9:21 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Please find attached the catalina log file after starting tomcat in 2.21 
version.



Harivola







De : Harivola RANDRIANJAFY [mailto:harivo...@psi.mg  ]
Envoyé : lundi 26 octobre 2015 15:36
À : 'Shurajit Dutta' mailto:shurajitdu...@gmail.com> >
Cc : 'Lars Helge Øverland' mailto:larshe...@gmail.com> >; 
'DHIS 2 Users list' mailto:dhis2-us...@lists.launchpad.net> >; 'dhis2-devs' 
mailto:dhis2-devs@lists.launchpad.net> >
Objet : RE: [Dhis2-users] dhis version 2.21 is released



Hi Nick



Yes, I am using both, java 8 version is 1.8.0_60 and tomcat 7



Harivola



De : Shurajit Dutta [  
mailto:shurajitdu...@gmail.com]
Envoyé : lundi 26 octobre 2015 12:18
À : Harivola RANDRIANJAFY <  harivo...@psi.mg>
Cc : Lars Helge Øverland <  larshe...@gmail.com>; 
DHIS 2 Users list <  
dhis2-us...@lists.launchpad.net>; dhis2-devs < 
 dhis2-devs@lists.launchpad.net>
Objet : Re: [Dhis2-users] dhis version 2.21 is released



Hi Harivola,



When using 2.21 are you also using java 8 and tomcat 7?



Nick



On Mon, Oct 26, 2015 at 4:55 PM, Harivola RANDRIANJAFY mailto:harivo...@psi.mg> > wrote:

Hi Lars,



Thank you for this great work, I am using now 2.20 (build 19960) in test 
server. Upgrading this into 2.21, I am facing with blank screen (no login 
action). Downgrading into 2.20, the tracked entity instance in Individual 
records could not be accessed -  likewise in Tracker Capture, all tracked 
entity already registered could not be accessed in dashboard Tracker.



Please, could you help on this ?



Sincerely,



Harivola



De : Dhis2-users 
[mailto:dhis2-users-bounces+harivolar=psi...@lists.launchpad.net] De la part de 
Lars Helge Øverland
Envoyé : mercredi 21 octobre 2015 23:03
À : DHIS 2 Users list mailto:dhis2-us...@lists.launchpad.net> >; DHIS 2 Developers list 
mailto:dhis2-devs@lists.launchpad.net> >
Objet : [Dhis2-users] dhis version 2.21 is released



Hi all,



DHIS version 2.21 is out with a lot of great new features and improvements.



Log in with admin/district on the   demo system.



File cloud storage: You can now upload and store large files directly from data 
entry forms. Data elements can have a file value type and render as file upload 
widgets in forms. Files can be stored either on the Web server or sent directly 
to   AWS S3 cloud storage, which in practice 
provides unlimited storage capacity. This capability allows you to use DHIS 2 
as a general document repository which can be utilized for project management, 
documentation, CMS and many other purposes.



File storage currently works for aggregate data entry forms - tracker coming 
up. Have a look at the “Project management” data set in data entry on the demo:



  Demo |  
 
Docs |   Screenshot



Settings app: The settings front-end has been re-written as a true app. It 
features real-time saving, search for settings and a fresh new look.



  Demo |  
 Docs |  
 Screenshot



Data import constraints: Several optional constraints for data import can be 
enabled to provide stricter control of the data being imported. These include 
require period to be of same type as data set, data element to be assigned to 
data set through org units, and more. The import constraints can be enabled in 
settings app 

Re: [Dhis2-devs] Bulk Deletion of Data

2015-10-27 Thread Morten Olav Hansen
Just FYI, we have two blueprints related to this in 2.22, [1] is
implemented already and [2] will hopefully come (but we are still
discussing implementation details for that one)

[1]
https://blueprints.launchpad.net/dhis2/+spec/webapi-bulk-deletion-of-tracker-objects
[2] https://blueprints.launchpad.net/dhis2/+spec/soft-event-delete

--
Morten

On Tue, Oct 27, 2015 at 4:01 PM, Knut Staring  wrote:

> My interpretation was that they would like a flag on each datavalue to say
> whether it is still current - which I guess would require an extension of
> that table. However, we do have something akin to this, namely the audit
> functionality, which preserves the history of earlier (overwritten) values
> - perhaps that could be leveraged?
>
> Knut
>
> On Tue, Oct 27, 2015 at 5:50 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Aaron,
>>
>> There is no "soft delete" function, if that is what you are after, but it
>> has been discussed.
>>
>> Although there is no direct way as Lars points out, if you know what you
>> wish to delete, it is still possible.  Namely, if you transmit a "" value
>> for the value which you wish to delete, it will be deleted. Thus, if you
>> wish to delete all values for a given dataset/OU/period, you can get all of
>> the values from the API, then set them all to "", and upload the data
>> again.  I think you can also use the DELETE verb as documented here (
>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s12.html) to
>> delete a value.
>>
>>
>> Not sure if that is the functionality you are after though. Typically,
>> this would be a DB admin's role though and would be done with SQL, if you
>> are say, going to delete ALL values for a large part of the hierarchy. The
>> possibility for a whoopsie-moment could be large here.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 26, 2015 at 10:37 PM, Aaron Gladders 
>> wrote:
>>
>>> Hi Lars - is there a recommended approach to "deactive" data without
>>> getting into the database itself?  If not is it worth setting up a
>>> blueprint for it?  We may have a group interested in funding that
>>> development.
>>>
>>> Thanks,
>>>
>>> Aaron
>>>
>>> On Thu, Sep 24, 2015 at 2:39 PM, Lars Helge Øverland <
>>> larshe...@gmail.com> wrote:
>>>
 Hi Lorill,

 sorry but at the moment there is no such option. So far we have decided
 not to open up for this to prevent mishaps.

 regards,

 Lars


 On Thu, Sep 24, 2015 at 11:37 PM, Lorill Crees 
 wrote:

> Hi,
>
> Just following up on this. Any ideas on the best way to
> programatically bulk delete data values?
>
> Thanks,
>
> Lorill
>
> On Tue, Sep 15, 2015 at 1:04 PM, Lorill Crees 
> wrote:
>
>> Hi,
>>
>> I seem to remember a prior thread on this but I can't seem to find
>> it. We want to be able to programatically bulk delete data values (both
>> aggregate and program/program stage data) via the Web API. Is there a way
>> to achieve this?
>>
>> We don't want to have to do this on a sql level directly via the
>> database, nor do we want to have to loop through individual data points 
>> in
>> order to delete them.
>>
>> Thanks,
>>
>> Lorill
>>
>
>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> ___
>> 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
>
> ___
> 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] Bulk Deletion of Data

2015-10-27 Thread Knut Staring
My interpretation was that they would like a flag on each datavalue to say
whether it is still current - which I guess would require an extension of
that table. However, we do have something akin to this, namely the audit
functionality, which preserves the history of earlier (overwritten) values
- perhaps that could be leveraged?

Knut

On Tue, Oct 27, 2015 at 5:50 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Aaron,
>
> There is no "soft delete" function, if that is what you are after, but it
> has been discussed.
>
> Although there is no direct way as Lars points out, if you know what you
> wish to delete, it is still possible.  Namely, if you transmit a "" value
> for the value which you wish to delete, it will be deleted. Thus, if you
> wish to delete all values for a given dataset/OU/period, you can get all of
> the values from the API, then set them all to "", and upload the data
> again.  I think you can also use the DELETE verb as documented here (
> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s12.html) to
> delete a value.
>
>
> Not sure if that is the functionality you are after though. Typically,
> this would be a DB admin's role though and would be done with SQL, if you
> are say, going to delete ALL values for a large part of the hierarchy. The
> possibility for a whoopsie-moment could be large here.
>
> Regards,
> Jason
>
>
> On Mon, Oct 26, 2015 at 10:37 PM, Aaron Gladders 
> wrote:
>
>> Hi Lars - is there a recommended approach to "deactive" data without
>> getting into the database itself?  If not is it worth setting up a
>> blueprint for it?  We may have a group interested in funding that
>> development.
>>
>> Thanks,
>>
>> Aaron
>>
>> On Thu, Sep 24, 2015 at 2:39 PM, Lars Helge Øverland > > wrote:
>>
>>> Hi Lorill,
>>>
>>> sorry but at the moment there is no such option. So far we have decided
>>> not to open up for this to prevent mishaps.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> On Thu, Sep 24, 2015 at 11:37 PM, Lorill Crees 
>>> wrote:
>>>
 Hi,

 Just following up on this. Any ideas on the best way to programatically
 bulk delete data values?

 Thanks,

 Lorill

 On Tue, Sep 15, 2015 at 1:04 PM, Lorill Crees 
 wrote:

> Hi,
>
> I seem to remember a prior thread on this but I can't seem to find it.
> We want to be able to programatically bulk delete data values (both
> aggregate and program/program stage data) via the Web API. Is there a way
> to achieve this?
>
> We don't want to have to do this on a sql level directly via the
> database, nor do we want to have to loop through individual data points in
> order to delete them.
>
> Thanks,
>
> Lorill
>


>>
>> ___
>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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
___
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] Enable Message Email Notifications

2015-10-27 Thread Ant Snyman
Hi Jason,
Nothing wrong with your eyesight!! I owe you a beer. Thanks, the 001 was
the issue.
Regards
Ant

On 27 October 2015 at 09:28, Ant Snyman  wrote:

> Hi Jason, thanks for your response. This is what I used:
>
> insert into usersetting
> values
> (21527, 'keyMessageEmailNotification',
> '\254\355\000\005sr\000\021java.lang.Boolean\315
> r\200\325\234\372\356\002\000\001Z\000\005valuexp\000')
>
> Interesting point about the "001"and "000". Will investigate that a bit
> further also.
>
> Regards
>
> Ant
>
>
> On 27 October 2015 at 09:23, Jason Pickering 
> wrote:
>
>> Hi Ant,
>>
>> What SQL command did you use to "set" the email notification? I am just
>> curious, as I have never actually done it, but just guessing that this
>> might work.
>>
>> Note that the data looks like this
>>
>> userinfoid |name |
>>value
>>
>> +-+--
>> 2125003 | keyMessageEmailNotification |
>> \xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001
>> 1979887 | keyMessageEmailNotification |
>> \xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787000
>>
>> The first one should be when a user wishes to receive email, the second
>> for when they do not.  ( I think)
>>
>> Is this what your table looks like?
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Oct 27, 2015 at 8:19 AM, Knut Staring  wrote:
>>
>>> Did you also clear the server cache? Alternatively restart Tomcat
>>> On Oct 27, 2015 8:16 AM, "Ant Snyman"  wrote:
>>>
 Hi All,
 We want to enable all the users to receive email notifications and is
 looking for a way to do it in the backend via a SQL script (without having
 each user go into Profile-- > Settings).

 We have seen the table "usersetting" which is populated when the email
 notification is ticked on the UI. I played around by creating a user (with
 email address) and populating this table with a SQL insert but then I do
 not see the tick on the UI (after doing all the usual stuff like clearing
 cache). The system then also do not pick up that this user must receive
 email notifications.

 Where else in the database is the user flagged to receive email
 notifications?

 Regards

 *Ant Snyman*

 *Cell: 0824910449 <0824910449>*

 *Landline: 028 2713242*


 Health Information Systems Program - SA

 *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.*

 ___
 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
>
> --
>
> *Ant Snyman*
>
> *Cell: 0824910449*
>
> *Landline: 028 2713242*
>
>
> Health Information Systems Program - SA
>



-- 

*Ant Snyman*

*Cell: 0824910449*

*Landline: 028 2713242*


Health Information Systems Program - SA

-- 


*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.*
___
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] Translations of DHIS2

2015-10-27 Thread Jason Pickering
HI Annisa,

It is the same website. Both addresses should work. You can use either one.

Once you are done with the translations, just let me know, and I will take
care of committing the translations back to the source code.

Regards,
Jason


On Tue, Oct 27, 2015 at 8:35 AM, Annisa Ristya 
wrote:

> Hi Jason
>
> Thanks for the update. We are currently doing the translation of dhis2 for
> indonesian language in translate.dhis2.net
> I notice it is a different web but I just want to make sure, is it related
> with the address you mentioned on your previous email?
> One more question, when we are done with the translation, what should we
> do to proceed with the translation seetting?
>
> Regards,
>
> Annisa
> On 27 Oct 2015 14:18, "Jason Pickering" 
> wrote:
>
>> To all translators.
>>
>> Please note that the development team is in the process of changing the
>> workflow for translations of the DHIS2 user interface. If you are currently
>> translating the application with the help of the translation server (
>> http://translate.dhis2.org) please DO NOT put your translations in the
>> "DHIS2" project (http://translate.dhis2.org/projects/dhis2/) but rather
>> in the "DHIS2 Translations" project (
>> http://translate.dhis2.org/projects/dhis2-translations/)
>>
>> We will remove the "DHIS2" project shortly from the translation server,
>> but it looks like we need to clear some translations from it first. If you
>> have done work there, and still need to get these translations into the
>> source code, please let me know.
>>
>> Regards,
>> Jason Pickering
>>
>> ___
>> 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
>>
>>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Enable Message Email Notifications

2015-10-27 Thread Ant Snyman
Hi Jason, thanks for your response. This is what I used:

insert into usersetting
values
(21527, 'keyMessageEmailNotification',
'\254\355\000\005sr\000\021java.lang.Boolean\315
r\200\325\234\372\356\002\000\001Z\000\005valuexp\000')

Interesting point about the "001"and "000". Will investigate that a bit
further also.

Regards

Ant


On 27 October 2015 at 09:23, Jason Pickering 
wrote:

> Hi Ant,
>
> What SQL command did you use to "set" the email notification? I am just
> curious, as I have never actually done it, but just guessing that this
> might work.
>
> Note that the data looks like this
>
> userinfoid |name |
>  value
>
> +-+--
> 2125003 | keyMessageEmailNotification |
> \xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001
> 1979887 | keyMessageEmailNotification |
> \xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787000
>
> The first one should be when a user wishes to receive email, the second
> for when they do not.  ( I think)
>
> Is this what your table looks like?
>
> Regards,
> Jason
>
>
> On Tue, Oct 27, 2015 at 8:19 AM, Knut Staring  wrote:
>
>> Did you also clear the server cache? Alternatively restart Tomcat
>> On Oct 27, 2015 8:16 AM, "Ant Snyman"  wrote:
>>
>>> Hi All,
>>> We want to enable all the users to receive email notifications and is
>>> looking for a way to do it in the backend via a SQL script (without having
>>> each user go into Profile-- > Settings).
>>>
>>> We have seen the table "usersetting" which is populated when the email
>>> notification is ticked on the UI. I played around by creating a user (with
>>> email address) and populating this table with a SQL insert but then I do
>>> not see the tick on the UI (after doing all the usual stuff like clearing
>>> cache). The system then also do not pick up that this user must receive
>>> email notifications.
>>>
>>> Where else in the database is the user flagged to receive email
>>> notifications?
>>>
>>> Regards
>>>
>>> *Ant Snyman*
>>>
>>> *Cell: 0824910449 <0824910449>*
>>>
>>> *Landline: 028 2713242*
>>>
>>>
>>> Health Information Systems Program - SA
>>>
>>> *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.*
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>



-- 

*Ant Snyman*

*Cell: 0824910449*

*Landline: 028 2713242*


Health Information Systems Program - SA

-- 


*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.*
___
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] Enable Message Email Notifications

2015-10-27 Thread Jason Pickering
Hi Ant,

What SQL command did you use to "set" the email notification? I am just
curious, as I have never actually done it, but just guessing that this
might work.

Note that the data looks like this

userinfoid |name |
 value
+-+--
2125003 | keyMessageEmailNotification |
\xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001
1979887 | keyMessageEmailNotification |
\xaced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787000

The first one should be when a user wishes to receive email, the second for
when they do not.  ( I think)

Is this what your table looks like?

Regards,
Jason


On Tue, Oct 27, 2015 at 8:19 AM, Knut Staring  wrote:

> Did you also clear the server cache? Alternatively restart Tomcat
> On Oct 27, 2015 8:16 AM, "Ant Snyman"  wrote:
>
>> Hi All,
>> We want to enable all the users to receive email notifications and is
>> looking for a way to do it in the backend via a SQL script (without having
>> each user go into Profile-- > Settings).
>>
>> We have seen the table "usersetting" which is populated when the email
>> notification is ticked on the UI. I played around by creating a user (with
>> email address) and populating this table with a SQL insert but then I do
>> not see the tick on the UI (after doing all the usual stuff like clearing
>> cache). The system then also do not pick up that this user must receive
>> email notifications.
>>
>> Where else in the database is the user flagged to receive email
>> notifications?
>>
>> Regards
>>
>> *Ant Snyman*
>>
>> *Cell: 0824910449 <0824910449>*
>>
>> *Landline: 028 2713242*
>>
>>
>> Health Information Systems Program - SA
>>
>> *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.*
>>
>> ___
>> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Enable Message Email Notifications

2015-10-27 Thread Knut Staring
Did you also clear the server cache? Alternatively restart Tomcat
On Oct 27, 2015 8:16 AM, "Ant Snyman"  wrote:

> Hi All,
> We want to enable all the users to receive email notifications and is
> looking for a way to do it in the backend via a SQL script (without having
> each user go into Profile-- > Settings).
>
> We have seen the table "usersetting" which is populated when the email
> notification is ticked on the UI. I played around by creating a user (with
> email address) and populating this table with a SQL insert but then I do
> not see the tick on the UI (after doing all the usual stuff like clearing
> cache). The system then also do not pick up that this user must receive
> email notifications.
>
> Where else in the database is the user flagged to receive email
> notifications?
>
> Regards
>
> *Ant Snyman*
>
> *Cell: 0824910449*
>
> *Landline: 028 2713242*
>
>
> Health Information Systems Program - SA
>
> *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.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Translations of DHIS2

2015-10-27 Thread Jason Pickering
To all translators.

Please note that the development team is in the process of changing the
workflow for translations of the DHIS2 user interface. If you are currently
translating the application with the help of the translation server (
http://translate.dhis2.org) please DO NOT put your translations in the
"DHIS2" project (http://translate.dhis2.org/projects/dhis2/) but rather in
the "DHIS2 Translations" project (
http://translate.dhis2.org/projects/dhis2-translations/)

We will remove the "DHIS2" project shortly from the translation server, but
it looks like we need to clear some translations from it first. If you have
done work there, and still need to get these translations into the source
code, please let me know.

Regards,
Jason Pickering
___
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] Enable Message Email Notifications

2015-10-27 Thread Ant Snyman
Hi All,
We want to enable all the users to receive email notifications and is
looking for a way to do it in the backend via a SQL script (without having
each user go into Profile-- > Settings).

We have seen the table "usersetting" which is populated when the email
notification is ticked on the UI. I played around by creating a user (with
email address) and populating this table with a SQL insert but then I do
not see the tick on the UI (after doing all the usual stuff like clearing
cache). The system then also do not pick up that this user must receive
email notifications.

Where else in the database is the user flagged to receive email
notifications?

Regards

*Ant Snyman*

*Cell: 0824910449*

*Landline: 028 2713242*


Health Information Systems Program - SA

-- 


*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.*
___
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