[Dhis2-users] Help! for crossDomain issue

2016-09-07 Thread DJIBRIL Hakim
Hi all
Can anyone please help on this?
I am trying to do design a webportal using this authentification

jQuery(document).ready(function() {

  $.post( base + "dhis-web-commons-security/login.action?authOnly=true", {

  j_username: "admin", j_password: "district"

}

  );

});

I add the hosted url in cors whitelist  but still get the same issue , so I
am choosing to add *crossdomain : true.*


How add *it* in this code?

Best reagrds.


Hakim DJIBRIL
IT advisor.
___
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] Program Indicator question

2016-09-07 Thread Iuri Fanti
I have a similar issue: I'd like to automatically fill a program field
with the patient's age range (i.e. "from 1 to 4", "from 5 to 15", ecc)
based on the manually filled age field.  A program indicator can only
return numbers, and a program rule can only hide sections/fields or
show warnings/errors (see attacched ). So, what should I do?

Thank you in advance for any help,

Iuri

2016-06-30 21:23 GMT+02:00 Markus Bekken :
> Hi Nick!
> (possibly wrong list?)
>
> Indicators should normally result in a number that can be aggregated
> somehow. Did you want to calculate (and show) the due date to avoid that the
> user has to do this himself? In that case it is probably not a program
> indicator, but we can do it with program rules - adding 283 days to the LMP
> date and either show the result on the data entry screen or assign it to
> another data element.
>
> Markus
>
> 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
>
> Hi everyone
>
> Quick question about program indicators.
>
> If I want to estimate a mother's due date based on last menstrual period for
> example, how does the expression for the program indicator look like?
>
> Thanks
> Nick
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>



