Re: [Dhis2-users] Problem with dataset assignment

2014-07-24 Thread Lars Helge Øverland
That is hard to say, try deleting the contents from datasetsource and try
again.

Lars



On Fri, Jul 25, 2014 at 2:41 AM, Knut Staring  wrote:

> Right, but would you have any idea what causes my problem with dataset
> assignment and how to fix it?
> On Jul 25, 2014 2:16 AM, "Lars Helge Øverland" 
> wrote:
>
>>
>>
>>
>> On Thu, Jul 24, 2014 at 7:53 PM, Knut Staring  wrote:
>>
>>> One method to do this is to export the datasets to XML, delete them, and
>>> then reimport.
>>>
>>> This worked well for 3 of my forms, but when trying to Remove the last
>>> form, I got the message below, which I found surprising, since I didn't
>>> think there were any associations between MapViews and Datasets?
>>>
>>> Object not deleted because it is associated by objects of type MapView
>>>
>>
>> You can render reporting rates for data sets in GIS, hence the MapView >
>> DataSet association.
>>
>> Lars
>>
>>
>>
>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Jul 24, 2014 at 7:07 PM, Knut Staring  wrote:
>>>
 In my 2.15 db my existing forms show up in data entry for all OUs even
 though I've tried to restrict them to just level 4 (they had previously
 been assigned to all OUs by mistake). The restriction/assignment works for
 new datasets, but not for the existing ones.

 How can make sure the exisiting forms only show up for the OUs in the
 datasetsource table?

 --
 Knut Staring
 Dept. of Informatics, University of Oslo
  +4791880522
 http://dhis2.org

>>>
>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> +4791880522
>>> http://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
>>>
>>>
>>
___
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] Dataset Section

2014-07-24 Thread Lars Helge Øverland
To make the custom more compact you can go to the custom form editor screen
and select "compact" under "style".

Lars



On Fri, Jul 25, 2014 at 6:59 AM, Kader Irchad Barry 
wrote:

> Hi Lars,
> This is a great feature indeed. Just in case it would be considered not
> obvious to implement, would it be possible to fill automatically a template
> for the custom forms with style configuration infos provided in a
> configuration form? This meets Knut's last suggestion and simplifies the
> design process for most users.
> Best regards,
> Kader
> Le 24 juil. 2014 22:50, "Lars Helge Øverland"  a
> écrit :
>
> Wrong link due to cache, this is it:
>> https://www.dhis2.org/doc/snapshot/en/user/html/ch32s38.html
>>
>
___
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] What happened to GIS labels in 2.16?

2014-07-24 Thread Lars Helge Øverland
See "options" inside the layer dialogs.

Lars



On Fri, Jul 25, 2014 at 7:29 AM, Knut Staring  wrote:

> Has the menu item been moved somewhere else (for Boundary layer, Thematic
> layer etc), or simply vanished?
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://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
>
>
___
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] What happened to GIS labels in 2.16?

2014-07-24 Thread Knut Staring
Has the menu item been moved somewhere else (for Boundary layer, Thematic
layer etc), or simply vanished?

-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://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


Re: [Dhis2-users] Dataset Section

2014-07-24 Thread Kader Irchad Barry
Hi Lars,
This is a great feature indeed. Just in case it would be considered not
obvious to implement, would it be possible to fill automatically a template
for the custom forms with style configuration infos provided in a
configuration form? This meets Knut's last suggestion and simplifies the
design process for most users.
Best regards,
Kader
Le 24 juil. 2014 22:50, "Lars Helge Øverland"  a
écrit :

> Wrong link due to cache, this is it:
> https://www.dhis2.org/doc/snapshot/en/user/html/ch32s38.html
>
___
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] Dataset Section

2014-07-24 Thread Knut Staring
Since spreadsheet-like grids are really common (occur pretty much whenever
we have a dimensional breakdown), we could also consider providing a CSS
template for this scenario, to avoid everyone reinventing that wheel.


On Thu, Jul 24, 2014 at 9:49 PM, Lars Helge Øverland 
wrote:

> Hi Kader,
>
> actually what you suggest is already implemented in 2.16. You can upload
> arbitrary CSS and Javascript through the Web API. So e.g. put an id
> "form-table" on your custom form table, and then something like that in the
> CSS:
>
> #form-table td {
>   width: 3em;
> }
>
> Docs here: https://www.dhis2.org/doc/snapshot/en/user/html/ch32s37.html
>
> 2.16 will be out shortly.
>
> Lars
>
>
>
>
>
>
> On Thu, Jul 24, 2014 at 7:40 PM, Kader Irchad Barry 
> wrote:
>
>> I agree with you.
>> In fact, I think it would be nice to complete the ability to create
>> custom forms, by giving the possibility to edit its css styles in a
>> separate file. This way, we could have a more complete control on the
>> look-and-feel of the forms.
>> Adding cellspadding style in the td tags (> ...>) didn't work for me, and I did not look more forward to solve this
>> problem, guessing that the problem came from the management of the style
>> sheets.
>> Do you think developers can have a look at it more closely? It could be
>> nice to give this ability in order to complete the creation of customized
>> forms.
>>
>>
>>
>>
>> 2014-07-24 20:19 GMT+03:00 Knut Staring :
>>
>> Thanks Kader,
>>>
>>> I was thinking there would be a more elegant method than to insert a
>>> style for each of the 24x20 cells, but your suggestion works well with a
>>> simple search/replace of "input" in Notepad++ (no need for an HTML editor).
>>>
>>> I would also love to get rid of the excessive padding to the left and
>>> right of the input field in the cell.
>>>
>>> And of course it would be nice to not have to manually insert the 240
>>> data bindings, so would very much welcome the realization of Lars' thoughts
>>> on making the auto-generated form available as a starting point for the
>>> customization.
>>>
>>>
>>>
>>> On Thu, Jul 24, 2014 at 7:01 PM, Kader Irchad Barry >> > wrote:
>>>
 Hi Knut,

 For customizing the forms, I move all the source code to a html wysiwyg
 editor, such as frontpage. This gives me the ability to identify the form
 elements and give them the layout I want.

 For the cell width, I add a _style_ attribute in the input tag. This is
 one example:

 >>>  id="TCTY9boIn41-j5CfAgw1uth-val" title="TCTY9boIn41 -xxx" value="xxx" />

 You can adapt the size with the width attribute (here 4em, but could be
 more or even less, depending on how you want to manage the inputs)

 Best regards
 Kader


 2014-07-24 19:47 GMT+03:00 Knut Staring :

 Hm...I thought custom forms would do the trick, but unfortunately the
> very act of binding each cell in the table to a
> dataelement/categoryoptioncombe makes in the online editor makes the cells
> far too wide (see the attached form).
>
> Would be greateful for tips on how to keep the cells the same width as
> they are in the right hand columns.
>
>
>
> On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring 
> wrote:
>
>> Related to this, we have a big form where most sections are very
>> simple and broken down only by gender, but one is also broken down by A 
>> LOT
>> of age groupings, so the auto-generated form becomes extremely wide and 
>> the
>> users have to scroll a lot horizontally. This also means it is very easy
>> for them to lose track of where they are, though of course they do have 
>> the
>> little box in the upper right corner which is meant to help with exactly
>> those cases.
>>
>> So, in general we are very happy with the autogenerated form (and it
>> is huge, with 10 sections), but would like to be able to customize the
>> layout for this particular section (actually, the IDEAL option would be 
>> to
>> be able to specify the width of the cells - as we could well have cells
>> only a third of the automatic width).
>>
>> I suppose the best solution for now is to separate out this
>> particular section into a separate form, but are we planning to support
>> custom forms for sections?
>>
>> Knut
>>
>>
>>
>>
>> On Wed, Jul 23, 2014 at 6:23 AM,  wrote:
>>
>>>  Hi all developers,
>>> *MY SUGGESTION:*
>>> In “section grey field management” of combo category options. Has
>>> only “Disable field” for disable entry value. But I think it is
>>> important, we should have “Hide field” to hide some combo category. 
>>> Because
>>> it effect on showing in Data Entry, if we has many combo category option
>>> cross with data element.
>>>
>>> thank you
>>> CHANNARA
>>>
>>> ___
>

Re: [Dhis2-users] Dataset Section

2014-07-24 Thread Knut Staring
Nice, but any idea how to get rid of other padding??
On Jul 25, 2014 2:20 AM, "Lars Helge Øverland"  wrote:

> Wrong link due to cache, this is it:
> https://www.dhis2.org/doc/snapshot/en/user/html/ch32s38.html
>
___
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] Problem with dataset assignment

2014-07-24 Thread Knut Staring
Right, but would you have any idea what causes my problem with dataset
assignment and how to fix it?
On Jul 25, 2014 2:16 AM, "Lars Helge Øverland"  wrote:

>
>
>
> On Thu, Jul 24, 2014 at 7:53 PM, Knut Staring  wrote:
>
>> One method to do this is to export the datasets to XML, delete them, and
>> then reimport.
>>
>> This worked well for 3 of my forms, but when trying to Remove the last
>> form, I got the message below, which I found surprising, since I didn't
>> think there were any associations between MapViews and Datasets?
>>
>> Object not deleted because it is associated by objects of type MapView
>>
>
> You can render reporting rates for data sets in GIS, hence the MapView >
> DataSet association.
>
> Lars
>
>
>
>
>>
>>
>>
>>
>>
>> On Thu, Jul 24, 2014 at 7:07 PM, Knut Staring  wrote:
>>
>>> In my 2.15 db my existing forms show up in data entry for all OUs even
>>> though I've tried to restrict them to just level 4 (they had previously
>>> been assigned to all OUs by mistake). The restriction/assignment works for
>>> new datasets, but not for the existing ones.
>>>
>>> How can make sure the exisiting forms only show up for the OUs in the
>>> datasetsource table?
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>>  +4791880522
>>> http://dhis2.org
>>>
>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://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
>>
>>
>
___
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] Discrepancy in Reporting Rates

2014-07-24 Thread Dapo Adejumo
Hi Lars,

Decided to reply this thread since this is related. Looks like dummy rows are 
inserted into the analytics completeness tables – this looks random though and 
does not follow a particular pattern. This gave a reporting unit a rate of 104% 
on the pivot table although it was 100% in the reporting rate, there was an 
extra row in the analytics but without the target uidlevel field. I don’t know 
if anybody has experienced this also? And maybe a possible bug but it’s hard to 
replicate.

 

………

Regards,

Dapo Adejumo

+2348033683677

Skype : dapojorge

 

From: Dhis2-users 
[mailto:dhis2-users-bounces+dapo_adejumo=yahoo@lists.launchpad.net] On 
Behalf Of Lars Helge Øverland
Sent: Monday, June 16, 2014 3:48 PM
To: Knut Staring
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Discrepancy in Reporting Rates

 

Hi,

 

yes they actually have different implementations, although the logic should be 
the same. On the demo database they are equal (except for some rounding 
errors). We are planning to replace the reporting rate summary by extending 
pivot table to support the same output.

 

cheers

 

Lars

 

 

 

 

On Mon, Jun 9, 2014 at 12:45 PM, Knut Staring mailto:knu...@gmail.com> > wrote:

It seems to me that the number of Actual Reports that are counted in the 
Reporting Rate Summary under Reports are somewhat different from Reporting 
rates in Data Visualizer. We are getting differences of one or two actual 
reports (the numerator) for the same report/district/period.

 

So are these numbers generated according to different methods??


 

-- 

Knut Staring

Dept. of Informatics, University of Oslo

+4791880522  

http://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

 

___
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] Data integrity check produces a server error

2014-07-24 Thread Lars Helge Øverland
Hi Lavi,

sorry for trouble, see comments below.


On Thu, Jul 24, 2014 at 11:34 AM, Lavi Shpigelman  wrote:

> Hi
>
> I am experimenting with a version 2.15 instance of dhis2.
> To populate this instance, I imported data from a production instance
> running version 2.13 using the web api to grab all the resources in the
> api/resources list (making sure that I get the right resource where the
> resource links point to "dimensions").
> I didn't simply import the metadata resource because I get a 403 error
> when I try to access it. For the same reason I had to skip the users
> resource (perhaps access to users resource blocks me from accessing the
> metaData resource?)
>

Okay. Could you check that your user has the ALL or Export meta-data
authority (through its user roles)? As you probably know this is a more
convenient way of getting all meta-data.


>
> I exported the resources as XML and used the viewClass=export parameter to
> get the right level of detail.
> Import was done with curl, into the metaData resource of my experimental
> system.
>
> After the initial import, some links were missing (such as the lists of
> indicators in dataSets). This was solved by re-importing some of the
> resources until no missing data was seen (verified by comparing api
> resources visually in browser with production system)
>

Okay that's strange.


>
> Once all the metadata seemed in order, I ran the data integrity check and
> got a server error.
> I thought perhaps data integrity checks require actual data values so I
> went ahead and imported all the datavalues using the dataValueSet web api
> resource.
>
> Data integrity still produced a server error so I created the resource
> tables.
>
> Trying to run data integrity check again, I got the error below.
> Any idea what the cause may be?
>

I have seen this error before. It is fixed in latest 2.15 build. The crash
below has two causes. First, he export previously contained empty
 elements even for data sets without custom forms. This lead
to the import creating "blank" forms on the receiving side. Second, the
code parsing custom forms had a weakness in that it optimistically tried to
parse the form content without checking for null. Both these issues have
been fixed in latest 2.15 now. You can grab it from dhis2.org/downloads in
40 min.

best regards,

Lars
___
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] Dataset Section

2014-07-24 Thread Lars Helge Øverland
Hi Kader,

actually what you suggest is already implemented in 2.16. You can upload
arbitrary CSS and Javascript through the Web API. So e.g. put an id
"form-table" on your custom form table, and then something like that in the
CSS:

#form-table td {
  width: 3em;
}

Docs here: https://www.dhis2.org/doc/snapshot/en/user/html/ch32s37.html

2.16 will be out shortly.

Lars






On Thu, Jul 24, 2014 at 7:40 PM, Kader Irchad Barry 
wrote:

> I agree with you.
> In fact, I think it would be nice to complete the ability to create custom
> forms, by giving the possibility to edit its css styles in a separate file.
> This way, we could have a more complete control on the look-and-feel of the
> forms.
> Adding cellspadding style in the td tags ( ...>) didn't work for me, and I did not look more forward to solve this
> problem, guessing that the problem came from the management of the style
> sheets.
> Do you think developers can have a look at it more closely? It could be
> nice to give this ability in order to complete the creation of customized
> forms.
>
>
>
>
> 2014-07-24 20:19 GMT+03:00 Knut Staring :
>
> Thanks Kader,
>>
>> I was thinking there would be a more elegant method than to insert a
>> style for each of the 24x20 cells, but your suggestion works well with a
>> simple search/replace of "input" in Notepad++ (no need for an HTML editor).
>>
>> I would also love to get rid of the excessive padding to the left and
>> right of the input field in the cell.
>>
>> And of course it would be nice to not have to manually insert the 240
>> data bindings, so would very much welcome the realization of Lars' thoughts
>> on making the auto-generated form available as a starting point for the
>> customization.
>>
>>
>>
>> On Thu, Jul 24, 2014 at 7:01 PM, Kader Irchad Barry 
>> wrote:
>>
>>> Hi Knut,
>>>
>>> For customizing the forms, I move all the source code to a html wysiwyg
>>> editor, such as frontpage. This gives me the ability to identify the form
>>> elements and give them the layout I want.
>>>
>>> For the cell width, I add a _style_ attribute in the input tag. This is
>>> one example:
>>>
>>> >>  id="TCTY9boIn41-j5CfAgw1uth-val" title="TCTY9boIn41 -xxx" value="xxx" />
>>>
>>> You can adapt the size with the width attribute (here 4em, but could be
>>> more or even less, depending on how you want to manage the inputs)
>>>
>>> Best regards
>>> Kader
>>>
>>>
>>> 2014-07-24 19:47 GMT+03:00 Knut Staring :
>>>
>>> Hm...I thought custom forms would do the trick, but unfortunately the
 very act of binding each cell in the table to a
 dataelement/categoryoptioncombe makes in the online editor makes the cells
 far too wide (see the attached form).

 Would be greateful for tips on how to keep the cells the same width as
 they are in the right hand columns.



 On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring  wrote:

> Related to this, we have a big form where most sections are very
> simple and broken down only by gender, but one is also broken down by A 
> LOT
> of age groupings, so the auto-generated form becomes extremely wide and 
> the
> users have to scroll a lot horizontally. This also means it is very easy
> for them to lose track of where they are, though of course they do have 
> the
> little box in the upper right corner which is meant to help with exactly
> those cases.
>
> So, in general we are very happy with the autogenerated form (and it
> is huge, with 10 sections), but would like to be able to customize the
> layout for this particular section (actually, the IDEAL option would be to
> be able to specify the width of the cells - as we could well have cells
> only a third of the automatic width).
>
> I suppose the best solution for now is to separate out this particular
> section into a separate form, but are we planning to support custom forms
> for sections?
>
> Knut
>
>
>
>
> On Wed, Jul 23, 2014 at 6:23 AM,  wrote:
>
>>  Hi all developers,
>> *MY SUGGESTION:*
>> In “section grey field management” of combo category options. Has
>> only “Disable field” for disable entry value. But I think it is
>> important, we should have “Hide field” to hide some combo category. 
>> Because
>> it effect on showing in Data Entry, if we has many combo category option
>> cross with data element.
>>
>> thank you
>> CHANNARA
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>



 --
 Knut Staring
 Dept. of Informatics, University o

Re: [Dhis2-users] Problem with dataset assignment

2014-07-24 Thread Lars Helge Øverland
On Thu, Jul 24, 2014 at 7:53 PM, Knut Staring  wrote:

> One method to do this is to export the datasets to XML, delete them, and
> then reimport.
>
> This worked well for 3 of my forms, but when trying to Remove the last
> form, I got the message below, which I found surprising, since I didn't
> think there were any associations between MapViews and Datasets?
>
> Object not deleted because it is associated by objects of type MapView
>

You can render reporting rates for data sets in GIS, hence the MapView >
DataSet association.

Lars




>
>
>
>
>
> On Thu, Jul 24, 2014 at 7:07 PM, Knut Staring  wrote:
>
>> In my 2.15 db my existing forms show up in data entry for all OUs even
>> though I've tried to restrict them to just level 4 (they had previously
>> been assigned to all OUs by mistake). The restriction/assignment works for
>> new datasets, but not for the existing ones.
>>
>> How can make sure the exisiting forms only show up for the OUs in the
>> datasetsource table?
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>>  +4791880522
>> http://dhis2.org
>>
>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://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
>
>
___
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] need solution for running out of disk space generating analytics tables

2014-07-24 Thread Lars Helge Øverland
Hi Lavi,

On Thu, Jul 24, 2014 at 9:22 AM, Lavi Shpigelman  wrote:

> Thanks !
>
> Running analytics generation for last 4 years was enough to avoid disk
> space limit.
>


that's great.


> The postgresql DB directory grew from 7.5GB to 44GB
>
> The datavalue table holds 53M records.
> The dimensions resource lists 13 dimensions.
>
>
Okay. That's a fair number of dimensions. I guess the only option is
getting a bigger disk;)

One could omit certain dimensions to become columns and indexes in
analytics tables (org unit group sets, data element group sets, categories)
by setting "data dimension" to no through the UI, but that would of course
defeat the purpose of setting up those dimensions in the first place.


regards,

Lars
___
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] Dataset Section

2014-07-24 Thread Lars Helge Øverland
Wrong link due to cache, this is it:
https://www.dhis2.org/doc/snapshot/en/user/html/ch32s38.html
___
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] Password expire/Change password in a specific period

2014-07-24 Thread Muhire Andrew
Dear All,

I am not very sure if it is a bug but we have set our system to Require user 
account password change IN 3 months, but we came accross an issue where, the 
system prompt you to change password but the save button becomes incative. 

To solve this issue, we used the backend to revert the settings. 

I think this is a bug?




"Better Information, better Decisions, better Health"

 MUHIRE Andrew

 Head  of  HMIS / Ministry of Health
""A mind is a terrible thing to waste""
    --
 ** Cell:(+250)788436150** 
*** Twitter :andrewmuhire***

 skype:muhire_andrew
link to HMIS system: https://hmis.moh.gov.rw/hmis___
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] Problem with dataset assignment

2014-07-24 Thread Knut Staring
One method to do this is to export the datasets to XML, delete them, and
then reimport.

This worked well for 3 of my forms, but when trying to Remove the last
form, I got the message below, which I found surprising, since I didn't
think there were any associations between MapViews and Datasets?

Object not deleted because it is associated by objects of type MapView




On Thu, Jul 24, 2014 at 7:07 PM, Knut Staring  wrote:

> In my 2.15 db my existing forms show up in data entry for all OUs even
> though I've tried to restrict them to just level 4 (they had previously
> been assigned to all OUs by mistake). The restriction/assignment works for
> new datasets, but not for the existing ones.
>
> How can make sure the exisiting forms only show up for the OUs in the
> datasetsource table?
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
>  +4791880522
> http://dhis2.org
>



-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://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


Re: [Dhis2-users] Dataset Section

2014-07-24 Thread Kader Irchad Barry
I agree with you.
In fact, I think it would be nice to complete the ability to create custom
forms, by giving the possibility to edit its css styles in a separate file.
This way, we could have a more complete control on the look-and-feel of the
forms.
Adding cellspadding style in the td tags ()
didn't work for me, and I did not look more forward to solve this problem,
guessing that the problem came from the management of the style sheets.
Do you think developers can have a look at it more closely? It could be
nice to give this ability in order to complete the creation of customized
forms.




2014-07-24 20:19 GMT+03:00 Knut Staring :

> Thanks Kader,
>
> I was thinking there would be a more elegant method than to insert a style
> for each of the 24x20 cells, but your suggestion works well with a simple
> search/replace of "input" in Notepad++ (no need for an HTML editor).
>
> I would also love to get rid of the excessive padding to the left and
> right of the input field in the cell.
>
> And of course it would be nice to not have to manually insert the 240 data
> bindings, so would very much welcome the realization of Lars' thoughts on
> making the auto-generated form available as a starting point for the
> customization.
>
>
>
> On Thu, Jul 24, 2014 at 7:01 PM, Kader Irchad Barry 
> wrote:
>
>> Hi Knut,
>>
>> For customizing the forms, I move all the source code to a html wysiwyg
>> editor, such as frontpage. This gives me the ability to identify the form
>> elements and give them the layout I want.
>>
>> For the cell width, I add a _style_ attribute in the input tag. This is
>> one example:
>>
>> >  id="TCTY9boIn41-j5CfAgw1uth-val" title="TCTY9boIn41 -xxx" value="xxx" />
>>
>> You can adapt the size with the width attribute (here 4em, but could be
>> more or even less, depending on how you want to manage the inputs)
>>
>> Best regards
>> Kader
>>
>>
>> 2014-07-24 19:47 GMT+03:00 Knut Staring :
>>
>> Hm...I thought custom forms would do the trick, but unfortunately the
>>> very act of binding each cell in the table to a
>>> dataelement/categoryoptioncombe makes in the online editor makes the cells
>>> far too wide (see the attached form).
>>>
>>> Would be greateful for tips on how to keep the cells the same width as
>>> they are in the right hand columns.
>>>
>>>
>>>
>>> On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring  wrote:
>>>
 Related to this, we have a big form where most sections are very simple
 and broken down only by gender, but one is also broken down by A LOT of age
 groupings, so the auto-generated form becomes extremely wide and the users
 have to scroll a lot horizontally. This also means it is very easy for them
 to lose track of where they are, though of course they do have the little
 box in the upper right corner which is meant to help with exactly those
 cases.

 So, in general we are very happy with the autogenerated form (and it is
 huge, with 10 sections), but would like to be able to customize the layout
 for this particular section (actually, the IDEAL option would be to be able
 to specify the width of the cells - as we could well have cells only a
 third of the automatic width).

 I suppose the best solution for now is to separate out this particular
 section into a separate form, but are we planning to support custom forms
 for sections?

 Knut




 On Wed, Jul 23, 2014 at 6:23 AM,  wrote:

>  Hi all developers,
> *MY SUGGESTION:*
> In “section grey field management” of combo category options. Has
> only “Disable field” for disable entry value. But I think it is
> important, we should have “Hide field” to hide some combo category. 
> Because
> it effect on showing in Data Entry, if we has many combo category option
> cross with data element.
>
> thank you
> CHANNARA
>
> ___
> 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
>
>


 --
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org

>>>
>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> +4791880522
>>> http://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
>>>
>>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~d

Re: [Dhis2-users] Dataset Section

2014-07-24 Thread Knut Staring
Thanks Kader,

I was thinking there would be a more elegant method than to insert a style
for each of the 24x20 cells, but your suggestion works well with a simple
search/replace of "input" in Notepad++ (no need for an HTML editor).

I would also love to get rid of the excessive padding to the left and right
of the input field in the cell.

And of course it would be nice to not have to manually insert the 240 data
bindings, so would very much welcome the realization of Lars' thoughts on
making the auto-generated form available as a starting point for the
customization.



On Thu, Jul 24, 2014 at 7:01 PM, Kader Irchad Barry 
wrote:

> Hi Knut,
>
> For customizing the forms, I move all the source code to a html wysiwyg
> editor, such as frontpage. This gives me the ability to identify the form
> elements and give them the layout I want.
>
> For the cell width, I add a _style_ attribute in the input tag. This is
> one example:
>
>   id="TCTY9boIn41-j5CfAgw1uth-val" title="TCTY9boIn41 -xxx" value="xxx" />
>
> You can adapt the size with the width attribute (here 4em, but could be
> more or even less, depending on how you want to manage the inputs)
>
> Best regards
> Kader
>
>
> 2014-07-24 19:47 GMT+03:00 Knut Staring :
>
> Hm...I thought custom forms would do the trick, but unfortunately the very
>> act of binding each cell in the table to a dataelement/categoryoptioncombe
>> makes in the online editor makes the cells far too wide (see the attached
>> form).
>>
>> Would be greateful for tips on how to keep the cells the same width as
>> they are in the right hand columns.
>>
>>
>>
>> On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring  wrote:
>>
>>> Related to this, we have a big form where most sections are very simple
>>> and broken down only by gender, but one is also broken down by A LOT of age
>>> groupings, so the auto-generated form becomes extremely wide and the users
>>> have to scroll a lot horizontally. This also means it is very easy for them
>>> to lose track of where they are, though of course they do have the little
>>> box in the upper right corner which is meant to help with exactly those
>>> cases.
>>>
>>> So, in general we are very happy with the autogenerated form (and it is
>>> huge, with 10 sections), but would like to be able to customize the layout
>>> for this particular section (actually, the IDEAL option would be to be able
>>> to specify the width of the cells - as we could well have cells only a
>>> third of the automatic width).
>>>
>>> I suppose the best solution for now is to separate out this particular
>>> section into a separate form, but are we planning to support custom forms
>>> for sections?
>>>
>>> Knut
>>>
>>>
>>>
>>>
>>> On Wed, Jul 23, 2014 at 6:23 AM,  wrote:
>>>
  Hi all developers,
 *MY SUGGESTION:*
 In “section grey field management” of combo category options. Has
 only “Disable field” for disable entry value. But I think it is
 important, we should have “Hide field” to hide some combo category. Because
 it effect on showing in Data Entry, if we has many combo category option
 cross with data element.

 thank you
 CHANNARA

 ___
 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


>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> +4791880522
>>> http://dhis2.org
>>>
>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://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
>>
>>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org


Excessive padding.pdf
Description: Adobe PDF document
___
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] Problem with dataset assignment

2014-07-24 Thread Knut Staring
In my 2.15 db my existing forms show up in data entry for all OUs even
though I've tried to restrict them to just level 4 (they had previously
been assigned to all OUs by mistake). The restriction/assignment works for
new datasets, but not for the existing ones.

How can make sure the exisiting forms only show up for the OUs in the
datasetsource table?

-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://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


Re: [Dhis2-users] Dataset Section

2014-07-24 Thread Kader Irchad Barry
Hi Knut,

For customizing the forms, I move all the source code to a html wysiwyg
editor, such as frontpage. This gives me the ability to identify the form
elements and give them the layout I want.

For the cell width, I add a _style_ attribute in the input tag. This is one
example:



You can adapt the size with the width attribute (here 4em, but could be
more or even less, depending on how you want to manage the inputs)

Best regards
Kader


2014-07-24 19:47 GMT+03:00 Knut Staring :

> Hm...I thought custom forms would do the trick, but unfortunately the very
> act of binding each cell in the table to a dataelement/categoryoptioncombe
> makes in the online editor makes the cells far too wide (see the attached
> form).
>
> Would be greateful for tips on how to keep the cells the same width as
> they are in the right hand columns.
>
>
>
> On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring  wrote:
>
>> Related to this, we have a big form where most sections are very simple
>> and broken down only by gender, but one is also broken down by A LOT of age
>> groupings, so the auto-generated form becomes extremely wide and the users
>> have to scroll a lot horizontally. This also means it is very easy for them
>> to lose track of where they are, though of course they do have the little
>> box in the upper right corner which is meant to help with exactly those
>> cases.
>>
>> So, in general we are very happy with the autogenerated form (and it is
>> huge, with 10 sections), but would like to be able to customize the layout
>> for this particular section (actually, the IDEAL option would be to be able
>> to specify the width of the cells - as we could well have cells only a
>> third of the automatic width).
>>
>> I suppose the best solution for now is to separate out this particular
>> section into a separate form, but are we planning to support custom forms
>> for sections?
>>
>> Knut
>>
>>
>>
>>
>> On Wed, Jul 23, 2014 at 6:23 AM,  wrote:
>>
>>>  Hi all developers,
>>> *MY SUGGESTION:*
>>> In “section grey field management” of combo category options. Has
>>> only “Disable field” for disable entry value. But I think it is
>>> important, we should have “Hide field” to hide some combo category. Because
>>> it effect on showing in Data Entry, if we has many combo category option
>>> cross with data element.
>>>
>>> thank you
>>> CHANNARA
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> +4791880522
>> http://dhis2.org
>>
>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://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
>
>
___
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] Dataset Section

2014-07-24 Thread Knut Staring
Hm...I thought custom forms would do the trick, but unfortunately the very
act of binding each cell in the table to a dataelement/categoryoptioncombe
makes in the online editor makes the cells far too wide (see the attached
form).

Would be greateful for tips on how to keep the cells the same width as they
are in the right hand columns.



On Wed, Jul 23, 2014 at 6:42 AM, Knut Staring  wrote:

> Related to this, we have a big form where most sections are very simple
> and broken down only by gender, but one is also broken down by A LOT of age
> groupings, so the auto-generated form becomes extremely wide and the users
> have to scroll a lot horizontally. This also means it is very easy for them
> to lose track of where they are, though of course they do have the little
> box in the upper right corner which is meant to help with exactly those
> cases.
>
> So, in general we are very happy with the autogenerated form (and it is
> huge, with 10 sections), but would like to be able to customize the layout
> for this particular section (actually, the IDEAL option would be to be able
> to specify the width of the cells - as we could well have cells only a
> third of the automatic width).
>
> I suppose the best solution for now is to separate out this particular
> section into a separate form, but are we planning to support custom forms
> for sections?
>
> Knut
>
>
>
>
> On Wed, Jul 23, 2014 at 6:23 AM,  wrote:
>
>>  Hi all developers,
>> *MY SUGGESTION:*
>> In “section grey field management” of combo category options. Has
>> only “Disable field” for disable entry value. But I think it is
>> important, we should have “Hide field” to hide some combo category. Because
>> it effect on showing in Data Entry, if we has many combo category option
>> cross with data element.
>>
>> thank you
>> CHANNARA
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>



-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org


Form with too wide cells.pdf
Description: Adobe PDF document
___
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] Emails not being sent

2014-07-24 Thread Bob Jolliffe
Sorry Ryan, just looking again at the code, I am not right about
FROM_ADDRESS being hard coded.  This is in fact a system setting - in email
settings dialog.


On 24 July 2014 14:04, WILLIAMS, Ryan O'Neil  wrote:

>  Hi Bob,
>
>
>
> Thanks for providing the FROM_ADDRESS.
>
>
>
> I will ask IT check the traffic information between the servers.
>
> I sent an email through the server from my computer via telnet using the
> FROM_ADDRESS:nore...@dhis2.org and it went through fine.
>
>
>
> ryan
>
>
>
> *From:* Bob Jolliffe [mailto:bobjolli...@gmail.com]
> *Sent:* jeudi 24 juillet 2014 12:44
> *To:* WILLIAMS, Ryan O'Neil
> *Cc:* dhis2-users@lists.launchpad.net
> *Subject:* Re: [Dhis2-users] Emails not being sent
>
>
>
> Hi Ryan
>
>
>
> From what I understand of the source code, if the message sending failed
> there should have been a warning entry in your log saying "Could not send
> email: ... ".  If you are not seeing that then it is strange and
> not consistent with the documentation of the apache commons email library
> which is being used.
>
>
>
> Can you perchance verify with ethereal or tcpdump that there is no traffic
> between dhis2 and the email server?
>
>
>
> The FROM_ADDRESS is currently hardwired to "nore...@dhis2.org".  Hope its
> not being clobbered by a spam filter on your email server.
>
>
>
> Bob
>
>
>
> On 24 July 2014 10:49, WILLIAMS, Ryan O'Neil  wrote:
>
> Dear all,
>
>
>
> We are running  version 2.15 instance of dhis2 and we are having trouble
> getting the email functionality to work.
>
>
>
> The email server address and port have been provided using the email
> settings UI.
>
>
>
> We have tried to use the recover password  and send message functionality
> to no avail. Each time the functions are executed, the following entries
> can be found in the catalina.out log file respectively:
>
>
>
> * ... Recovery message sent for user: xxx
>
>
>
> OR
>
>
>
> * ...  Sending email to user: User{surname='xxx', ...firstName= ...
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
> * ...Email sent using host: emailserver with TLS: false
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
>
>
> No entries can be found on the email server concerning these emails. No
> errors concerning emails can be found in the catalina log file.
>
> Other applications on the same server using the same settings can
> successfully send emails.
>
>
>
> Any ideas about what the problem could be or how we can debug this in more
> detail?
>
> Also, I don't see a way to configure the FROM_ADDRESS, is this possible?
> What is the default sender?
>
>
>
> cheers
>
> *Ryan*
>
>
>
>
> ___
> 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] Emails not being sent

2014-07-24 Thread WILLIAMS, Ryan O'Neil
Hi Bob,

Thanks for providing the FROM_ADDRESS.

I will ask IT check the traffic information between the servers.
I sent an email through the server from my computer via telnet using the 
FROM_ADDRESS:nore...@dhis2.org and it went through 
fine.

ryan

From: Bob Jolliffe [mailto:bobjolli...@gmail.com]
Sent: jeudi 24 juillet 2014 12:44
To: WILLIAMS, Ryan O'Neil
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Emails not being sent

Hi Ryan

>From what I understand of the source code, if the message sending failed there 
>should have been a warning entry in your log saying "Could not send email: ... 
>".  If you are not seeing that then it is strange and not consistent 
>with the documentation of the apache commons email library which is being used.

Can you perchance verify with ethereal or tcpdump that there is no traffic 
between dhis2 and the email server?

The FROM_ADDRESS is currently hardwired to 
"nore...@dhis2.org".  Hope its not being clobbered by 
a spam filter on your email server.

Bob

On 24 July 2014 10:49, WILLIAMS, Ryan O'Neil 
mailto:williamsr...@who.int>> wrote:
Dear all,

We are running  version 2.15 instance of dhis2 and we are having trouble 
getting the email functionality to work.

The email server address and port have been provided using the email settings 
UI.

We have tried to use the recover password  and send message functionality to no 
avail. Each time the functions are executed, the following entries can be found 
in the catalina.out log file respectively:

* ... Recovery message sent for user: xxx

OR

* ...  Sending email to user: User{surname='xxx', ...firstName= ... 
(EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
* ...Email sent using host: emailserver with TLS: false 
(EmailMessageSender.java [SimpleAsyncTaskExecutor-664])

No entries can be found on the email server concerning these emails. No errors 
concerning emails can be found in the catalina log file.
Other applications on the same server using the same settings can successfully 
send emails.

Any ideas about what the problem could be or how we can debug this in more 
detail?
Also, I don't see a way to configure the FROM_ADDRESS, is this possible? What 
is the default sender?

cheers
Ryan


___
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] Emails not being sent

2014-07-24 Thread Bob Jolliffe
Hi Ryan

>From what I understand of the source code, if the message sending failed
there should have been a warning entry in your log saying "Could not send
email: ... ".  If you are not seeing that then it is strange and
not consistent with the documentation of the apache commons email library
which is being used.

Can you perchance verify with ethereal or tcpdump that there is no traffic
between dhis2 and the email server?

The FROM_ADDRESS is currently hardwired to "nore...@dhis2.org".  Hope its
not being clobbered by a spam filter on your email server.

Bob


On 24 July 2014 10:49, WILLIAMS, Ryan O'Neil  wrote:

>  Dear all,
>
>
>
> We are running  version 2.15 instance of dhis2 and we are having trouble
> getting the email functionality to work.
>
>
>
> The email server address and port have been provided using the email
> settings UI.
>
>
>
> We have tried to use the recover password  and send message functionality
> to no avail. Each time the functions are executed, the following entries
> can be found in the catalina.out log file respectively:
>
>
>
> * ... Recovery message sent for user: xxx
>
>
>
> OR
>
>
>
> * ...  Sending email to user: User{surname='xxx', ...firstName= ...
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
> * ...Email sent using host: emailserver with TLS: false
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
>
>
> No entries can be found on the email server concerning these emails. No
> errors concerning emails can be found in the catalina log file.
>
> Other applications on the same server using the same settings can
> successfully send emails.
>
>
>
> Any ideas about what the problem could be or how we can debug this in more
> detail?
>
> Also, I don't see a way to configure the FROM_ADDRESS, is this possible?
> What is the default sender?
>
>
>
> cheers
>
> *Ryan*
>
>
>
> ___
> 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] Emails not being sent

2014-07-24 Thread Halvdan Grelland
Hi,

Does your SMTP server reject TLS requests, by chance? I see you've set TLS
off, however I fixed an issue in our development branch (2.16) recently
where the user setting was not being honored and TLS was forced on.

Regards,
Halvdan Hoem Grelland
DHIS2 Developer


2014-07-24 11:49 GMT+02:00 WILLIAMS, Ryan O'Neil :

>  Dear all,
>
>
>
> We are running  version 2.15 instance of dhis2 and we are having trouble
> getting the email functionality to work.
>
>
>
> The email server address and port have been provided using the email
> settings UI.
>
>
>
> We have tried to use the recover password  and send message functionality
> to no avail. Each time the functions are executed, the following entries
> can be found in the catalina.out log file respectively:
>
>
>
> * … Recovery message sent for user: xxx
>
>
>
> OR
>
>
>
> * …  Sending email to user: User{surname='xxx', …firstName= …
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
> * …Email sent using host: emailserver with TLS: false
> (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
>
>
>
> No entries can be found on the email server concerning these emails. No
> errors concerning emails can be found in the catalina log file.
>
> Other applications on the same server using the same settings can
> successfully send emails.
>
>
>
> Any ideas about what the problem could be or how we can debug this in more
> detail?
>
> Also, I don’t see a way to configure the FROM_ADDRESS, is this possible?
> What is the default sender?
>
>
>
> cheers
>
> *Ryan*
>
>
>
> ___
> 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


[Dhis2-users] Emails not being sent

2014-07-24 Thread WILLIAMS, Ryan O'Neil
Dear all,

We are running  version 2.15 instance of dhis2 and we are having trouble 
getting the email functionality to work.

The email server address and port have been provided using the email settings 
UI.

We have tried to use the recover password  and send message functionality to no 
avail. Each time the functions are executed, the following entries can be found 
in the catalina.out log file respectively:

* ... Recovery message sent for user: xxx

OR

* ...  Sending email to user: User{surname='xxx', ...firstName= ... 
(EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
* ...Email sent using host: emailserver with TLS: false 
(EmailMessageSender.java [SimpleAsyncTaskExecutor-664])

No entries can be found on the email server concerning these emails. No errors 
concerning emails can be found in the catalina log file.
Other applications on the same server using the same settings can successfully 
send emails.

Any ideas about what the problem could be or how we can debug this in more 
detail?
Also, I don't see a way to configure the FROM_ADDRESS, is this possible? What 
is the default sender?

cheers
Ryan

___
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 integrity check produces a server error

2014-07-24 Thread Lavi Shpigelman
Hi

I am experimenting with a version 2.15 instance of dhis2.
To populate this instance, I imported data from a production instance
running version 2.13 using the web api to grab all the resources in the
api/resources list (making sure that I get the right resource where the
resource links point to "dimensions").
I didn't simply import the metadata resource because I get a 403 error when
I try to access it. For the same reason I had to skip the users resource
(perhaps access to users resource blocks me from accessing the metaData
resource?)

I exported the resources as XML and used the viewClass=export parameter to
get the right level of detail.
Import was done with curl, into the metaData resource of my experimental
system.

After the initial import, some links were missing (such as the lists of
indicators in dataSets). This was solved by re-importing some of the
resources until no missing data was seen (verified by comparing api
resources visually in browser with production system)

Once all the metadata seemed in order, I ran the data integrity check and
got a server error.
I thought perhaps data integrity checks require actual data values so I
went ahead and imported all the datavalues using the dataValueSet web api
resource.

Data integrity still produced a server error so I created the resource
tables.

Trying to run data integrity check again, I got the error below.
Any idea what the cause may be?

Thanks,
Lavi

PS before experimenting with a 2.15 version, I tried the same with a 2.13
version (same as production system) and faced the same issues.
PPS Thanks a million for the great super-fast and accurate replies I've
been getting so far !


 ERROR 2014-07-24 10:55:17,112 Error while executing action
(ExceptionInterceptor.java [http-bio-8060-exec-33])
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
at java.util.regex.Matcher.reset(Matcher.java:308)
at java.util.regex.Matcher.(Matcher.java:228)
at java.util.regex.Pattern.matcher(Pattern.java:1088)
at
org.hisp.dhis.dataentryform.DefaultDataEntryFormService.getDataElementsInDataEntryForm(DefaultDataEntryFormService.java:368)
at sun.reflect.GeneratedMethodAccessor910.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy63.getDataElementsInDataEntryForm(Unknown
Source)
at
org.hisp.dhis.dataintegrity.DefaultDataIntegrityService.getDataElementsInDataSetNotInForm(DefaultDataIntegrityService.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy89.getDataElementsInDataSetNotInForm(Unknown
Source)
at
org.hisp.dhis.dataadmin.action.datain

Re: [Dhis2-users] Compulsory data elements

2014-07-24 Thread Nayeem Al Mifthah
Yeah, Knut is clarify about our common interest.

I have a suggestion that, whenever a data element with numeric type made
compulsory, it should save zero value. At least a suggestion box can appear.

*Nayeem Al Mifthah*
HMIS C
onsultant
Management Information System
Directorate General of Health Services (DGHS), Bangladesh
Supported by: UNICEF
-Bangladesh

Email: *n.mift...@gmail.com *
*   | nay...@mis.dghs.gov.bd *
Cell:*+8801914030574*


On Thu, Jul 24, 2014 at 12:01 PM, Knut Staring  wrote:

> I think there are multiple issues - Lars has spelled out 2, but I think
> Nayeem and I are pointing to a third one, namley:
>
> How does the poor data entry clerk know which fields are "compulsory" when
> there is no asterisk or other indication of it?
>
> Knut
>
>
> On Thu, Jul 24, 2014 at 5:33 AM, Nayeem Al Mifthah 
> wrote:
>
>> Hi
>> Even anyone can't complete a form which have a compulsory data element
>> with numeric value zero, whether zero value saving is off.
>>
>> The asterisk can be used in all dataset and forms. Is there any value to
>> put it as a option per dataset?
>>
>> *Nayeem Al Mifthah*
>> HMIS C
>> onsultant
>> Management Information System
>> Directorate General of Health Services (DGHS), Bangladesh
>> Supported by: UNICEF
>> -Bangladesh
>>
>> Email: *n.mift...@gmail.com *
>> *   | nay...@mis.dghs.gov.bd *
>> Cell:*+8801914030574*
>>
>>
>> On Wed, Jul 23, 2014 at 3:22 PM, Lars Helge Øverland > > wrote:
>>
>>> Hi,
>>>
>>> I think if we are to create a blueprint it should be for an option per
>>> data set, like "Make compulsory data elements required fields in form".
>>>
>>> Currently the main purpose of the compulsory data elements is to define
>>> which elements should be used for completeness / reporting rates. Form
>>> validation is a slightly different concern.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Jul 23, 2014 at 10:57 AM, Knut Staring  wrote:
>>>
 Thanks Nayeem,
 It was more a question for the developers, as we try not to clutter the
 BP list too much ;-)

 Knut


 On Wed, Jul 23, 2014 at 10:55 AM, Nayeem Al Mifthah <
 n.mift...@gmail.com> wrote:

> Yeah... why not?
>
> *Nayeem Al Mifthah*
> HMIS C
> onsultant
> Management Information System
> Directorate General of Health Services (DGHS), Bangladesh
> Supported by: UNICEF
> -Bangladesh
>
> Email: *n.mift...@gmail.com *
> *   | nay...@mis.dghs.gov.bd *
> Cell:*+8801914030574*
>
>
> On Wed, Jul 23, 2014 at 2:52 PM, Knut Staring 
> wrote:
>
>> Yes, I have been missing this for a long time. Should I make a
>> blueprint for it?
>>
>> Thanks,
>> Knut
>>
>>
>> On Wed, Jul 23, 2014 at 10:50 AM, Nayeem Al Mifthah <
>> n.mift...@gmail.com> wrote:
>>
>>> An asterisk is a good option for indication. In Bangladesh we give
>>> asterisks on custom forms. Default form should have the indication.
>>>
>>> *Nayeem Al Mifthah*
>>> HMIS C
>>> onsultant
>>> Management Information System
>>> Directorate General of Health Services (DGHS), Bangladesh
>>> Supported by: UNICEF
>>> -Bangladesh
>>>
>>> Email: *n.mift...@gmail.com *
>>> *   | nay...@mis.dghs.gov.bd *
>>> Cell:*+8801914030574*
>>>
>>>
>>> On Thu, Jul 17, 2014 at 5:23 PM, Knut Staring 
>>> wrote:
>>>
 There should be an option to enforce it like you say, but with the
 current implementation the form doesn't even indicate (eg with an 
 asterisk)
 which data should always be entered, even when 0.
 It only shows up in validation.
 On Jul 17, 2014 4:07 PM, "Nayeem Al Mifthah" 
 wrote:

> As per my understanding. Compulsory data element is used for
> enforcing to fill up of the element for fulfilling the dataset. 
> Without
> fill the compulsory data element(s) no one can complete the dataset.
>
> For numeric value there is a caution to use Compulsory data
> element about zero '0' value saving.
> For other data types it is OK for use.
>
> *Nayeem Al Mifthah*
> HMIS C
> onsultant
> Management Information System
> Directorate General of Health Services (DGHS), Bangladesh
> Supported by: UNICEF
> -Bangladesh
>
> Email: *n.mift...@gmail.com *
> *   | nay...@mis.dghs.gov.bd *
> Cell:*+8801914030574*
>
>
> On Thu, Jul 17, 2014 at 3:26 PM, Adebusoye Anifalaje <
> bus...@hisp.org> wrote:
>
>> It’s not enforced in the sense that you have validation violation
>> if the data value is not completed. It is used as an alternative
>> calculation for reporting rates.
>>
>> This is my understanding. There might be other views.
>>
>> Cheers
>>
>> 

Re: [Dhis2-users] DHIS2 - Tracker data aggregation

2014-07-24 Thread Robin Martens
Hi Sumudu,

Great solution, and I was actually looking in the same direction as well. It's 
good to hear that it's indeed possible. Thanks a lot!

Regards,

Robin

From: Dhis2-users 
[mailto:dhis2-users-bounces+martens=sher...@lists.launchpad.net] On Behalf Of 
sumudu weerasinghe
Sent: 24 July 2014 02:43
To: Lars Helge Øverland
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] DHIS2 - Tracker data aggregation

Hi Robin,
I had the same issue as you said . I did it following way , but it may not be 
the correct way

  *   build one aggregate query and save
  *   go to database and find caseaggregationcondition table
  *   identify how it identify DE
  *   you can populate all query builders just in a excel sheet ( i will attach 
my sample excel sheet it contain 364 A.Q. Builders)
  *   upload into database table caseaggregationcondition, as CSV file  , It 
works for me well
some time this may help you.

@Lars answer  i have some problem

  1.  is it able to use attributes in event reports ?
  2.   is it possible to save this values into a  form in aggregate side 
(eg.Monthly return form) ?
Best Regards
Sumudu

On Wed, Jul 23, 2014 at 11:58 AM, Lars Helge Øverland 
mailto:larshe...@gmail.com>> wrote:
Hi Robin,

in fact the organisation unit dimension should not be part of the aggregation 
queries - you can set one aggregation query to run for any number of org units. 
You could create the gender and disease type as categories + category options. 
However you are right that to populate all variations of this data element you 
would need 2 x 5 aggregation queries.

That said, in version 2.15 and 2.16 you have better support for doing 
aggregated analysis without using aggregation queries. The "event reports" app 
lets you create pivot tables and specify queries directly for aggregated data, 
and you can similarly create charts through the "event visualizer" app, which 
can then be included directly in the dashboard together with the routine data 
charts. Have a look at those apps on the /dev 
instance - the queries can be specified on the left side panel e.g. under the 
"data" tab.

These apps are backed by the event analytics web api resource 
(docs). Our 
medium-term plan is to phase out the current aggregation queries function by 
instead linking routine elements with such event analytics queries.

Now conceptually you would still have to define a query per such data element + 
category option combination - it isn't really trivial to convert events into 
aggregated data elements "auto-magically".

best regards,

Lars








___
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] need solution for running out of disk space generating analytics tables

2014-07-24 Thread Lavi Shpigelman
Thanks !

Running analytics generation for last 4 years was enough to avoid disk
space limit.
The postgresql DB directory grew from 7.5GB to 44GB

The datavalue table holds 53M records.
The dimensions resource lists 13 dimensions.

best regards,
Lavi
___
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] FRED api - 2.15 SNAPSHOT release, build revision 14131

2014-07-24 Thread Pascal Brandt
Hi Pierre,

You can take a look at the FRED API on the demo server here:
https://apps.dhis2.org/demo/ohie/fred/v1/facilities.

The docs 
seem to be out of date. I've made the fix, but I'm not part of the
documenters team on lauchpad, so I've attached the patch here.

Cheers,
Pascal


On 11 March 2014 12:07, Morten Olav Hansen  wrote:

> Hi,
>
> In the 2.15 release, we have moved the endpoint for fred to /ohie/fred
> (from /api-fred).
>
> --
> Morten
>
>
> On Tue, Mar 11, 2014 at 4:57 PM, Pierre Dane  wrote:
>
>> Hi,
>>
>> I am unable to access the fred-api at 
>> http://[myserver:8080]/api-fred/v1/facilities.json
>> on this release. All other functionality seems present.
>> Is there an updated URL available or is the fred api not included with
>> this version?
>>
>> Thanks
>>
>> Pierre
>> ___
>> 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
>
>


-- 

*Pascal BrandtSenio*

*r Software Developer, Jembi Health Systems | SOUTH AFRICA Mobile: +27 84
827 9342 <%2B27%2084%20827%209342> | Office: +27 21 701 0939
<%2B27%2021%20701%200939> | Skype: psbrandt E-mail: pas...@jembi.org
*


dhis2_user_man_web_api.xml.patch
Description: Binary data
___
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