Re: [Dhis2-devs] [ANDROID] Data capture app project setup

2016-01-12 Thread Araz Abishov
Hi Sultanahamar,

All you need to do is to clone https://github.com/dhis2/dhis2-android-sdk
repository next to your EventCapture/TrackerCapture/DataCapture repository
folder.

Best regards,
Araz

On Tue, Jan 12, 2016 at 2:25 PM, Sultanahamar Mohammad <
sult...@thoughtworks.com> wrote:

> Hi Araz,
>
> Thanks for the reply, I am now able to build the app. Could you please
> point me to the working sdk so that I can build the other apps. I have
> downloaded the code from releases of git repo for the apps but sdk does not
> seem to have a release and since the other apps depend on the sdk, I might
> not be able to build it.
>
> Thanks and Regards,
> Sultan Ahamar.
>
>
>
> On Tue, Jan 12, 2016 at 3:29 PM, Araz Abishov  > wrote:
>
>> Hi Sultanahamar,
>>
>> Which branch have you tried to build? Master branch is now in major
>> refactoring stage.
>>
>> The code for current version (published in google play) of Data Capture
>> app is located in "legacy" branch.
>>
>> Could you please try to build it?
>>
>> Best regards,
>> Araz
>> On Jan 12, 2016 10:28 AM, "Sultanahamar Mohammad" <
>> sult...@thoughtworks.com> wrote:
>>
>>> Hi Team,
>>>
>>> We are not able to build the data capture app. App seems to have some
>>> external dependencies and after having a look in gradle files, we realized
>>> that this app also depends on sdk. But sdk is failing and lot of compile
>>> time errors coming up. Could you please help us build this app.
>>>
>>> Thanks and Regards,
>>> Sultan Ahamar.
>>>
>>> ___
>>> 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] [ANDROID] Data capture app project setup

2016-01-12 Thread Araz Abishov
Hi Sultanahamar,

Which branch have you tried to build? Master branch is now in major
refactoring stage.

The code for current version (published in google play) of Data Capture app
is located in "legacy" branch.

Could you please try to build it?

Best regards,
Araz
On Jan 12, 2016 10:28 AM, "Sultanahamar Mohammad" 
wrote:

> Hi Team,
>
> We are not able to build the data capture app. App seems to have some
> external dependencies and after having a look in gradle files, we realized
> that this app also depends on sdk. But sdk is failing and lot of compile
> time errors coming up. Could you please help us build this app.
>
> Thanks and Regards,
> Sultan Ahamar.
>
> ___
> 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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
Hi Victor, I will try to find some to look at this today.

On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia  wrote:

> Thanks Morten,
>
> any update on this issue? Could it be easily solved?
>
> Regards!
>
> Víctor
>
> On 22 December 2015 at 15:52, Morten Olav Hansen 
> wrote:
>
>> Hi
>>
>> I'm including Jan who has been working on updating the reporting tools
>> for translation. All that is required is to change name:like:XYZ to
>> displayName:like:XYZ.
>>
>> --
>> Morten
>>
>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia 
>> wrote:
>>
>>> Hi all,
>>>
>>> in analytics apps, we have noticed that DE & IND filters don't use the
>>> translated name to do the search. For example, if we are working in Spanish
>>> and we want to search for this dataelement
>>>
>>> English: "Donors: Hepatitis B exams"
>>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>>
>>> we have to write "donors" (english word) in the search box to find it
>>> (see attached picture).
>>>
>>> We guess that this is not a bug, but a non-implemented feature. Looking
>>> at the roadmap, maybe this feature
>>> 
>>>  (2.23) has
>>> something to do with this issue.
>>>
>>> Meanwhile, could it be possible to have a workaround to deal with this
>>> problem?
>>>
>>> Using DHIS 2.21 rev 20971.
>>>
>>> Thank you!
>>>
>>> Víctor
>>>
>>> ___
>>> 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] Fwd: Creating custom frequency of data entry for a particular dataset.

2016-01-12 Thread Jason Pickering
Hi Zara,

The only weeks which are currently supported are ISO weeks. These differ
from "EpiWeeks" I think since ISO weeks always begin on a Monday and I
think EpiWeeks begin on a Sunday.

You can have a look in
/dhis2/dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/WeeklyPeriodType.java
to see how this one is done. It should not be so difficult to create
another one for EpiWeeks, if there is a standard algorithm for generating
them. It seems there are a few different definitions of how they are
calculated. Is there a definitive reference of how to generate EpiWeeks
somewhere?

Regards,
Jason



On Mon, Jan 11, 2016 at 5:48 PM, Zara Kamara  wrote:

>
> -- Forwarded message --
> From: Zara Kamara 
> Date: Mon, Jan 11, 2016 at 4:47 PM
> Subject: Creating custom frequency of data entry for a particular dataset.
> To: "dhis2-us...@lists.launchpad.net" 
>
>
> Good afternoon All
>
> Hope everyone had a restful holiday. Kindly I wanted to know how to set up
> custom  data entry frequency for a particular dataset in DHIS2. Say for
> example I want to set the frequency in Epi weeks i.e.  week beginning on
> Monday and ending on Sunday.
>
>
> --
> *Zara Kamara, MHI*
> HMIS Specialist
> Centers for Disease Control and Prevention  - Sierra Leone
> e: l...@cdc.gov
> +232 -77-775-249 (O) ,+232-76-201-869 (P), +232-25-260-121 (P)
>
>
>
>
>
>
>
> --
> *Zara Kamara, MHI*
> HMIS Specialist
> Centers for Disease Control and Prevention  - Sierra Leone
> e: l...@cdc.gov
> +232 -77-775-249 (O) ,+232-76-201-869 (P), +232-25-260-121 (P)
>
>
>
>
>
> ___
> 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


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21701: Data value import, implemented DELETE import strategy

2016-01-12 Thread noreply

revno: 21701
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Tue 2016-01-12 13:49:50 +0100
message:
  Data value import, implemented DELETE import strategy
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/setting/DefaultStyleManager.java
  
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java
  
dhis-2/dhis-web/dhis-web-importexport/src/main/resources/org/hisp/dhis/importexport/i18n_module.properties
  
dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/importDataValue.vm
  
dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/importSummary.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-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java	2016-01-04 02:27:49 +
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java	2016-01-12 12:49:50 +
@@ -45,10 +45,10 @@
 UI_LOCALE( "keyUiLocale", Locale.class ),
 DB_LOCALE( "keyDbLocale", Locale.class ),
 ANALYSIS_DISPLAY_PROPERTY( "keyAnalysisDisplayProperty", "name", String.class ),
-CURRENT_DOMAIN_TYPE( "currentDomainType" ),
-AUTO_SAVE_CASE_ENTRY_FORM( "autoSaveCaseEntryForm", Boolean.FALSE, Boolean.class ),
-AUTO_SAVE_TRACKED_ENTITY_REGISTRATION_ENTRY_FORM( "autoSavetTrackedEntityForm", Boolean.FALSE, Boolean.class ),
-AUTO_SAVE_DATA_ENTRY_FORM( "autoSaveDataEntryForm", Boolean.FALSE, Boolean.class ),
+CURRENT_DOMAIN_TYPE( "keyCurrentDomainType" ),
+AUTO_SAVE_CASE_ENTRY_FORM( "keyAutoSaveCaseEntryForm", Boolean.FALSE, Boolean.class ),
+AUTO_SAVE_TRACKED_ENTITY_REGISTRATION_ENTRY_FORM( "keyAutoSavetTrackedEntityForm", Boolean.FALSE, Boolean.class ),
+AUTO_SAVE_DATA_ENTRY_FORM( "keyAutoSaveDataEntryForm", Boolean.FALSE, Boolean.class ),
 TRACKER_DASHBOARD_LAYOUT( "keyTrackerDashboardLayout" );
 
 private final String name;

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/setting/DefaultStyleManager.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/setting/DefaultStyleManager.java	2016-01-04 02:27:49 +
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/setting/DefaultStyleManager.java	2016-01-12 12:49:50 +
@@ -37,6 +37,7 @@
 import org.hisp.dhis.i18n.I18nManager;
 import org.hisp.dhis.user.UserSettingKey;
 import org.hisp.dhis.user.UserSettingService;
+import org.hisp.dhis.util.ObjectUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 
 import com.google.common.collect.Lists;
@@ -103,12 +104,7 @@
 {
 String style = (String) userSettingService.getUserSetting( UserSettingKey.STYLE );
 
-if ( style != null )
-{
-return style;
-}
-
-return getSystemStyle();
+return ObjectUtils.firstNonNull( style, getSystemStyle() );
 }
 
 @Override

=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java	2016-01-04 02:27:49 +
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java	2016-01-12 12:49:50 +
@@ -669,6 +669,7 @@
 
 int importCount = 0;
 int updateCount = 0;
+int deleteCount = 0;
 int totalCount = 0;
 
 // -
@@ -897,6 +898,15 @@
 
 updateCount++;
 }
+else if ( strategy.isDelete() )
+{
+if ( !dryRun )
+{
+batchHandler.deleteObject( internalValue );
+}
+
+deleteCount++;
+}
 }
 else
 {
@@ -915,9 +925,9 @@
 
 batchHandler.flush();
 
-int ignores = totalCount - importCount - updateCount;
+int ignores = totalCount - importCount - updateCount - deleteCount;
 
-summary.setImportCount( new ImportCount( importCount, updateCount, ignores, 0 ) );
+summary.setImportCount( new ImportCount( importCount, updateCount, ignores, deleteCount ) );
 summary.setStatus( ImportStatus.SUCCESS );
 summary.setDescription( 

Re: [Dhis2-devs] Android Event Capture app doesn't allow decimal values

2016-01-12 Thread Sergio Valenzuela
Hi all,

The decimal values issue is still on. I checked the Android Event Capture
and Tracker Capture apps (on their last release for 2.20 DHIS2 version) and
I couldn't indroduce any decimal value on any form field even if the number
type of the data elements associated are "Number". The numeric pad which
appears when you are going to introduce numeric values on numeric fields
doesn't have a decimal comma key.
Do you have any news about this? Am I defining the data element in a bad
way?

Best regards!


*Sergio Valenzuela*
Fundación EHAS
Telemedicina para países en desarrollo -* www.ehas.org
*
E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
Madrid - España
Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62



2015-11-13 14:45 GMT+01:00 Sergio Valenzuela :

> Thanks for your answer Simen.
>
> I'll follow the result of your investigation, so just let me know if you
> can finally solve it from the API.
>
> Best regards.
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> *
> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> 2015-11-13 14:37 GMT+01:00 Simen Skogly Russnes  >:
>
>> Hi Sergio,
>>
>> yes I've checked this now and it seems the decimal is lost once the app
>> communicates with the server. From what I see it seems it might be an issue
>> in the API so we might be able to solve this without upgrading the Android
>> apps, but only the servers.
>>
>> Thanks,
>> Simen
>>
>> On Fri, Nov 13, 2015 at 7:26 AM, Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> Hi all,
>>>
>>> I am testing the last apk release of the Android Event Capture app for
>>> DHIS2 version 2.20 and I realized is not possible to introduce decimal
>>> values (like 12.5 or 3.3) on number type data element fields. The same
>>> fields allow me to introduce decimal values through the web application, so
>>> I guess is an Android app problem.
>>>
>>> Is there any solution for this?
>>>
>>> Thanks in advance.
>>>
>>>
>>> *Sergio Valenzuela*
>>> Fundación EHAS
>>> Telemedicina para países en desarrollo -* www.ehas.org
>>> *
>>> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
>>> Madrid - España
>>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>>
>>>
>>>
>>> ___
>>> 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 21702: Renamed user setting currentStyle to keyStyle

2016-01-12 Thread noreply

revno: 21702
committer: Lars Helge Overland 
branch nick: dhis2
timestamp: Tue 2016-01-12 14:06:50 +0100
message:
  Renamed user setting currentStyle to keyStyle
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java
  
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.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-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java	2016-01-12 12:49:50 +
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java	2016-01-12 13:06:50 +
@@ -39,7 +39,7 @@
  */
 public enum UserSettingKey
 {
-STYLE( "currentStyle" ),
+STYLE( "keyStyle" ),
 MESSAGE_EMAIL_NOTIFICATION( "keyMessageEmailNotification", Boolean.FALSE, Boolean.class ),
 MESSAGE_SMS_NOTIFICATION( "keyMessageSmsNotification", Boolean.FALSE, Boolean.class ),
 UI_LOCALE( "keyUiLocale", Locale.class ),

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java	2016-01-11 17:41:23 +
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java	2016-01-12 13:06:50 +
@@ -718,6 +718,7 @@
 executeSql( "delete from usersetting where name = 'dashboardConfig' or name = 'dashboardConfiguration'" );
 executeSql( "update usersetting set name = 'keyUiLocale' where name = 'currentLocale'" );
 executeSql( "update usersetting set name = 'keyDbLocale' where name = 'keyLocaleUserSetting'" );
+executeSql( "update usersetting set name = 'keyStyle' where name = 'currentStyle'" );
 executeSql( "ALTER TABLE interpretation ALTER COLUMN userid DROP NOT NULL" );
 executeSql( "UPDATE interpretation SET publicaccess='r---' WHERE publicaccess IS NULL;" );
 

=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm	2016-01-03 23:02:49 +
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm	2016-01-12 13:06:50 +
@@ -10,7 +10,7 @@
 
 
 
-
+
 
 
 

___
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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
Morten: It does an ilike on displayName/displayShortName.

On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> Hi Victor, I will try to find some to look at this today.
>
> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
> wrote:
>
>> Thanks Morten,
>>
>> any update on this issue? Could it be easily solved?
>>
>> Regards!
>>
>> Víctor
>>
>> On 22 December 2015 at 15:52, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> I'm including Jan who has been working on updating the reporting tools
>>> for translation. All that is required is to change name:like:XYZ to
>>> displayName:like:XYZ.
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia 
>>> wrote:
>>>
 Hi all,

 in analytics apps, we have noticed that DE & IND filters don't use the
 translated name to do the search. For example, if we are working in Spanish
 and we want to search for this dataelement

 English: "Donors: Hepatitis B exams"
 Spanish: "Donantes: Exámenes de Hepatitis B"

 we have to write "donors" (english word) in the search box to find it
 (see attached picture).

 We guess that this is not a bug, but a non-implemented feature. Looking
 at the roadmap, maybe this feature
 
  (2.23) has
 something to do with this issue.

 Meanwhile, could it be possible to have a workaround to deal with this
 problem?

 Using DHIS 2.21 rev 20971.

 Thank you!

 Víctor

 ___
 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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jan Henrik Øverland
 Happy hour in Ho Chi Minh?



On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen 
wrote:

> Jan, what you send me is not that
>
> All this lying is getting us nowhere. You don't like the truth?
>
>
> On Tuesday, 12 January 2016, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Morten: It does an ilike on displayName/displayShortName.
>>
>> On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
>> janhenrik.overl...@gmail.com> wrote:
>>
>>> Hi Victor, I will try to find some to look at this today.
>>>
>>> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
>>> wrote:
>>>
 Thanks Morten,

 any update on this issue? Could it be easily solved?

 Regards!

 Víctor

 On 22 December 2015 at 15:52, Morten Olav Hansen 
 wrote:

> Hi
>
> I'm including Jan who has been working on updating the reporting tools
> for translation. All that is required is to change name:like:XYZ to
> displayName:like:XYZ.
>
> --
> Morten
>
> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia 
> wrote:
>
>> Hi all,
>>
>> in analytics apps, we have noticed that DE & IND filters don't use
>> the translated name to do the search. For example, if we are working in
>> Spanish and we want to search for this dataelement
>>
>> English: "Donors: Hepatitis B exams"
>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>
>> we have to write "donors" (english word) in the search box to find it
>> (see attached picture).
>>
>> We guess that this is not a bug, but a non-implemented feature.
>> Looking at the roadmap, maybe this feature
>> 
>>  (2.23) has
>> something to do with this issue.
>>
>> Meanwhile, could it be possible to have a workaround to deal with
>> this problem?
>>
>> Using DHIS 2.21 rev 20971.
>>
>> Thank you!
>>
>> Víctor
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

>>>
>>
>
> --
> --
> Morten
>
>
___
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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Marta Vila
we are struggeling here to follow you guys XD

On 12 January 2016 at 15:05, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

>  Happy hour in Ho Chi Minh?
>
>
>
> On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen 
> wrote:
>
>> Jan, what you send me is not that
>>
>> All this lying is getting us nowhere. You don't like the truth?
>>
>>
>> On Tuesday, 12 January 2016, Jan Henrik Øverland <
>> janhenrik.overl...@gmail.com> wrote:
>>
>>> Morten: It does an ilike on displayName/displayShortName.
>>>
>>> On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com> wrote:
>>>
 Hi Victor, I will try to find some to look at this today.

 On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
 wrote:

> Thanks Morten,
>
> any update on this issue? Could it be easily solved?
>
> Regards!
>
> Víctor
>
> On 22 December 2015 at 15:52, Morten Olav Hansen 
> wrote:
>
>> Hi
>>
>> I'm including Jan who has been working on updating the reporting
>> tools for translation. All that is required is to change name:like:XYZ to
>> displayName:like:XYZ.
>>
>> --
>> Morten
>>
>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia 
>> wrote:
>>
>>> Hi all,
>>>
>>> in analytics apps, we have noticed that DE & IND filters don't use
>>> the translated name to do the search. For example, if we are working in
>>> Spanish and we want to search for this dataelement
>>>
>>> English: "Donors: Hepatitis B exams"
>>> Spanish: "Donantes: Exámenes de Hepatitis B"
>>>
>>> we have to write "donors" (english word) in the search box to find
>>> it (see attached picture).
>>>
>>> We guess that this is not a bug, but a non-implemented feature.
>>> Looking at the roadmap, maybe this feature
>>> 
>>>  (2.23) has
>>> something to do with this issue.
>>>
>>> Meanwhile, could it be possible to have a workaround to deal with
>>> this problem?
>>>
>>> Using DHIS 2.21 rev 20971.
>>>
>>> Thank you!
>>>
>>> Víctor
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>

>>>
>>
>> --
>> --
>> Morten
>>
>>
>
> ___
> 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] [Bug 1532787] Re: Tracker Capture - Controls at bottom of first page not working

2016-01-12 Thread Markus Bekken
** Changed in: dhis2
   Status: New => 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/1532787

Title:
  Tracker Capture - Controls at bottom of first page not working

Status in DHIS:
  Fix Committed

Bug description:
  The "No of rows per page" and "Jump to page" does not work in latest
  trunk (Version 2.22-SNAPSHOT, Build revision 21685).

  Jump to page does neither work by entering the page number, or by
  clicking on the page controls.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1532787/+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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Morten Olav Hansen
Jan, what you send me is not that

All this lying is getting us nowhere. You don't like the truth?

On Tuesday, 12 January 2016, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> Morten: It does an ilike on displayName/displayShortName.
>
> On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com
> > wrote:
>
>> Hi Victor, I will try to find some to look at this today.
>>
>> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia > > wrote:
>>
>>> Thanks Morten,
>>>
>>> any update on this issue? Could it be easily solved?
>>>
>>> Regards!
>>>
>>> Víctor
>>>
>>> On 22 December 2015 at 15:52, Morten Olav Hansen >> > wrote:
>>>
 Hi

 I'm including Jan who has been working on updating the reporting tools
 for translation. All that is required is to change name:like:XYZ to
 displayName:like:XYZ.

 --
 Morten

 On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia > wrote:

> Hi all,
>
> in analytics apps, we have noticed that DE & IND filters don't use the
> translated name to do the search. For example, if we are working in 
> Spanish
> and we want to search for this dataelement
>
> English: "Donors: Hepatitis B exams"
> Spanish: "Donantes: Exámenes de Hepatitis B"
>
> we have to write "donors" (english word) in the search box to find it
> (see attached picture).
>
> We guess that this is not a bug, but a non-implemented feature.
> Looking at the roadmap, maybe this feature
> 
>  (2.23) has
> something to do with this issue.
>
> Meanwhile, could it be possible to have a workaround to deal with this
> problem?
>
> Using DHIS 2.21 rev 20971.
>
> Thank you!
>
> Víctor
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> 
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

>>>
>>
>

-- 
--
Morten
___
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] Error calling ..../api/me/programs (null pointer exception)

2016-01-12 Thread Lars Helge Øverland
Hi Jose,

we will try to fix that. Unfortunately, the log snippet doesn't say much.
Are you able to share some more information, e.g. a part where it says
"Caused by: .." or share a login privately?

regards,

Lars


On Tue, Jan 12, 2016 at 7:47 PM, Jose Garcia Muñoz 
wrote:

>
> Hi devs,
>
> We are having some problems with the .../api/me/programs endopoint. Please
> find bellow the error traced attached. This is happening with a superuser
> who only has access to 2 org. units. Several programs are activated on the
> org. units.
>
> It is urgent, because we are using the DHIS2-SDK, and this is one of the
> API calls that the SDK does.
>
> We are using 2.20 (build revision: 19968)
>
> Any ideas?
>
> Thanks
> Jose
>
>
> org.springframework.web.util.NestedServletException: Request processing 
> failed; nested exception is java.lang.NullPointerException
>   
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:979)
>   
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>   
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>   
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
>   
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:93)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:64)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:140)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:115)
>   
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>   
> 

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21700: GIS aggregatable value types + confidential tei.

2016-01-12 Thread noreply

revno: 21700
committer: Jan Henrik Overland 
branch nick: dhis2
timestamp: Tue 2016-01-12 12:24:22 +0100
message:
  GIS aggregatable value types + confidential tei.
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.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
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js	2015-12-29 16:07:55 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js	2016-01-12 11:24:22 +
@@ -7181,13 +7181,11 @@
 this.sort('name', 'ASC');
 			},
 			setTotalsProxy: function(uid, preventLoad, callbackFn) {
-var path;
+var types = gis.conf.valueType.aAggregateTypes.join(','),
+path = '/dataElements.json?fields=dimensionItem|rename(id),' + gis.init.namePropertyUrl + '=valueType:in:[' + types + ']=aggregate=false';
 
 if (Ext.isString(uid)) {
-path = '/dataElements.json?fields=id,' + gis.init.namePropertyUrl + '=aggregate=false=dataElementGroups.id:eq:' + uid;
-}
-else if (uid === 0) {
-	path = '/dataElements.json?fields=id,' + gis.init.namePropertyUrl + '=aggregate=false';
+path += '=dataElementGroups.id:eq:' + uid;
 }
 
 if (!path) {
@@ -7219,9 +7217,11 @@
 			},
 			setDetailsProxy: function(uid, preventLoad, callbackFn) {
 if (Ext.isString(uid)) {
+var types = gis.conf.valueType.aAggregateTypes.join(',');
+
 	this.setProxy({
 		type: 'ajax',
-		url: gis.init.contextPath + '/api/dataElementOperands.json?fields=id,' + gis.init.namePropertyUrl + '=false=dataElement.dataElementGroups.id:eq:' + uid,
+		url: gis.init.contextPath + '/api/dataElementOperands.json?fields=dimensionItem|rename(id),' + gis.init.namePropertyUrl + '=valueType:in:[' + types + ']=dataElement.dataElementGroups.id:eq:' + uid + '=false',
 		reader: {
 			type: 'json',
 			root: 'dataElementOperands'
@@ -7756,49 +7756,31 @@
 onEventDataItemProgramSelect = function(programId) {
 eventDataItem.clearValue();
 
+var types = gis.conf.valueType.tAggregateTypes.join(','),
+namePropertyUrl = gis.init.namePropertyUrl;
+
 Ext.Ajax.request({
-url: gis.init.contextPath + '/api/programs.json?paging=false=programTrackedEntityAttributes[trackedEntityAttribute[id,displayName|rename(name),valueType]],programStages[programStageDataElements[dataElement[id,' + namePropertyUrl + ',valueType]]]=id:eq:' + programId,
+url: gis.init.contextPath + '/api/programDataElements.json?program=' + programId + '=valueType:in:[' + types + ']=dimensionItem|rename(id),name,valueType=false',
+disableCaching: false,
 success: function(r) {
-r = Ext.decode(r.responseText);
-
-var isA = Ext.isArray,
-isO = Ext.isObject,
-program = isA(r.programs) && r.programs.length ? r.programs[0] : null,
-stages = isO(program) && isA(program.programStages) && program.programStages.length ? program.programStages : [],
-teas = isO(program) && isA(program.programTrackedEntityAttributes) ? Ext.Array.pluck(program.programTrackedEntityAttributes, 'trackedEntityAttribute') : [],
-dataElements = [],
-attributes = [],
-types = gis.conf.valueType.aggregateTypes,
-data;
-
-// data elements
-for (var i = 0, stage, elements; i < stages.length; i++) {
-stage = stages[i];
-
-if (isA(stage.programStageDataElements) && stage.programStageDataElements.length) {
-elements = Ext.Array.pluck(stage.programStageDataElements, 'dataElement') || [];
-
-for (var j = 0; j < elements.length; j++) {
-if (Ext.Array.contains(types, elements[j].valueType)) {
-dataElements.push(elements[j]);
-}
+var elements = Ext.decode(r.responseText).programDataElements,
+isA = Ext.isArray,
+isO = Ext.isObject;
+
+Ext.Ajax.request({
+url: gis.init.contextPath + 

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21703: Fixed paging in tracker capture program dashboard

2016-01-12 Thread noreply

revno: 21703
committer: Markus Bekken 
branch nick: dhis2
timestamp: Tue 2016-01-12 14:12:43 +0100
message:
  Fixed paging in tracker capture program dashboard
modified:
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.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
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js	2016-01-07 10:54:44 +
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js	2016-01-12 13:12:43 +
@@ -57,7 +57,7 @@
 $scope.attributesById = null;
 $scope.doSearch = true;

-function resetParams(){
+function resetParams(goToPage){
 $scope.trackedEntityList = null;
 $scope.sortColumn = {};
 $scope.emptySearchText = false;
@@ -68,7 +68,10 @@
 $scope.queryUrl = null;
 $scope.programUrl = null;
 $scope.attributeUrl = {url: null, hasValue: false};
-$scope.pager = {pageSize: 50, page: 1, toolBarDisplay: 5};
+if(!goToPage){
+$scope.pager = {pageSize: 50, page: 1, toolBarDisplay: 5};   
+}
+
 }
 
 //watch for selection of org unit from tree
@@ -229,8 +232,8 @@
 };

 //$scope.searchParam = {bools: []};
-$scope.search = function(mode){
-resetParams();
+$scope.search = function(mode,goToPage){
+resetParams(goToPage);
 var grid = TEIGridService.generateGridColumns($scope.attributes, $scope.selectedOuMode.name, true);
 $scope.gridColumns = grid.columns;
 
@@ -363,17 +366,17 @@
 if($scope.pager && $scope.pager.page && $scope.pager.pageCount && $scope.pager.page > $scope.pager.pageCount){
 $scope.pager.page = $scope.pager.pageCount;
 }
-$scope.search();
+$scope.search(null,true);
 };
 
 $scope.resetPageSize = function(){
 $scope.pager.page = 1;
-$scope.search();
+$scope.search(null,true);
 };
 
 $scope.getPage = function(page){
 $scope.pager.page = page;
-$scope.search();
+$scope.search(null,true);
 };
 
 $scope.clearEntities = function(){

___
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] [ANDROID] Data capture app project setup

2016-01-12 Thread Sultanahamar Mohammad
Hi Araz,

Thanks for the reply, I am now able to build the app. Could you please
point me to the working sdk so that I can build the other apps. I have
downloaded the code from releases of git repo for the apps but sdk does not
seem to have a release and since the other apps depend on the sdk, I might
not be able to build it.

Thanks and Regards,
Sultan Ahamar.



On Tue, Jan 12, 2016 at 3:29 PM, Araz Abishov 
wrote:

> Hi Sultanahamar,
>
> Which branch have you tried to build? Master branch is now in major
> refactoring stage.
>
> The code for current version (published in google play) of Data Capture
> app is located in "legacy" branch.
>
> Could you please try to build it?
>
> Best regards,
> Araz
> On Jan 12, 2016 10:28 AM, "Sultanahamar Mohammad" <
> sult...@thoughtworks.com> wrote:
>
>> Hi Team,
>>
>> We are not able to build the data capture app. App seems to have some
>> external dependencies and after having a look in gradle files, we realized
>> that this app also depends on sdk. But sdk is failing and lot of compile
>> time errors coming up. Could you please help us build this app.
>>
>> Thanks and Regards,
>> Sultan Ahamar.
>>
>> ___
>> 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 21699: minor fix, change NonUniqueAttributeValueException from checked to unchecked exception

2016-01-12 Thread noreply

revno: 21699
committer: Morten Olav Hansen 
branch nick: dhis2
timestamp: Tue 2016-01-12 17:20:27 +0700
message:
  minor fix, change NonUniqueAttributeValueException from checked to unchecked 
exception
modified:
  
dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/NonUniqueAttributeValueException.java
  
dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.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-api/src/main/java/org/hisp/dhis/attribute/exception/NonUniqueAttributeValueException.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/NonUniqueAttributeValueException.java	2016-01-04 02:27:49 +
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/exception/NonUniqueAttributeValueException.java	2016-01-12 10:20:27 +
@@ -33,7 +33,7 @@
 /**
  * @author Morten Olav Hansen 
  */
-public class NonUniqueAttributeValueException extends Exception
+public class NonUniqueAttributeValueException extends RuntimeException
 {
 public NonUniqueAttributeValueException( AttributeValue attributeValue )
 {

=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java	2016-01-04 02:27:49 +
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java	2016-01-12 10:20:27 +
@@ -33,7 +33,6 @@
 import org.hisp.dhis.attribute.Attribute;
 import org.hisp.dhis.attribute.AttributeService;
 import org.hisp.dhis.attribute.AttributeValue;
-import org.hisp.dhis.attribute.exception.NonUniqueAttributeValueException;
 import org.hisp.dhis.common.IdSchemes;
 import org.hisp.dhis.common.IdentifiableObject;
 import org.hisp.dhis.common.IdentifiableObjectManager;
@@ -144,14 +143,7 @@
 private AttributeValue addAttributeValue( IdentifiableObject identifiableObject, Attribute attribute, String value )
 {
 AttributeValue attributeValue = new AttributeValue( value, attribute );
-
-try
-{
-attributeService.addAttributeValue( identifiableObject, attributeValue );
-}
-catch ( NonUniqueAttributeValueException ignored )
-{
-}
+attributeService.addAttributeValue( identifiableObject, attributeValue );
 
 return attributeValue;
 }

___
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] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Morten Olav Hansen
That's what I say.


Actually for trunk bugs you should not report like this. Because it's too
early.


Lars will tell you how to report.

On Tuesday, 12 January 2016, Jason Pickering 
wrote:

> Hi Marta
> I think we can interpret this to mean that the dev team is looking into
> it.
>
> Regards,
> Jason
>
> On Tue, Jan 12, 2016, 15:22 Marta Vila  > wrote:
>
>> we are struggeling here to follow you guys XD
>>
>> On 12 January 2016 at 15:05, Jan Henrik Øverland <
>> janhenrik.overl...@gmail.com
>> > wrote:
>>
>>>  Happy hour in Ho Chi Minh?
>>>
>>>
>>>
>>> On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen >> > wrote:
>>>
 Jan, what you send me is not that

 All this lying is getting us nowhere. You don't like the truth?


 On Tuesday, 12 January 2016, Jan Henrik Øverland <
 janhenrik.overl...@gmail.com
 > wrote:

> Morten: It does an ilike on displayName/displayShortName.
>
> On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Hi Victor, I will try to find some to look at this today.
>>
>> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
>> wrote:
>>
>>> Thanks Morten,
>>>
>>> any update on this issue? Could it be easily solved?
>>>
>>> Regards!
>>>
>>> Víctor
>>>
>>> On 22 December 2015 at 15:52, Morten Olav Hansen >> > wrote:
>>>
 Hi

 I'm including Jan who has been working on updating the reporting
 tools for translation. All that is required is to change name:like:XYZ 
 to
 displayName:like:XYZ.

 --
 Morten

 On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia <
 vgarcia...@gmail.com> wrote:

> Hi all,
>
> in analytics apps, we have noticed that DE & IND filters don't use
> the translated name to do the search. For example, if we are working 
> in
> Spanish and we want to search for this dataelement
>
> English: "Donors: Hepatitis B exams"
> Spanish: "Donantes: Exámenes de Hepatitis B"
>
> we have to write "donors" (english word) in the search box to find
> it (see attached picture).
>
> We guess that this is not a bug, but a non-implemented feature.
> Looking at the roadmap, maybe this feature
> 
>  (2.23) has
> something to do with this issue.
>
> Meanwhile, could it be possible to have a workaround to deal with
> this problem?
>
> Using DHIS 2.21 rev 20971.
>
> Thank you!
>
> Víctor
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

>>>
>>
>

 --
 --
 Morten


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

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


Re: [Dhis2-devs] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Jason Pickering
Hi Marta
I think we can interpret this to mean that the dev team is looking into it.

Regards,
Jason

On Tue, Jan 12, 2016, 15:22 Marta Vila  wrote:

> we are struggeling here to follow you guys XD
>
> On 12 January 2016 at 15:05, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>>  Happy hour in Ho Chi Minh?
>>
>>
>>
>> On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Jan, what you send me is not that
>>>
>>> All this lying is getting us nowhere. You don't like the truth?
>>>
>>>
>>> On Tuesday, 12 January 2016, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com> wrote:
>>>
 Morten: It does an ilike on displayName/displayShortName.

 On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
 janhenrik.overl...@gmail.com> wrote:

> Hi Victor, I will try to find some to look at this today.
>
> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
> wrote:
>
>> Thanks Morten,
>>
>> any update on this issue? Could it be easily solved?
>>
>> Regards!
>>
>> Víctor
>>
>> On 22 December 2015 at 15:52, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> I'm including Jan who has been working on updating the reporting
>>> tools for translation. All that is required is to change name:like:XYZ 
>>> to
>>> displayName:like:XYZ.
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia >> > wrote:
>>>
 Hi all,

 in analytics apps, we have noticed that DE & IND filters don't use
 the translated name to do the search. For example, if we are working in
 Spanish and we want to search for this dataelement

 English: "Donors: Hepatitis B exams"
 Spanish: "Donantes: Exámenes de Hepatitis B"

 we have to write "donors" (english word) in the search box to find
 it (see attached picture).

 We guess that this is not a bug, but a non-implemented feature.
 Looking at the roadmap, maybe this feature
 
  (2.23) has
 something to do with this issue.

 Meanwhile, could it be possible to have a workaround to deal with
 this problem?

 Using DHIS 2.21 rev 20971.

 Thank you!

 Víctor

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


>>>
>>
>

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


[Dhis2-devs] Error calling ..../api/me/programs (null pointer exception)

2016-01-12 Thread Jose Garcia Muñoz
Hi devs,

We are having some problems with the .../api/me/programs endopoint. Please
find bellow the error traced attached. This is happening with a superuser
who only has access to 2 org. units. Several programs are activated on the
org. units.

It is urgent, because we are using the DHIS2-SDK, and this is one of the
API calls that the SDK does.

We are using 2.20 (build revision: 19968)

Any ideas?

Thanks
Jose


org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is java.lang.NullPointerException

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:979)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

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

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)

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

org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)

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

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)

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

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

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

org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)

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

org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)

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

org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:93)

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

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

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

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

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

org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:64)

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

org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:140)

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

org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)

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

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

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

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

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

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


Re: [Dhis2-devs] Multilingual analytics - DE and IND filter does not use translations

2016-01-12 Thread Morten Olav Hansen
Msf, I'm sorry there guys have bad minds. Please let us know what you want.
We can provide
:)

On Tuesday, 12 January 2016, Marta Vila  wrote:

> we are struggeling here to follow you guys XD
>
> On 12 January 2016 at 15:05, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com
> > wrote:
>
>>  Happy hour in Ho Chi Minh?
>>
>>
>>
>> On Tue, Jan 12, 2016 at 2:57 PM, Morten Olav Hansen > > wrote:
>>
>>> Jan, what you send me is not that
>>>
>>> All this lying is getting us nowhere. You don't like the truth?
>>>
>>>
>>> On Tuesday, 12 January 2016, Jan Henrik Øverland <
>>> janhenrik.overl...@gmail.com
>>> > wrote:
>>>
 Morten: It does an ilike on displayName/displayShortName.

 On Tue, Jan 12, 2016 at 10:39 AM, Jan Henrik Øverland <
 janhenrik.overl...@gmail.com> wrote:

> Hi Victor, I will try to find some to look at this today.
>
> On Mon, Jan 11, 2016 at 6:12 PM, Victor Garcia 
> wrote:
>
>> Thanks Morten,
>>
>> any update on this issue? Could it be easily solved?
>>
>> Regards!
>>
>> Víctor
>>
>> On 22 December 2015 at 15:52, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> I'm including Jan who has been working on updating the reporting
>>> tools for translation. All that is required is to change name:like:XYZ 
>>> to
>>> displayName:like:XYZ.
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Dec 22, 2015 at 3:45 PM, Victor Garcia >> > wrote:
>>>
 Hi all,

 in analytics apps, we have noticed that DE & IND filters don't use
 the translated name to do the search. For example, if we are working in
 Spanish and we want to search for this dataelement

 English: "Donors: Hepatitis B exams"
 Spanish: "Donantes: Exámenes de Hepatitis B"

 we have to write "donors" (english word) in the search box to find
 it (see attached picture).

 We guess that this is not a bug, but a non-implemented feature.
 Looking at the roadmap, maybe this feature
 
  (2.23) has
 something to do with this issue.

 Meanwhile, could it be possible to have a workaround to deal with
 this problem?

 Using DHIS 2.21 rev 20971.

 Thank you!

 Víctor

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


>>>
>>
>

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

-- 
--
Morten
___
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] Android Event Capture app doesn't allow decimal values

2016-01-12 Thread Lars Helge Øverland
Hi Sergio,

just to make sure - did you set the value type of the data element to
"number" or "integer" ?

regards,

Lars


On Tue, Jan 12, 2016 at 11:59 AM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hi all,
>
> The decimal values issue is still on. I checked the Android Event Capture
> and Tracker Capture apps (on their last release for 2.20 DHIS2 version) and
> I couldn't indroduce any decimal value on any form field even if the number
> type of the data elements associated are "Number". The numeric pad which
> appears when you are going to introduce numeric values on numeric fields
> doesn't have a decimal comma key.
> Do you have any news about this? Am I defining the data element in a bad
> way?
>
> Best regards!
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> *
> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> 2015-11-13 14:45 GMT+01:00 Sergio Valenzuela :
>
>> Thanks for your answer Simen.
>>
>> I'll follow the result of your investigation, so just let me know if you
>> can finally solve it from the API.
>>
>> Best regards.
>>
>>
>> *Sergio Valenzuela*
>> Fundación EHAS
>> Telemedicina para países en desarrollo -* www.ehas.org
>> *
>> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
>> Madrid - España
>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>
>>
>>
>> 2015-11-13 14:37 GMT+01:00 Simen Skogly Russnes <
>> simen.s.russ...@gmail.com>:
>>
>>> Hi Sergio,
>>>
>>> yes I've checked this now and it seems the decimal is lost once the app
>>> communicates with the server. From what I see it seems it might be an issue
>>> in the API so we might be able to solve this without upgrading the Android
>>> apps, but only the servers.
>>>
>>> Thanks,
>>> Simen
>>>
>>> On Fri, Nov 13, 2015 at 7:26 AM, Sergio Valenzuela <
>>> sergio.valenzu...@ehas.org> wrote:
>>>
 Hi all,

 I am testing the last apk release of the Android Event Capture app for
 DHIS2 version 2.20 and I realized is not possible to introduce decimal
 values (like 12.5 or 3.3) on number type data element fields. The same
 fields allow me to introduce decimal values through the web application, so
 I guess is an Android app problem.

 Is there any solution for this?

 Thanks in advance.


 *Sergio Valenzuela*
 Fundación EHAS
 Telemedicina para países en desarrollo -* www.ehas.org
 *
 E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
 Madrid - España
 Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62



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


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