-- 
@-`-,--
___
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] translate on tracker capture

2016-09-07 Thread Abdul karim Jaafar
Dear Abyot,

 

Thank you for quick answer.

 

I didn’t receive any error massage, also I created a test program for 
translation with new data elements and attributes and did translation for every 
think in program,

 

And I cleared cache from DHIS2 and from browser, but it still  not working.

 

I use version 2.22 but when I tried version 2.24, but I have big problems with 
upgrading to 2.24 (server freezing, out of memory, GIS is not working well,….)

 

So I can’t upgrade to 2.24 now.

 

The main reason for translate tracker capture data elements because I need to 
use ‘offline mode’ and it exist just in Android App that use tracker capture 
without custom from, so I have to translate  the data elements.

 

Any solution please.

 

Abdulkarim

 

From: Abyot Asalefew Gizaw [mailto:ab...@dhis2.org] 
Sent: Wednesday, September 7, 2016 9:59 AM
To: Abdul karim Jaafar 
Cc: Hannan Khan ; Lars Helge Øverland ; 
Halvdan Hoem Grelland ; DHIS 2 Users list 

Subject: RE: translate on tracker capture

 

Dear Abdul Karim,

Tracker app supports translation of both data elements and attributes.

Are you getting any error messages? Have you tried to clear your cache?

---

Thank you,
Abyot.
(sent from mobile)

 

On Sep 7, 2016 08:49, "Abdul karim Jaafar"  > wrote:

Dears,

 

Four your kind reminder

 

Regards,

 

From: Abdul karim Jaafar [mailto:abdulkarim.jaafa...@gmail.com 
 ] 
Sent: Monday, September 5, 2016 1:08 PM
To: DHIS 2 Users list  >
Subject: translate on tracker capture

 

Dears all,

 

I tried to use translate on tracker capture module for attributes and data 
element but it didn’t work, although it work well with data entry module (Data 
Set) 

 

Could you please tell me it’s a main problem or not, and what can I do to solve 
this problem?

 

Regards,

 

Abdul karim Jaafar

___
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] Need help on AD integration with DHIS2

2016-09-07 Thread Neeraj Gupta
Dear team,

Has some done this earlier?

On Mon, Aug 29, 2016 at 4:18 PM, Neeraj Gupta  wrote:

> Hi Team,
>
> We are using DHIS2 version 2.21.
> We need to use AD integration in the application. Is it possible to
> integrate AD with DHIS version 2.21?
>
> Has anyone used it already with any of the version?
>
> --
> Thanks,
> Neeraj Gupta
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Thanks,
Neeraj Gupta
___
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] Pivot4j integration

2016-09-07 Thread Derek Kahongo Mukenge
Hi Murod,

I want to integrate its in my DHIS2 instance,

You can share with me at derek.eli...@gmail.com.

Thanks.

2016-09-04 6:31 GMT+01:00 Murod Latifov :

> Dear devs and users,
>
> I integrated Pivot4j (its user interface and backend) into DHIS2 codebase.
> Its a tooling like "analytics" of DHIS2 based on global standards of OLAP.
> For more info please look at http://www.pivot4j.org
>
> If anybody is interested I can share integration prcoess to make it run
> within DHIS2.
>
> with best regards,
> murod
>
> ___
> 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
>
>


-- 
*Derek Kahongo Mukenge*
___
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] Too Many Open Files?

2016-09-07 Thread Bob Jolliffe
Hi Jason

Halvdan is right - these are more likely file descriptors associated with
sockets.

The limit you have dug up is the kernel limit (ie total no of "files" that
the kernel can have open in total) which is probably not the limit you are
reaching.

If you have a very busy server you can have a lot of sockets lingering in
what is called tcp's TIME_WAIT state (on tomcat the problem becomes visible
quicker than nginx because you also have postgres connections using tcp
sockets).

netstat -t | grep -c TIME_WAIT

will give you an idea.  Sockets in this state hang around for a minute or
so and add to the total number of connections.

>From which there are only two real solutions .. either reduce the system's
TIME_WAIT time or increase the number of sockets the process is allowed to
open. Reducing TIME_WAIT is not really recommended as you might end up with
lost packets when connections are closing.  To increase the max number of
open fds you need to increase the ulimit for the user running the tomcat
process.  There are different ways depending a bit on how your tomcat is
installed ... google tomcat ulimit will give some ideas.

On 7 September 2016 at 07:21, Halvdan Hoem Grelland 
wrote:

> Hi Jason,
>
> ‘Files’ in this context is really a file descriptor, which is any
> connectable resource in the system, including both files and sockets.
>
> I do agree that it’s unlikely that Tomcat hogs 6.5 million FDs, but I’m
> not convinced that is the real limit either.
>
> You could try:
>
> ulimit -n
>
> To get the max for open file descriptors in the system.
>
> You can check max FDs for the Tomcat process by running:
>
> cat /proc//limits
>
> Which is usually around 1024.
>
> Also this
> 
> might be useful.
>
> Lastly, if the limits are sane (which they probably are) and you are able
> to reproduce the issue you could try using this tool
>  to pinpoint the problem.
> (Disclaimer: I have no experience with it).
> ​
>
> On Mon, Sep 5, 2016 at 11:22 PM, Jason Phillips  wrote:
>
>> Hi all,
>>
>>
>>
>> We have a system that tanked last night, reporting:
>>
>>
>>
>> 14-Aug-2016 19:13:57.440 SEVERE [http-nio-8080-Acceptor-0]
>> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed
>>
>> java.io.IOException: Too many open files
>>
>> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>>
>> at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChanne
>> lImpl.java:422)
>>
>> at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChanne
>> lImpl.java:250)
>>
>> at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpo
>> int.java:687)
>>
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>> Any ideas what the cause might be?  The environment is Ubuntu 14.04,
>> Tomcat 8, Java 8.
>>
>> A cat /proc/sys/fs/file-max returns 6556412 – and that system was
>> physically restarted within the last week.  I find it hard to believe that
>> the web server would have 6,5 million files open in such a short period of
>> time.
>>
>> War is 2.23
>>
>> OS is Ubuntu 14.04 LTS
>>
>> Tomcat 8
>>
>> Java 8
>>
>>
>>
>> Kind Regards,
>>
>> *Jason Phillips*
>>
>> [image: hisp]
>> *Information Systems / Infrastructure*
>>
>> *Health Information Systems Program*
>>
>> eMail:   ja...@hisp.org
>> Tel/Fax:+27 21 712 0170
>> Cell: +27 72 973 7250
>> Skype: jason.n.phillips
>>
>> This message and any attachments are subject to a disclaimer published at
>> http://www.hisp.org/policies.html#comms_disclaimer.  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org and a copy will
>> be provided to you. By replying to this e-mail or opening any attachment
>> you agree to be bound by the provisions of the disclaimer.
>>
>>
>>
>> *This message and any attachments are subject to a disclaimer published
>> at http://www.hisp.org/policies.html#comms_disclaimer
>> .  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org
>>  and a copy will be provided to you. By replying to
>> this e-mail or opening any attachment you agree to be bound by the
>> provisions of the disclaimer.*
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Halvdan Hoem 

Re: [Dhis2-users] translate on tracker capture

2016-09-07 Thread Abyot Asalefew Gizaw
Dear Abdul Karim,

Tracker app supports translation of both data elements and attributes.

Are you getting any error messages? Have you tried to clear your cache?

---

Thank you,
Abyot.
(sent from mobile)

On Sep 7, 2016 08:49, "Abdul karim Jaafar" 
wrote:

> Dears,
>
>
>
> Four your kind reminder
>
>
>
> Regards,
>
>
>
> *From:* Abdul karim Jaafar [mailto:abdulkarim.jaafa...@gmail.com]
> *Sent:* Monday, September 5, 2016 1:08 PM
> *To:* DHIS 2 Users list 
> *Subject:* translate on tracker capture
>
>
>
> Dears all,
>
>
>
> I tried to use translate on tracker capture module for attributes and data
> element but it didn’t work, although it work well with data entry module
> (Data Set)
>
>
>
> Could you please tell me it’s a main problem or not, and what can I do to
> solve this problem?
>
>
>
> Regards,
>
>
>
> *Abdul karim Jaafar*
>
___
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] translate on tracker capture

2016-09-07 Thread Abdul karim Jaafar
Dears,

 

Four your kind reminder

 

Regards,

 

From: Abdul karim Jaafar [mailto:abdulkarim.jaafa...@gmail.com] 
Sent: Monday, September 5, 2016 1:08 PM
To: DHIS 2 Users list 
Subject: translate on tracker capture

 

Dears all,

 

I tried to use translate on tracker capture module for attributes and data
element but it didn’t work, although it work well with data entry module
(Data Set) 

 

Could you please tell me it’s a main problem or not, and what can I do to
solve this problem?

 

Regards,

 

Abdul karim Jaafar

___
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] translate on tracker capture

2016-09-07 Thread Knut Staring
Translation of data elements is supported.

If you have run the app before adding the  translation strings, you need to
clear your browser cache.

On 7 Sep 2016 08:49, "Abdul karim Jaafar" 
wrote:

> Dears,
>
>
>
> Four your kind reminder
>
>
>
> Regards,
>
>
>
> *From:* Abdul karim Jaafar [mailto:abdulkarim.jaafa...@gmail.com]
> *Sent:* Monday, September 5, 2016 1:08 PM
> *To:* DHIS 2 Users list 
> *Subject:* translate on tracker capture
>
>
>
> Dears all,
>
>
>
> I tried to use translate on tracker capture module for attributes and data
> element but it didn’t work, although it work well with data entry module
> (Data Set)
>
>
>
> Could you please tell me it’s a main problem or not, and what can I do to
> solve this problem?
>
>
>
> Regards,
>
>
>
> *Abdul karim Jaafar*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Enrollment date + translation

2016-09-07 Thread Abyot Asalefew Gizaw
Dear Lise,

Translation of data elements is supported.

If you have run the app before adding the  translation strings, you need to
clear your browser cache.

---

Thank you,
Abyot.
(sent from mobile)

On Sep 6, 2016 19:01, "GROUT, Lise"  wrote:

> Dear Abyot,
>
>
>
> Re: Admission date
>
> We have upgraded to last version, and it is working perfectly well now!
> Thanks!
>
>
>
> Re: Translation
>
> Okay for section names. What about dataelements themselves and their form
> name?
>
>
>
> Best
>
>
>
> Lise.
>
>
>
> *From:* Abyot Asalefew Gizaw [mailto:ab...@dhis2.org]
> *Sent:* 06 September 2016 09:54
> *To:* GROUT, Lise
> *Cc:* DHIS 2 Users list
> *Subject:* Re: [Dhis2-users] Enrollment date + translation
>
>
>
> Dear Lise,
>
>
>
> Re: Admission date
>
>
>
> Events in data entry coming with one day less from their actual date used
> to be a problem we have been facing for sometime. But this fixed now.
> Please make sure you using the latest version.
>
>
>
> Re: Translation
>
>
>
> Unfortunately, translation of section names is not supported at the
> moment. We will try to put it in the coming release.
>
>
> --
>
> Abyot A. Gizaw.
>
> Senior Engineer, DHIS2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Tue, Sep 6, 2016 at 7:18 AM, GROUT, Lise  wrote:
>
> Dear all,
>
>
>
> I have two questions regarding the enrolment date in the tracker.
>
>
>
> 1.  I have a program with enrolment date named “admission date”. My
> two program stages are set up with “delays from the enrolment”=0 (I even
> tried to put it as “1”). But, in both cases, when I enrol a new patient and
> I put a date on the registration page, by default the date on the two
> program stages is the day before (see screenshot). Is this normal? I would
> like to have by default the date of enrolment the user has just entered in
> the registration form…
>
> 2.  In this same program, I have started to translate section names
> and data element names in French. But it does not show up when I turn my
> settings to “French” (I have cleaned my cache and refreshed my screen). Is
> it supposed to be working for the tracker?
>
>
>
> Thanks in advance,
>
>
>
> Lise.
>
>
>
>
>
> Dr. Lise Grout
>
> *Epidemiologist*
>
>
>
> *World Health Organization*
>
> *Department of Neglected Tropical Diseases (HTM/NTD/IDM)*
> *Innovative and Intensified Disease Management Unit*
> *20, Avenue Appia; CH-1211 Geneva 27*
> *Tel. **+41 22 791 2341 <%2B41%2022%20791%202341>*
>
> *Mobile +41 79 290 68 61 <%2B41%2079%20290%2068%2061>*
>
> *Skype: tigrouveto*
>
> http://www.who.int/neglected_diseases
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Too Many Open Files?

2016-09-07 Thread Halvdan Hoem Grelland
Hi Jason,

‘Files’ in this context is really a file descriptor, which is any
connectable resource in the system, including both files and sockets.

I do agree that it’s unlikely that Tomcat hogs 6.5 million FDs, but I’m not
convinced that is the real limit either.

You could try:

ulimit -n

To get the max for open file descriptors in the system.

You can check max FDs for the Tomcat process by running:

cat /proc//limits

Which is usually around 1024.

Also this

might be useful.

Lastly, if the limits are sane (which they probably are) and you are able
to reproduce the issue you could try using this tool
 to pinpoint the problem.
(Disclaimer: I have no experience with it).
​

On Mon, Sep 5, 2016 at 11:22 PM, Jason Phillips  wrote:

> Hi all,
>
>
>
> We have a system that tanked last night, reporting:
>
>
>
> 14-Aug-2016 19:13:57.440 SEVERE [http-nio-8080-Acceptor-0]
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed
>
> java.io.IOException: Too many open files
>
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>
> at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:
> 422)
>
> at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:
> 250)
>
> at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(
> NioEndpoint.java:687)
>
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> Any ideas what the cause might be?  The environment is Ubuntu 14.04,
> Tomcat 8, Java 8.
>
> A cat /proc/sys/fs/file-max returns 6556412 – and that system was
> physically restarted within the last week.  I find it hard to believe that
> the web server would have 6,5 million files open in such a short period of
> time.
>
> War is 2.23
>
> OS is Ubuntu 14.04 LTS
>
> Tomcat 8
>
> Java 8
>
>
>
> Kind Regards,
>
> *Jason Phillips*
>
> [image: hisp]
> *Information Systems / Infrastructure*
>
> *Health Information Systems Program*
>
> eMail:   ja...@hisp.org
> Tel/Fax:+27 21 712 0170
> Cell: +27 72 973 7250
> Skype: jason.n.phillips
>
> This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org and a copy will
> be provided to you. By replying to this e-mail or opening any attachment
> you agree to be bound by the provisions of the disclaimer.
>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> .  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Halvdan Hoem Grelland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp