Re: [Dhis2-users] [Dhis2-devs] Fwd: Issue on Data approval

2015-04-29 Thread Jim Grace
Please try the latest 2.18 now. I was able to reproduce and fix this on my
system. (Also fixed in the latest trunk.)


On Wed, Apr 29, 2015 at 2:38 PM, Lars Helge Øverland 
wrote:

> Hi Salimoe and Rodolfo,
>
> we have confirmed that approval locking does not work for org units below
> the org unit where data was approved - working on a fix.
>
> regards,
>
> Lars
>
>
>
> On Tue, Apr 21, 2015 at 4:50 PM, Rodolfo Melia 
> wrote:
>
>> Hi - reopening an old conversation.
>>
>> I'm using 2.18, April 18 release: I'm having the same issue: all dataset
>> are open, although they are marked as approved.
>> Is this a bug? Is there a new setting?
>>
>> What's is the best way to test this in the Sierra Leone demo? What
>> datasets have approval?
>>
>> *Rodolfo Meliá*
>> *Principal  |  *rme...@knowming.com
>> Skype: rod.melia  |  +44 777 576 4090  |  +1 708 872 7636
>> www.knowming.com
>>
>> On Wed, Feb 4, 2015 at 3:03 PM, Salimone Domingos Nhancume <
>> snhanc...@gmail.com> wrote:
>>
>>>
>>> Dear, i am also having problem in Approving Data, I followed all the
>>>  steps described hire
>>> ,but only
>>> the users defined as super user have the option approve, and depending to
>>> the org unit evel they does not change approved data.
>>>
>>> For other users, they can still modify approved data
>>>
>>> Please can someone help me.
>>>
>>> Salimone
>>>
>>>
>>> -- Forwarded message --
>>> From: nsanzumuhire venuste 
>>> Date: 2015-01-30 8:39 GMT+02:00
>>> Subject: Re: [Dhis2-users] Issue on Data approval
>>> To: DHIS 2 developers , "
>>> dhis2-users@lists.launchpad.net" 
>>>
>>>
>>> Any Help on the issue of approval data in version 2.17?All data set have
>>> been unloked after upgrading from 2.16 to 2.17.I have tried to lock again
>>> but it did not work.users can modify what ever they want.
>>>
>>> Any Help will be appreciated.
>>>
>>> regards.
>>>
>>>   --
>>>  *De :* nsanzumuhire venuste 
>>> *À :* DHIS 2 developers ; "
>>> dhis2-users@lists.launchpad.net" 
>>> *Envoyé le :* Jeudi 29 janvier 2015 15h53
>>> *Objet :* Issue on Data approval
>>>
>>> Dear all,
>>>
>>> I'm having issue where i had approved data set on previews periods,and
>>> now when users go to data entry,all data sets are unloked where now users
>>> can modify the data what ever they want.
>>>
>>> When i'm checking in report>data approval,i can see all data sets
>>> are approved,I even went through the data set and approval data is Yes,But
>>> when users try to access the data entry they find the data set are not
>>> locked.
>>>
>>> I'm using version 2.17 but on version 2.16 approval was ok.
>>>
>>> Can some one help on this issue?
>>>
>>> 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
>>>
>>>
>>>
>>> ___
>>> 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-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> 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] inport meta data to option set

2015-04-29 Thread Lars Helge Øverland
Hi there,

the CSV option set import format changed in 2.18. The option code is now
required. Have a look at the docs:

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s09.html


best regards,

Lars



On Wed, Apr 29, 2015 at 7:22 PM, Robin Martens  wrote:

>  Hi all,
>
>
>
> Did anyone encounter the same issue as the one described below? I.e.
> import conflicts when importing option sets (via CSV)?
>
>
>
> Thanks in advance,
>
>
>
> Robin
>
>
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+martens=
> sher...@lists.launchpad.net] *On Behalf Of *Robin Martens
> *Sent:* 28 April 2015 16:35
> *To:* Simon Muyambo; 'Knut Staring'
>
> *Cc:* dhis2-users@lists.launchpad.net
> *Subject:* Re: [Dhis2-users] inport meta data to option set
>
>
>
> Hi Simon and Knut,
>
>
>
> I’m currently facing the same issue. Did you manage to solve it at the
> time and if so, how?
>
>
>
> Kind regards,
>
>
>
> Robin
>
>
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+martens=
> sher...@lists.launchpad.net] *On Behalf Of *Simon Muyambo
> *Sent:* 21 December 2014 02:17
> *To:* 'Knut Staring'; 'Simon Muyambo'
> *Cc:* dhis2-users@lists.launchpad.net
> *Subject:* Re: [Dhis2-users] inport meta data to option set
>
>
>
> Dear Knut
>
>
>
> I have created option set and exported it in JSON. I then deleted the
> optionset and tried to import it. Below are the same errors I am getting
> with csv file. Never seems to be able to import members of the option set
>
>
>
> Current user:
>
> admin
>
> Version:
>
> 2.17
>
> Build revision:
>
> 17561
>
> Build date:
>
> 2014-11-21 12:21
>
>
>
>
>
>
> {"created":"2014-12-20T23:44:06.855+","optionSets":[{"id":"etvtSKUhoSZ","name":"prog","created":"2014-12-
>
>
>
>
> 20T23:42:20.447+","lastUpdated":"2014-12-20T23:43:21.551+","options":
>
>
>
>
> [{"id":"v0DNS4VKf40","code":"g1","name":"George","created":"2014-12-20T23:43:07.726+","lastUpdated":"2014-12-
>
>
>
>
> 20T23:43:07.726+"},{"id":"Ghi9DN5UYfu","code":"t1","name":"Tom","created":"2014-12-20T23:43:21.550+","lastUpdated":"2014-
>
>
>
> 12-20T23:43:21.550+"}],"version":1}]}
>
>
>
> Import summary
>
> Import count
>
> 1 Imported
>
> 0 Updated
>
> 0 Ignored
>
> Type Summary
>
> Type  Imported Updated  Ignored
>
> OptionSet   1  0  0
>
> Conflicts
>
> Type  Element   Description
>
> OptionSet   prog   Unknown reference to
> IdentifiableObject{id=0, uid='v0DNS4VKf40', code='g1', name='George',
> created=Sun Dec 21 01:43:07 CAT 2014, lastUpdated=Sun Dec 21 01:43:07 CAT
> 2014} (Option) on object IdentifiableObject{id=3, uid='etvtSKUhoSZ',
> code='null', name='prog', created=Sun Dec 21 01:42:20 CAT 2014,
> lastUpdated=Sun Dec 21 02:09:50 CAT 2014} (OptionSet).
>
> OptionSet   prog   Unknown reference to
> IdentifiableObject{id=0, uid='Ghi9DN5UYfu', code='t1', name='Tom',
> created=Sun Dec 21 01:43:21 CAT 2014, lastUpdated=Sun Dec 21 01:43:21 CAT
> 2014} (Option) on object IdentifiableObject{id=3, uid='etvtSKUhoSZ',
> code='null', name='prog', created=Sun Dec 21 01:42:20 CAT 2014,
> lastUpdated=Sun Dec 21 02:09:50 CAT 2014} (OptionSet).
>
>
>
> *Regards*
>
> *Simon Muyambo*
>
>
>
>
>
> *From:* Knut Staring [mailto:knu...@gmail.com]
> *Sent:* 19 December 2014 21:49
> *To:* Simon Muyambo
> *Cc:* Jason Pickering; dhis2-users@lists.launchpad.net
> *Subject:* Re: [Dhis2-users] inport meta data to option set
>
>
>
> I think you need to have quotes aroudn any text strings, including the
> codes
>
>
>
> On Fri, Dec 19, 2014 at 8:40 PM, Simon Muyambo 
> wrote:
>
> Dear Knut and Jason
>
>
>
> Thanks for the advice. I have run some tests with unique codes but not
> sure what the error means
>
>
>
> name,uid,code,option
>
> "Colorsm",,1b,"Blue1"
>
> "Colorsm",,2g,"Green1"
>
> "Gendersm",,3f,"Female1"
>
> "Gendersm",,4m,"Male1"
>
> *Import summary*
>
> *Import count*
>
> 2 Imported
> 2 Updated
> 0 Ignored
>
> *Type Summary*
>
> Type
>
> Imported
>
> Updated
>
> Ignored
>
> OptionSet
>
> 2
>
> 2
>
> 0
>
> *Conflicts*
>
> *Type*
>
> *Element*
>
> *Description*
>
> OptionSet
>
> Gendersm
>
> Unknown reference to IdentifiableObject{id=0, uid='Ja0hb0d1XGK',
> code='Female1', name='Female1', created=Fri Dec 19 21:34:19 CAT 2014,
> lastUpdated=Fri Dec 19 21:34:19 CAT 2014} (Option) on object
> IdentifiableObject{id=0, uid='qvy5Iof8De3', code='3f', name='Gendersm',
> created=null, lastUpdated=null} (OptionSet).
>
> OptionSet
>
> Colorsm
>
> Unknown reference to IdentifiableObject{id=0, uid='jPyLUhETxWH',
> code='Green1', name='Green1', created=Fri Dec 19 21:34:19 CAT 2014,
> lastUpdated=Fri Dec 19 21:34:19 CAT 2014} (Option) on object
> IdentifiableObject{id=0, uid='JGfUphTsLuk', code='2g', name='Colorsm',
> created=null, lastUpdated=null} (OptionSet).
>
> OptionSet
>
> Gendersm
>
> Unknown reference to IdentifiableObject{id=0, uid='mJsHyly4UoH',
> code='Male1', name='Male1', created=Fri Dec 19 21:34:19 CAT 2014,
> lastUpdated=Fri Dec 19

Re: [Dhis2-users] Fwd: Issue on Data approval

2015-04-29 Thread Lars Helge Øverland
Hi Salimoe and Rodolfo,

we have confirmed that approval locking does not work for org units below
the org unit where data was approved - working on a fix.

regards,

Lars



On Tue, Apr 21, 2015 at 4:50 PM, Rodolfo Melia  wrote:

> Hi - reopening an old conversation.
>
> I'm using 2.18, April 18 release: I'm having the same issue: all dataset
> are open, although they are marked as approved.
> Is this a bug? Is there a new setting?
>
> What's is the best way to test this in the Sierra Leone demo? What
> datasets have approval?
>
> *Rodolfo Meliá*
> *Principal  |  *rme...@knowming.com
> Skype: rod.melia  |  +44 777 576 4090  |  +1 708 872 7636
> www.knowming.com
>
> On Wed, Feb 4, 2015 at 3:03 PM, Salimone Domingos Nhancume <
> snhanc...@gmail.com> wrote:
>
>>
>> Dear, i am also having problem in Approving Data, I followed all the
>>  steps described hire
>> ,but only the
>> users defined as super user have the option approve, and depending to the
>> org unit evel they does not change approved data.
>>
>> For other users, they can still modify approved data
>>
>> Please can someone help me.
>>
>> Salimone
>>
>>
>> -- Forwarded message --
>> From: nsanzumuhire venuste 
>> Date: 2015-01-30 8:39 GMT+02:00
>> Subject: Re: [Dhis2-users] Issue on Data approval
>> To: DHIS 2 developers , "
>> dhis2-users@lists.launchpad.net" 
>>
>>
>> Any Help on the issue of approval data in version 2.17?All data set have
>> been unloked after upgrading from 2.16 to 2.17.I have tried to lock again
>> but it did not work.users can modify what ever they want.
>>
>> Any Help will be appreciated.
>>
>> regards.
>>
>>   --
>>  *De :* nsanzumuhire venuste 
>> *À :* DHIS 2 developers ; "
>> dhis2-users@lists.launchpad.net" 
>> *Envoyé le :* Jeudi 29 janvier 2015 15h53
>> *Objet :* Issue on Data approval
>>
>> Dear all,
>>
>> I'm having issue where i had approved data set on previews periods,and
>> now when users go to data entry,all data sets are unloked where now users
>> can modify the data what ever they want.
>>
>> When i'm checking in report>data approval,i can see all data sets are
>> approved,I even went through the data set and approval data is Yes,But when
>> users try to access the data entry they find the data set are not locked.
>>
>> I'm using version 2.17 but on version 2.16 approval was ok.
>>
>> Can some one help on this issue?
>>
>> 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
>>
>>
>>
>> ___
>> 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] inport meta data to option set

2015-04-29 Thread Robin Martens
Hi all,

Did anyone encounter the same issue as the one described below? I.e. import 
conflicts when importing option sets (via CSV)?

Thanks in advance,

Robin

From: Dhis2-users 
[mailto:dhis2-users-bounces+martens=sher...@lists.launchpad.net] On Behalf Of 
Robin Martens
Sent: 28 April 2015 16:35
To: Simon Muyambo; 'Knut Staring'
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] inport meta data to option set

Hi Simon and Knut,

I’m currently facing the same issue. Did you manage to solve it at the time and 
if so, how?

Kind regards,

Robin

From: Dhis2-users 
[mailto:dhis2-users-bounces+martens=sher...@lists.launchpad.net] On Behalf Of 
Simon Muyambo
Sent: 21 December 2014 02:17
To: 'Knut Staring'; 'Simon Muyambo'
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] inport meta data to option set

Dear Knut

I have created option set and exported it in JSON. I then deleted the optionset 
and tried to import it. Below are the same errors I am getting with csv file. 
Never seems to be able to import members of the option set

Current user:
admin
Version:
2.17
Build revision:
17561
Build date:
2014-11-21 12:21


{"created":"2014-12-20T23:44:06.855+","optionSets":[{"id":"etvtSKUhoSZ","name":"prog","created":"2014-12-

20T23:42:20.447+","lastUpdated":"2014-12-20T23:43:21.551+","options":

[{"id":"v0DNS4VKf40","code":"g1","name":"George","created":"2014-12-20T23:43:07.726+","lastUpdated":"2014-12-

20T23:43:07.726+"},{"id":"Ghi9DN5UYfu","code":"t1","name":"Tom","created":"2014-12-20T23:43:21.550+","lastUpdated":"2014-

12-20T23:43:21.550+"}],"version":1}]}

Import summary
Import count
1 Imported
0 Updated
0 Ignored
Type Summary
Type  Imported Updated  Ignored
OptionSet   1  0  0
Conflicts
Type  Element   Description
OptionSet   prog   Unknown reference to IdentifiableObject{id=0, 
uid='v0DNS4VKf40', code='g1', name='George', created=Sun Dec 21 01:43:07 CAT 
2014, lastUpdated=Sun Dec 21 01:43:07 CAT 2014} (Option) on object 
IdentifiableObject{id=3, uid='etvtSKUhoSZ', code='null', name='prog', 
created=Sun Dec 21 01:42:20 CAT 2014, lastUpdated=Sun Dec 21 02:09:50 CAT 2014} 
(OptionSet).
OptionSet   prog   Unknown reference to IdentifiableObject{id=0, 
uid='Ghi9DN5UYfu', code='t1', name='Tom', created=Sun Dec 21 01:43:21 CAT 2014, 
lastUpdated=Sun Dec 21 01:43:21 CAT 2014} (Option) on object 
IdentifiableObject{id=3, uid='etvtSKUhoSZ', code='null', name='prog', 
created=Sun Dec 21 01:42:20 CAT 2014, lastUpdated=Sun Dec 21 02:09:50 CAT 2014} 
(OptionSet).

Regards
Simon Muyambo


From: Knut Staring [mailto:knu...@gmail.com]
Sent: 19 December 2014 21:49
To: Simon Muyambo
Cc: Jason Pickering; dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] inport meta data to option set

I think you need to have quotes aroudn any text strings, including the codes

On Fri, Dec 19, 2014 at 8:40 PM, Simon Muyambo 
mailto:smmuya...@gmail.com>> wrote:
Dear Knut and Jason

Thanks for the advice. I have run some tests with unique codes but not sure 
what the error means

name,uid,code,option
"Colorsm",,1b,"Blue1"
"Colorsm",,2g,"Green1"
"Gendersm",,3f,"Female1"
"Gendersm",,4m,"Male1"
Import summary
Import count
2 Imported
2 Updated
0 Ignored
Type Summary
Type

Imported

Updated

Ignored

OptionSet

2

2

0

Conflicts
Type

Element

Description

OptionSet

Gendersm

Unknown reference to IdentifiableObject{id=0, uid='Ja0hb0d1XGK', 
code='Female1', name='Female1', created=Fri Dec 19 21:34:19 CAT 2014, 
lastUpdated=Fri Dec 19 21:34:19 CAT 2014} (Option) on object 
IdentifiableObject{id=0, uid='qvy5Iof8De3', code='3f', name='Gendersm', 
created=null, lastUpdated=null} (OptionSet).

OptionSet

Colorsm

Unknown reference to IdentifiableObject{id=0, uid='jPyLUhETxWH', code='Green1', 
name='Green1', created=Fri Dec 19 21:34:19 CAT 2014, lastUpdated=Fri Dec 19 
21:34:19 CAT 2014} (Option) on object IdentifiableObject{id=0, 
uid='JGfUphTsLuk', code='2g', name='Colorsm', created=null, lastUpdated=null} 
(OptionSet).

OptionSet

Gendersm

Unknown reference to IdentifiableObject{id=0, uid='mJsHyly4UoH', code='Male1', 
name='Male1', created=Fri Dec 19 21:34:19 CAT 2014, lastUpdated=Fri Dec 19 
21:34:19 CAT 2014} (Option) on object IdentifiableObject{id=0, 
uid='IxdnSBPyo9y', code='4m', name='Gendersm', created=null, lastUpdated=null} 
(OptionSet).

OptionSet

Colorsm

Unknown reference to IdentifiableObject{id=0, uid='pSmhTjz0yIS', code='Blue1', 
name='Blue1', created=Fri Dec 19 21:34:19 CAT 2014, lastUpdated=Fri Dec 19 
21:34:19 CAT 2014} (Option) on object IdentifiableObject{id=0, 
uid='MVHPvOLojgd', code='1b', name='Colorsm', created=null, lastUpdated=null} 
(OptionSet).



Regards
Simon Muyambo


From: Knut Staring [mailto:knu...@gmail.com]
Sent: 19 December 2014 07:03
To: Simon Muyambo
Cc: Jason Pickering; 
dhis2-users@lists.launchpad.net

Re: [Dhis2-users] Screen error

2015-04-29 Thread Abyot Gizaw
Hi Marco,

Tracker capture works a bit differently... below are few steps that you
need to follow

1. use custom form

2. access the custom form
var dataEntryForm = document.querySelector('d2-custom-form');
var $scope = angular.element(dataEntryForm).scope();

3. now within the custom form, you can access all your input fields value
through using the data elements uid (UID)

var val = $scope.currentEvent['UID']

... you can the proceed with calculating your indicators...


---
Thank you,
Abyot.

On Wed, Apr 29, 2015 at 4:53 PM, Marko David Garcia 
wrote:

> Hello Tran .
>
> We are basically trying to make some simple calculations in a multiple
> events with registration form .
>
> Initially we tried to make these calculations with indicators, but when
> try to include these on a stage with sections , these can't be added
> because only data elements appear .
>
> So we decided to perform calculations using javascript and forms with
> design, but the dataelements with date type appear in yellow and don't save
> the information .
>
> To workaround this issue we used the tracker capture, the date
> dataelements works fine, but the tracker doesn't perform the javascript
> calculations.
>
> Could you suggest any option to solve this problem.
>
> Thank you.
>
> Cordialmente,
>
>
> *Mag. (c). Marko David Garcia M.*
> *Ingeniería Telemática*
> *Universidad del Cauca*
> *Skype: marko_david*
>
> 2015-04-27 0:49 GMT-05:00 Tran Chau (HISP Vietnam) <
> tran.hispviet...@gmail.com>:
>
> Hi Marko,
>>
>> The internet is too slow to connect to websites of foreign country
>> because the internet cable is broken again.
>> I tried to test this bug, but it works fine in my local site.
>> I cannot connect the demo to do an example for testing because of
>> internet.
>>
>> Could you create an example about this bug on demo server ?
>> We will see what is wrong as soon as I can connect the DHIS demo server.
>>
>> .
>> Best regards,
>> Tran Chau
>>
>> On Thu, Apr 23, 2015 at 8:55 PM, Abyot Gizaw  wrote:
>>
>>> Hi Tran,
>>>
>>> Marko has already explained this in the list, he can also give you more
>>> details.
>>>
>>> so the bug he is getting is on Individual records module, on 2.18 and
>>> this happens when he is entering value for date type data elements... the
>>> error log he attached refers to commons.js
>>>
>>>
>>> ---
>>> Thank you,
>>> Abyot.
>>>
>>> On Thu, Apr 23, 2015 at 3:51 PM, Tran Chau (HISP Vietnam) <
>>> tran.hispviet...@gmail.com> wrote:
>>>
 Hi Abyot,

 Can you give me more information about which function, when this bug
 occurs and which version for testing this bug ?

 .
 Best regards,
 Tran Chau

 On Thu, Apr 23, 2015 at 8:49 PM, Abyot Gizaw  wrote:

> Hi Tran,
>
> Do you have time to look into this?
>
> ---
> Thank you,
> Abyot.
>
> On Thu, Apr 23, 2015 at 3:40 PM, Marko David Garcia <
> markodavi...@gmail.com> wrote:
>
>> Hi Abyot, this is the console error screen.
>>
>>
>> Best regards,
>>
>>
>> *Mag. (c). Marko David Garcia M.*
>> *Ingeniería Telemática*
>> *Universidad del Cauca*
>> *Skype: marko_david*
>>
>
>

>>>
>>
>
___
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] [Dhis2-devs] Generating Min/ Max

2015-04-29 Thread Lars Helge Øverland
Hi Rodolfo,

I think including attribute option combo to min-max data element makes
sense. The problem of course is when you want a min-max to apply to all
attribute option combos - not a specific one - which I can only guess is
the main use-case. So it has to be optional. It can of course be done but
requires some work and will be slightly complex.

Feel free to write a blueprint about with with some more detail.

best regards,

Lars


On Mon, Apr 20, 2015 at 5:50 PM, Rodolfo Melia  wrote:

> Is the attribute likely to be added to the mix?
> - the logic that IPPF uses for setting the maximum value is different for
> Attribute 1 and Attribute 2 of a data value.
>
> R
>
> *Rodolfo Meliá*
> *Principal  |  *rme...@knowming.com
> Skype: rod.melia  |  +44 777 576 4090  |  +1 708 872 7636
> www.knowming.com
>
> On Mon, Apr 20, 2015 at 4:48 PM, Lars Helge Øverland 
> wrote:
>
>> The minmax dataelement values are set by:
>>
>> - data element
>> - org unit
>> - category option combo
>>
>> -
>>
>>
>>
>> Lars
>>
>>
>> On Mon, Apr 20, 2015 at 5:27 PM, Rodolfo Melia 
>> wrote:
>>
>>> Thanks everyone. It is good to understand how the max/min is calculated
>>> in DHIS (the documentation should be updated with the content of this
>>> email). We definitely need other ways to set min/ max values - my case has
>>> a specific logic, which needs to be implemented via SQL, until there is a
>>> way to push these values via the API.
>>>
>>> Can I confirm that the Min/ Max are set by
>>> - Data Element
>>> - Org Unit
>>> - Cat Combo
>>> - Attribute Combo?
>>>
>>>
>>> R
>>>
>>> *Rodolfo Meliá*
>>> *Principal  |  *rme...@knowming.com
>>> Skype: rod.melia  |  +44 777 576 4090  |  +1 708 872 7636
>>> www.knowming.com
>>>
>>> On Mon, Apr 20, 2015 at 4:02 PM, Calle Hedberg 
>>> wrote:
>>>
 Hi

 "Calle is right here - we do average, then calculate std dev and set
 the upper and lower bounds for each value. We use data from ALL
 available time periods to calculate this (period org unit, data element,
 option combo)."

 Here and there and back again :-)

 So I wasn't off the reservation, then. We have used the normal
 distribution like this in DHIS 1.x for around 17 years, and it fits the
 majority of data elements. In general, this distribution model handles
 random outbreaks and disruptions reasonably well, since the impact of such
 outliers are dampened. Data elements representing conditions or services
 with strong seasonal variation do not fit so well, and some very particular
 issues like "Male condoms distributed" tend to vary so much that the
 min/max is generally disregarded (outliers here also matter a lot less -
 when you distribute 1-2 billion condoms annually, an error of a few
 thousand does not matter). In DHIS 1.4 there is also a function for setting
 absolute min-max values - most typically used for data elements where e.g.
 only 0 and 1 are valid values. For such cases, statistically calculating
 min-max is obviously irrelevant.

 I don't like the use of ALL available time periods, though, since a
 large number of health facilities will see significant changes in their
 patient mix and patient numbers over let us say a 10 year period. We have
 found that 12-18 months provide a good compromise.

 So there are still some room for improvement.

 Regards
 Calle

 On 20 April 2015 at 16:15, Jason Pickering >>> > wrote:

> Good. I probably should have known that already, thus why I had to do
> some statistical analysis outside of DHIS2 to actually calculate 
> reasonable
> min max. A quick check of the validity of a normal distribution, can be
> with the skewness and kurtosis , which provide a idea of how "tilted"  a
> given distribution is.
>
> https://www.dhis2.org/doc/snapshot/en/developer/html/apas06.html
>
> Anyway, support for import via the API would be good.
>
> Regards,
> Jason
>
> On Mon, Apr 20, 2015, 16:06 Lars Helge Øverland 
> wrote:
>
>> Hi there,
>>
>> Calle is right here - we do average, then calculate std dev and set
>> the upper and lower bounds for each value.
>>
>> We use data from ALL available time periods to calculate this (period
>> org unit, data element, option combo)
>>
>> Mind you we should not really debate whether to use standard
>> deviations or not, rather if we should support additional _distributions_
>> to better handle different kinds of data. We currently use the normal
>> distribution .
>>
>> Rodolfo - supporting min-max in the Web API is a good idea to allow
>> for third-party tools - feel free to write a blueprint.
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>
>>
>>


 --

 ***
>>>

Re: [Dhis2-users] custom form

2015-04-29 Thread papa alioune Sokhna
Hi Prosper,
Thanks.

2015-04-28 19:36 GMT+00:00 Prosper BT :

> Hi Papa,
>
> If you are also using custom forms, you dont have to insert the data
> elements in the no entry fields.
>
> Regards
>
> Prosper
>
> On Mon, Apr 27, 2015 at 8:12 PM, papa alioune Sokhna  > wrote:
>
>> Thanks i will see it
>>
>> 2015-04-27 17:09 GMT+00:00 Knut Staring :
>>
>>> Right. For that, you can set the fields to be disabled:
>>> http://www.w3schools.com/tags/att_input_disabled.asp
>>>
>>> On Mon, Apr 27, 2015 at 11:15 PM, papa alioune Sokhna <
>>> sokhnap...@gmail.com> wrote:
>>>
 disabled, can not enter data

 2015-04-27 16:41 GMT+00:00 Knut Staring :

> Intoxicate?
> On Apr 27, 2015 10:55 PM, "papa alioune Sokhna" 
> wrote:
>
>> Hello,
>> how I can intoxicate fields in a custom form if possible.
>> Bests regards.
>>
>> --
>> Papa Alioune SOKHNA
>> *Informaticien *
>> Spécialité: développement d'application web, mobile et logiciels surs
>> Tel: +221 77 442 16 22
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>


 --
 Papa Alioune SOKHNA
 *Informaticien *
 Spécialité: développement d'application web, mobile et logiciels surs
 Tel: +221 77 442 16 22

>>>
>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> Norway: +4791880522
>>> Skype: knutstar
>>> http://dhis2.org
>>>
>>
>>
>>
>> --
>> Papa Alioune SOKHNA
>> *Informaticien *
>> Spécialité: développement d'application web, mobile et logiciels surs
>> Tel: +221 77 442 16 22
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Prosper Behumbiize, MPH
> Phone:+256 414 320076
> Cell: +256 772 139037
>  +256 752 751776
>
>



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


Re: [Dhis2-users] Can't run dhis2 from .war file

2015-04-29 Thread Muhammad Bilal Siddqui
Thanks. Well i solved my problems by above suggestion about increase heap
memory allocation. after that i am not face any difficulties. Moreover
after upgrade Java 8  that problem never occur yet

On Fri, Apr 24, 2015 at 8:16 PM, Paulo Grácio  wrote:

> Hi Muhammad,
>
> not sure if you are still having the same problem. If you are just trying
> to run dhis2 on your local machine for demo/testing you can have a look at
> this
>
> https://github.com/pgracio/dhis2-docker
>
> Best regards,
> /Paulo
>
> On 20 April 2015 at 11:39, Morten Olav Hansen  wrote:
>
>> PermGen was completely removed in 1.8.
>>
>> --
>> Morten
>>
>> On Mon, Apr 20, 2015 at 4:29 PM, Knut Staring  wrote:
>>
>>> Thanks - I was asking because i was told the PermGen should no longer be
>>> an issue with Java 8.
>>>
>>> Knut
>>>
>>> On Mon, Apr 20, 2015 at 12:52 PM, Muhammad Bilal Siddqui <
>>> m.bilalsidd...@micromerger.com> wrote:
>>>
 Mac 10.9.5 (mavericks)
 Java 7 (1.7)

 On Sat, Apr 18, 2015 at 5:57 AM, Knut Staring  wrote:

> Hi Muhammad,
>
> Can I ask which version of Java you're using?
>
> Knut
>
> On Fri, Apr 17, 2015 at 7:31 PM, Muhammad Bilal Siddqui <
> m.bilalsidd...@micromerger.com> wrote:
>
>> export JAVA_OPTS= "-Xmx512m -Xmx1024m -XX:PermSize=128m
>> -XX:MaxPermSize=256m"
>> in above line first 2 param are same it showuld be Xms then Xmx. But
>> i wrote on both Xmx that is why i got invalid heap error.
>>
>> now i allocated 2GB for now it is working and importing data
>> successfully.
>> But i still need some suggestion about that memory params that how
>> they will assign so they cannot overflow and yes i think that info will
>> provide some experience mac user. I am waiting for that.
>>
>> Thanks @Knut Staring and @Jason Pickering and @all for that much
>> guidelines and help
>>
>> On Fri, Apr 17, 2015 at 5:15 PM, Knut Staring 
>> wrote:
>>
>>> Then we need input from some more experienced Mac users.
>>>
>>> You could perhaps try to start DHIS2 Live from the terminal like
>>> this:
>>>
>>> java -jar -XX:MaxPermSize=256m dhis2-live.jar
>>>
>>> If that works, change the dhis-live/conf/hibernate.properties file
>>> to point to your postgres db.
>>>
>>> On Fri, Apr 17, 2015 at 7:05 PM, Muhammad Bilal Siddqui <
>>> m.bilalsidd...@micromerger.com> wrote:
>>>
 I wrote that before
 export JAVA_OPTS= "-Xmx512m -Xmx1024m -XX:PermSize=128m
 -XX:MaxPermSize=256m"
 and when i try to start server not started and invalid heap error
 generated

 On Fri, Apr 17, 2015 at 5:04 PM, Knut Staring 
 wrote:

> You left out the crucial part. It should be like this
>
> export JAVA_OPTS= "-Xmx512m -Xmx1024m -XX:PermSize=128m
> -XX:MaxPermSize=256m"
>
>
> On Fri, Apr 17, 2015 at 7:01 PM, Knut Staring 
> wrote:
>
>>
>>
>> On Fri, Apr 17, 2015 at 6:58 PM, Muhammad Bilal Siddqui <
>> m.bilalsidd...@micromerger.com> wrote:
>>
>>> echo $JAVA_OPTS
>>> this shows blank line
>>> also after restart shows blank line.
>>>
>>> i created file setenv.sh under bin folder in tomcat
>>> file contents are follow
>>> #!/bin/bash
>>>
>>> export CATALINA_OPTS="-Xms512m -Xmx2048m"
>>> export JAVA_OPTS="-Xms512m -Xmx2048m"
>>> export MAVEN_OPTS="-Xms512m -Xmx2048m"
>>>
>>> On Fri, Apr 17, 2015 at 4:35 PM, Knut Staring 
>>> wrote:
>>>
 If you open a new terminal window, what do you get if you type
 this:

 echo $JAVA_OPTS

 Also perhaps try restarting your laptop.

 On Fri, Apr 17, 2015 at 6:32 PM, Muhammad Bilal Siddqui <
 m.bilalsidd...@micromerger.com> wrote:

> i followed every suggestion but at one point sooner or later i
> have same issue
> Exception: java.lang.OutOfMemoryError thrown from the
> UncaughtExceptionHandler in thread "http-8080-1"
>
> Is there same problem in MAC. because in my windows machine
> not that many problems.
> MAC Specification
> Processor 1.3 GHz Intel Core i5
> Memory 4GB
> OSX 10.9.5
>
> On Fri, Apr 17, 2015 at 1:18 PM, Muhammad Bilal Siddqui <
> m.bilalsidd...@micromerger.com> wrote:
>
>> ok i am doing that now
>> Thanks all
>>
>> On Fri, Apr 17, 2015 at 11:17 AM, Knut Staring <
>> knu...@gmail.com> wrote:
>>
>>> Will leave it to the more experienced Mac users on the list
>>> to say 

Re: [Dhis2-users] Dynamic drop-down during data entry

2015-04-29 Thread Jason Pickering
Hi Muhammad,
I suggest you check out the use of dataset categories as described here

https://www.dhis2.org/doc/snapshot/en/user/html/ch06.html#d5e1280

Regards,
Jason


On Wed, Apr 29, 2015 at 9:00 AM, Muhammad Bilal Siddqui <
m.bilalsidd...@micromerger.com> wrote:

> I created Dataset with a 'monthly' frequency. Now during data entry i want
> a new dropdown when i select month and in taht dropdown i want different
> campaign values. Like sometimes in a month i need only one campaign
> sometimes more than 1. I attached snapshots of what i got and what more i
> want.
>
>
> --
> --
> Regards
> *Muhammad Bilal Siddiqui*
>
> *MicroMerger IT Solutions*
> Suite # 731, Street # 20
> Sector I-8/2 Islamabad.
> Pakistan 44000
>
> *C* : +923325694928  *P* : +92514863592
> *E* : m.bilalsidd...@micromerger.com   *W* :
> www.micromerger.com
>
>
> *This e-mail and any files transmitted with it are confidential to the
> intended recipient and may be privileged. If you are not the intended
> recipient, please immediately notify the sender. Whilst we have used
> Anti-Virus software to alert us to the presence of computer viruses, we
> cannot guarantee that this email and any files transmitted with it are free
> from them.*N : Think before print do you really need this on paper. thanks
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Dynamic drop-down during data entry

2015-04-29 Thread Muhammad Bilal Siddqui
I created Dataset with a 'monthly' frequency. Now during data entry i want
a new dropdown when i select month and in taht dropdown i want different
campaign values. Like sometimes in a month i need only one campaign
sometimes more than 1. I attached snapshots of what i got and what more i
want.


-- 
-- 
Regards
*Muhammad Bilal Siddiqui*

*MicroMerger IT Solutions*
Suite # 731, Street # 20
Sector I-8/2 Islamabad.
Pakistan 44000

*C* : +923325694928  *P* : +92514863592
*E* : m.bilalsidd...@micromerger.com   *W* :
www.micromerger.com


*This e-mail and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you are not the intended
recipient, please immediately notify the sender. Whilst we have used
Anti-Virus software to alert us to the presence of computer viruses, we
cannot guarantee that this email and any files transmitted with it are free
from them.*N : Think before print do you really need this on paper. 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