[Dhis2-users] Indicator Reload bug for optionset DEs in Data Entry

2017-11-20 Thread Salehi, Baktash
Dear DHIS 2 community,

We have a checklist (Approx 250 data elements) with scores that are computed 
using indicators and totals displayed in a custom data entry form.

In analytics (i.e pivot tables), the indicator values are computed and 
displayed as expected.

In the data entry form, the indicator values (i.e Totals) are also computed and 
displayed as expected during the data entry process.

However, when the dataset is closed and re-opened, ONLY indicators calculated 
from numeric data elements are displayed. Those with optionset values are not 
recalculated (Zero).It is after changing the value in the drop-down list 
(Reloading) that the values of ALL the indicators are re-calculated and 
displayed, which is not an ideal solution.

I have created a test dataset on Demo server, with data added for:
OU: Ngelehun CHC
DS: Mujtaba-Dataset
Period: July - September 2017

If there is a function I can call from 'dhis2.de.event.formReady' to refresh 
and re-calculate the indicators, then that would be very helpful as well.

Regards,
Baktash Salehi
ICT Database Specialist
Health Sector Resiliency (HSR) Project

M + 93 (0) 792 010150
Skype: bakosalehi
House# 315, Street 03 (besides German clinic), Ansari Watt,
Shahr-e-Naw, District 04, Kabul - Afghanistan


Palladium
Make it possible
thepalladiumgroup.com

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


[Dhis2-users] how to set the default gis app map 's center?

2017-11-20 Thread 林晓东
Hi,all,


 I want to know  how to set the default map center of gis app.


  Thanks.






--

此致

easy

莫愁前路无知己,天下谁人不识君。___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Data Elements and Category Options Not Showing Up in Form Designer

2017-11-20 Thread Ifeanyi Okoye
Hello All,We are encountering this issue with the form designer where either 
the data element does not show up in the form designer i.e. after having been 
assigned to a dataset, or some of the category options do not show up.

In this instance I have a data element disaggregated by testing modalities, 
sex, and age (age categories 
<1,1-4,5-9,10-14,15-19,20-24,25-29,30-34,35-39,40-44,45-49,50+).
The way it is showing up, a number of the age bands are missing in the form 
designer and it is not uniform. E.g. VCT has female 15-19, VCT is missing male 
15-19.
I have run maintenance, generated resource tables, run analytics, removed the 
options from the category combo and put them back again, but still not showing 
up.
We use custom forms a lot and this is not the first time we are encountering 
this, but then, not to this degree.

Can anybody please help with this?
We are running DHIS2 ver 2.27 Build revision: a8283e0 Build date: 2017-09-21 
06:25
Thank you.
Warm Regards, 

Ifeanyi

Read DrMaestro's Blog
www.ifeanyiokoye.com

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


[Dhis2-users] program indicator display in event capture app

2017-11-20 Thread Jane Greig
Dear colleagues

We have noticed that when a program indicator is marked to "display in form", 
what is displayed is the description rather than the short name (which is what 
I would expect to see). This is true in the current stable demo (e.g. BMI in 
inpatient mortality program). Is this intentional?

Also, if a number of indicators in a program are all marked to display in form, 
the order they show in appears to be random - it does not match the 
alphabetical order of the name, or seem to follow the order of the section it 
is linked to (if each is linked to a different section). Is there a way to 
enforce an order that I am missing?

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


[Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-20 Thread Sourabh Bhardwaj
Hi All,

I need to share some information from resources publicly say a
image/document etc.

Have set External access (without login) to true.

https://play.dhis2.org/demo/api/documents/{UID}

is returning:

*{"httpStatus":"Internal Server
Error","httpStatusCode":500,"status":"ERROR"}*

Is there any user Role also(however I have logged in with super user) to
create public resources or is there any alternative available?

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


Re: [Dhis2-users] CSV event import only works when importing one line

2017-11-20 Thread Ramón José Jiménez Pomareta
Here's the server log :)

2017-11-20 12:11 GMT+01:00 Ramón José Jiménez Pomareta :

> Hello,
>
> We are experiencing some problems to import events with the import-export
> data App. It only allows to import one line. When we import more than one
> it raises an error on the serve (see the serverlog attached).
>
> The user received a part of the serverlog error :
> Process failed: A different object with the same identifier value was
> already associated with the session : [org.hisp.dhis.
> trackedentitydatavalue.TrackedEntityDataValue#TrackedEntityDataValue{dataElement={"class":"class
> org.hisp.dhis.dataelement.DataElement", "hashCode":"582086769",
> "id":"92040",
>
> JIRA ticket : https://jira.dhis2.org/browse/DHIS2-2518
>
> Thank you for helping.
>
> PS: The documentation should be updated in order to know the correct csv
> format: c.f. (https://jira.dhis2.org/browse/DHIS2-1905)
>
> Best,
> Ramón Jimenez Pomareta
>
* INFO  2017-11-20 11:57:30,354 [Level: INFO, category: EVENT_IMPORT, time: Mon 
Nov 20 11:57:30 CET 2017, message: Importing events] (InMemoryNotifier.java 
[taskScheduler-16])
* INFO  2017-11-20 11:57:30,394 'ramon' update 
org.hisp.dhis.program.ProgramStageInstance, uid: A (AuditLogUtil.java 
[taskScheduler-16])
* INFO  2017-11-20 11:57:30,401 'ramon' update 
org.hisp.dhis.program.ProgramInstance, uid: BBB (AuditLogUtil.java 
[taskScheduler-16])
* ERROR 2017-11-20 11:57:30,410 org.hibernate.NonUniqueObjectException: A 
different object with the same identifier value was already associated with the 
session : 
[org.hisp.dhis.trackedentitydatavalue.TrackedEntityDataValue#TrackedEntityDataValue{dataElement={"class":"class
 org.hisp.dhis.dataelement.DataElement", "hashCode":"582086769", "id":"92040", 
"uid":"CC", "code":"Yaws_cases_byProvenance_T", "name":"Yaws_cases_by 
provenance_T", "shortName":"Yaws_cases_by provenance_T", "description":"Number 
of yaws cases, reported by place of provenance.", "created":"2017-03-20 
13:40:45.219", "lastUpdated":"2017-10-02 09:00:39.284" }, 
programStageInstance={"class":"class 
org.hisp.dhis.program.ProgramStageInstance", "id":"126872", "uid":"A", 
"code":"null", "name":"null", "created":"Mon Nov 20 11:57:30 CET 2017", 
"lastUpdated":"Mon Nov 20 11:57:30 CET 2017" }, lastUpdated=Mon Nov 20 11:57:30 
CET 2017, value='65', providedElsewhere=null, storedBy='ramon'}]
at 
org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:169)
at 
org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:125)
at 
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)
at 
org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)
at 
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)
at 
org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)
at 
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)
at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:682)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:674)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:669)
at 
org.hisp.dhis.trackedentitydatavalue.hibernate.HibernateTrackedEntityDataValueStore.saveVoid(HibernateTrackedEntityDataValueStore.java:56)
at 
org.hisp.dhis.trackedentitydatavalue.DefaultTrackedEntityDataValueService.saveTrackedEntityDataValue(DefaultTrackedEntityDataValueService.java:105)
at sun.reflect.GeneratedMethodAccessor2551.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(E

[Dhis2-users] CSV event import only works when importing one line

2017-11-20 Thread Ramón José Jiménez Pomareta
Hello,

We are experiencing some problems to import events with the import-export
data App. It only allows to import one line. When we import more than one
it raises an error on the serve (see the serverlog attached).

The user received a part of the serverlog error :
Process failed: A different object with the same identifier value was
already associated with the session :
[org.hisp.dhis.trackedentitydatavalue.TrackedEntityDataValue#TrackedEntityDataValue{dataElement={"class":"class
org.hisp.dhis.dataelement.DataElement", "hashCode":"582086769",
"id":"92040",

JIRA ticket : https://jira.dhis2.org/browse/DHIS2-2518

Thank you for helping.

PS: The documentation should be updated in order to know the correct csv
format: c.f. (https://jira.dhis2.org/browse/DHIS2-1905)

Best,
Ramón Jimenez Pomareta
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp