Re: [Dhis2-devs] [Dhis2-users] DHIS2 2.30 IMPORT/EXPORT ISSUE

2018-11-05 Thread Viet Nguyen
Hi Peter,

Please help to report the issues you got on jira.dhis2.org so we could
check and fix the import/export app.

Thanks,

On Tue, Nov 6, 2018 at 10:24 AM Peter D Lubambi  wrote:

> I think the import function in dhis2 2.30 is not working completely, can
> someone confirm otherwise? I, as well tried importing in 2.30 several times
> it never worked, had to downgrade to 2.29 then I was able to import.
>
> Peter
>
> On Mon, Nov 5, 2018, 3:09 PM Kristiyan Panayotov <
> kristi...@logicaloutcomes.net wrote:
>
>> Hi all – thank for your support and suggestions.
>>
>>
>>
>> We managed to find a solution to our problem. We downgraded to version
>> 2.29 and found a good balance between using the new Android app together
>> with import functionalities.
>> For importing Org Units through a .csv file in version 2.30 – I will say
>> that it was not possible after all. We tried many different combinations
>> for creating the .csv files and none was successful. Together with the fact
>> that some of the Org Unit csv files have been successfully imported in
>> versions 2.25 – 2.29
>>
>>
>>
>> Regards and thank you all
>>
>> Kris
>>
>>
>>
>> *From:* Viet Nguyen [mailto:v...@dhis2.org]
>> *Sent:* Friday, November 2, 2018 10:24 AM
>> *To:* dco...@baosystems.com
>> *Cc:* Georgi Chakarov ; dhis2-users <
>> dhis2-us...@lists.launchpad.net>; Kristiyan Panayotov <
>> kristi...@logicaloutcomes.net>; dhis2-devs <
>> dhis2-devs@lists.launchpad.net>
>> *Subject:* Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE
>>
>>
>>
>> Hi Georgi and Kristiyan,
>>
>>
>>
>> Could you try to change the file extension from ".CSV" to lowercase and
>> import again ? I think this is a bug, already reported to the app developer
>> and he's fixing it.
>>
>>
>>
>> We also have added the import summary which will show all the import
>> errors. It's on master and being backported to 2.30.
>>
>>
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 2, 2018 at 5:04 AM Dan Cocos  wrote:
>>
>> Is it encoded as UTF-8? I noticed as few “special” charters and that
>> might cause problems.
>>
>>
>>
>> Dan Cocos
>>
>> *BAO Systems*
>>
>> On Nov 1, 2018, at 5:33 PM, Georgi Chakarov 
>> wrote:
>>
>> Hi Blake,
>>
>>
>>
>> Thanks for your response!
>>
>>
>>
>> I am a colleague of Kristiyan. We use csv format as we have always used
>> for DHIS2 versions 2.28 and below.
>>
>> So it seems that DHIS2 changed standards for csv for some reason. The
>> exact same csv that Kris sent you was used to import org units in 2.28
>> instance and now is not recognized. We compared the template layout in 2.30
>> and it matches a 100% our file. I have also tried a csv export software
>> with different options of csv files with no luck.
>>
>>
>>
>> Maybe you could advice on how you generate csv files?
>>
>>
>>
>> Regards,
>>
>> Georgi
>>
>>
>>
>> *From:* Blake Hansen 
>> *Sent:* Thursday, November 1, 2018 7:17 PM
>> *To:* Kristiyan Panayotov 
>> *Cc:* calle.hedb...@gmail.com; DHIS 2 Users list <
>> dhis2-us...@lists.launchpad.net>; Georgi Chakarov <
>> geo...@logicaloutcomes.net>; dhis2-devs 
>> *Subject:* Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE
>>
>>
>>
>> Hi Kris,
>>
>>
>>
>> I haven’t looked at your .csv file, but from your screenshot it is clear
>> DHIS2 is not recognising it as a .csv file type. If it were, you would see
>> an extra menu appear and be able to select the object type you are
>> attempting to create (see my screenshot). This is not visible in your
>> screenshot.
>>
>>
>>
>> 
>>
>>
>>
>> Some things to check:
>>
>> Has your template *strictly *followed the csv template layout in the
>> documentation?
>> https://docs.dhis2.org/2.30/en/developer/html/webapi_csv_metadata_import.html#webapi_csv_org_units
>>
>> Is your .csv format the correct .csv format for DHIS2? (Some .csv in
>> francophone countries struggle as they use semi-colon)
>>
>>
>>
>> Hopefully something there is helpful. If not, it may be a bug but let’s
>> test those things first.
>>
>> It is also worth checking whether your import strategies are doing what
>> you expect. 

Re: [Dhis2-devs] Unable to create new users as secret and twofa columns are null

2018-10-15 Thread Viet Nguyen
Those columns were added from 2.30 only. Did you upgrade your DB to 2.30
before  ?

On Mon, Oct 15, 2018 at 1:02 PM DHIS2 Support 
wrote:

> Version: 2.29Build revision: 88696a1
> thanks Viet
> On Mon, Oct 15, 2018 at 6:58 AM Viet Nguyen  wrote:
>
>> Hi, which version are you on ?
>>
>> On Mon, Oct 15, 2018 at 4:02 AM DHIS2 Support 
>> wrote:
>>
>>> Dear all,
>>>
>>> I am unable to create new users. My troubleshooting shows that when I
>>> submit a new user request on the web page, a database
>>> ConstraintViolationException is generated as secret is null. secret and
>>> twofa columns are expected to be non-null. Please see an error extract
>>> below and a table showing two attempts.
>>>
>>> What could be causing secret and twofa to be null? I have over 100 users
>>> successfully created before the issue started. thanks.
>>>
>>> Error:
>>> * ERROR 2018-10-14 21:55:17,350 ERROR: null value in column "secret"
>>> violates not-null constraint
>>> [org.hibernate.exception.ConstraintViolationException: could not execute
>>> statement] (ExceptionMapperStandardImpl.java
>>> [http-bio-127.0.0.1-8080-exec-90])
>>> statement; SQL [n/a]; constraint [secret]; nested exception is
>>> org.hibernate.exception.ConstrintViolationException: could not execute
>>> statement
>>>
>>> _______
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> --
>>
>> Viet Nguyen
>> Software Developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>

-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Unable to create new users as secret and twofa columns are null

2018-10-14 Thread Viet Nguyen
Hi, which version are you on ?

On Mon, Oct 15, 2018 at 4:02 AM DHIS2 Support 
wrote:

> Dear all,
>
> I am unable to create new users. My troubleshooting shows that when I
> submit a new user request on the web page, a database
> ConstraintViolationException is generated as secret is null. secret and
> twofa columns are expected to be non-null. Please see an error extract
> below and a table showing two attempts.
>
> What could be causing secret and twofa to be null? I have over 100 users
> successfully created before the issue started. thanks.
>
> Error:
> * ERROR 2018-10-14 21:55:17,350 ERROR: null value in column "secret"
> violates not-null constraint
> [org.hibernate.exception.ConstraintViolationException: could not execute
> statement] (ExceptionMapperStandardImpl.java
> [http-bio-127.0.0.1-8080-exec-90])
> statement; SQL [n/a]; constraint [secret]; nested exception is
> org.hibernate.exception.ConstrintViolationException: could not execute
> statement
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Translation reset after night

2018-10-12 Thread Viet Nguyen
This is caused by the start up script. Fixed now, please try with latest
war file.

On Mon, Oct 8, 2018 at 2:58 PM Em Le Hong  wrote:

> Dear all,
>
> We are running a database on 2.29 build date 2018-09-24 03:24 and facing
> a strange behavior on translation of organisation unit and data elements.
>
> For example we want to update translation for an organisation unit. It's
> working fine, but after a night the old translation will be showed.
> Checking with WEB api we see a duplicate translation property (has 2 name,
> 2 short name properties)
> Ex:
> "translations": [{"property": "NAME","locale": "lo","value": "0101 ມ.
> ຈັນທະບູລີ"},{"property": "NAME","locale": "lo","value": "ມ.ຈັນທະບູລີ"},{
> "property": "SHORT_NAME","locale": "lo","value": "ຈັນທະບູລີ"},{"property"
> : "SHORT_NAME","locale": "lo","value": "ມ. ຈັນທະບູລີ"}],
> Then we use API to remove 1 translation that is the old. It's working
> fine, old translation gone. But it's very strange that after a night then
> the old translation will be showed again with duplicate property.
>
> Does anyone ever see similar issue or experience to solve it? I'm very
> appreciated that you can share.
>
> I'm trying to reproduce this issue on blank database but still couldn't
> reproduce it.
>
> Thanks,
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Problem creating a data export in 2.30

2018-10-11 Thread Viet Nguyen
Hi Elmarie,

Yes, the export data value function is also controlled by sharing settings.



On Thu, Oct 11, 2018 at 9:12 PM Elmarie Claasen  wrote:

> Hi Viet,
>
>
>
> I think we may be onto what is causing the issue. Is the exporting of data
> also controlled by sharing settings? I did an export again today of all
> datasets in Play demo for Sep 2018 with username admin/district and only
> get the attached export file though it appears there are many more records
> in the database than only these 3 for Sep 2018.
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
> *From:* Viet Nguyen 
> *Sent:* Thursday, October 11, 2018 12:35 PM
> *To:* Elmarie Claasen 
> *Cc:* dhis2-users ; dhis2-devs <
> dhis2-devs@lists.launchpad.net>; mahla...@hisp.org
> *Subject:* Re: [Dhis2-devs] Problem creating a data export in 2.30
>
>
>
> I can't reproduce the issue you described on play/2.30, even for September
> period.
>
>
>
> Could you provide more info such as steps to reproduce on play/2.30 server
> and export parameters.
>
>
>
> On Wed, Oct 10, 2018 at 5:50 PM Elmarie Claasen  wrote:
>
> Hi all,
>
>
>
> We having a problem in creating a data export in 2.30 instance on local
> instance. The file generated is empty. There is no error in the browser
> console or in the log file in fact no entry in the log file at the time
> when the export is generated.
>
>
>
> The version used
>
> Version:
>
> 2.30
>
> Build revision:
>
> ade885d
>
> Build date:
>
> 2018-10-08 03:06
>
>
>
> The Play demo does not create the same problem when data is exported for
> July there are data in the export file but when exported for Sep for all or
> any datasets the export also comes up empty.
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
>
>
>
> Viet Nguyen
>
> Software Developer, DHIS 2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Problem creating a data export in 2.30

2018-10-11 Thread Viet Nguyen
I can't reproduce the issue you described on play/2.30, even for September
period.

Could you provide more info such as steps to reproduce on play/2.30 server
and export parameters.

On Wed, Oct 10, 2018 at 5:50 PM Elmarie Claasen  wrote:

> Hi all,
>
>
>
> We having a problem in creating a data export in 2.30 instance on local
> instance. The file generated is empty. There is no error in the browser
> console or in the log file in fact no entry in the log file at the time
> when the export is generated.
>
>
>
> The version used
>
> Version:
>
> 2.30
>
> Build revision:
>
> ade885d
>
> Build date:
>
> 2018-10-08 03:06
>
>
>
> The Play demo does not create the same problem when data is exported for
> July there are data in the export file but when exported for Sep for all or
> any datasets the export also comes up empty.
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] dhis version 2.30 is released

2018-09-27 Thread Viet Nguyen
Ifeanyi, can you send me link to that jira issue? I will check and update.



On Thu, Sep 27, 2018, 19:34 Ifeanyi Okoye  wrote:

> Dear Viet,
> We have encountered this issue and I had reported this and got no response.
>
> The thing is that for us, the default category option is not used on any
> of these data sets that are encountering this issue. Also, we did not have
> this issue until we upgraded to the latest build of 2.29 on Friday and
> right now, none of our teams can enter any data.
>
> So, what changed between the updates from the previous version to the
> latest?
>
> Secondly, why is a category option that is not used in any dataset
> affecting data entry on that dataset?
>
> Thanks
>
>
> Warm Regards,
>
> Ifeanyi
>
> Read DrMaestro's Blog
> www.ifeanyiokoye.com
>
>
> On Thursday, September 27, 2018, 8:48:23 AM GMT+1, Viet Nguyen <
> v...@dhis2.org> wrote:
>
>
> Hi Alejandro,
>
> That's a bug, the default category option should be shared by default. I
> have just added a fix for that issue. It will be included in the latest
> build by tomorrow.
>
> Regards,
>
> On Thu, Sep 27, 2018 at 12:32 AM Alejandro  wrote:
>
> Hi,
>
> We have had the same issue when upgrading from 2.28 to 2.30. When trying
> to enter data in a Tracker Program with all the capture sharings configured
> for the user (Tracked Entity Type, Program, Stages) we got the following
> message:
>
> {httpStatus: "Conflict", httpStatusCode: 409, status: "ERROR",…}
> httpStatus: "Conflict"
> httpStatusCode: 409
> message: "An error occurred, please check import summary."
> response: {responseType: "ImportSummary", status: "ERROR",…}
> description: "*[User has no write access to category option: rHGSHuG4Ts5]*
> "
> importCount: {imported: 0, updated: 0, ignored: 1, deleted: 0}
> responseType: "ImportSummary"
> status: "ERROR"
> status: "ERROR"
>
> The category option rHGSHuG4Ts5 in our system is the system default one
> (i.e. when category option = none):
>
> 
> *default*
> 
>
> And this category option is not displayed in the UI (we cannot give it the
> Data->Can view or Data->Can capture options). How can we set those
> permissions for the system default category option? Should not this be
> granted by default?
>
> Thank you in advance!
> Alejandro
>
>
>
> On Tue, Jul 24, 2018 at 8:00 PM Eudson Bambo <
> eudson.ba...@ucglobalprograms.org> wrote:
>
> Dear Blake,
>
> It worked. Many thanks.
>
> Adolphe and Viet, I saw your emails also - thank you.
>
> Eudson
>
> On 23 Jul 2018, at 8:54 PM, Eudson Bambo <
> eudson.ba...@ucglobalprograms.org> wrote:
>
> Dear Blake,
>
> Thanks for your response, I will have a look at the documentation and give
> the permissions to the users.
>
> Many thanks.
> Eudson Bambo
>
> On 23 Jul 2018, at 12:15 PM, Blake Hansen  wrote:
>
> Dear Eudson,
>
> What was your DHIS2 version prior to upgrade? It seems like you are
> encountering the change in data entry sharing that occurred from 2.29.
> Whereas previously the ability for data entry was conferred specifically
> through the ‘data sets’ and ‘programs’ user roles, this is now done through
> ‘data’ sharing levels. Additionally, the sharing also impacts category
> options. You can see the DHIS2 documentation on this here:
> https://www.dhis2.org/spotlight#datalevelsharing2 - scroll down to the
> Data Level Sharing: Category Options and Data Sets video.
>
> The route for fixing would seem to be giving your users who enter data the
> sharing level ‘can capture data’. This would mean either conferring this
> ability publicly on your category options, or adding these users to a
> specific user group and giving the capture permission to that user group.
>
> Trust this is a helpful start (and hopefully finish),
> Blake
>
> --
>
>
> 
>
> *Blake Hansen*
> Projects Implementation Manager, BAO Systems
> +1 202-536-1541 | bhan...@baosystems.com | http://www.baosystems.com |
> Skype: blake.a.hansen | 2900 K Street, Suite 507, Washington D.C. 20007
>
> On 23 Jul 2018, at 11:08, Eudson Bambo 
> wrote:
>
> Thanks Lars and Team.
>
> This really great, DHIS2 is getting better and better.
>
> So sorry for sending this on this thread but the problem is related to
> this version.
>
> Last week my team (infrastructure) decided to update our DHIS2 instance to
> this version (2.30) and since then all non-superuser users are having
> problems entering data, everyone is getting the follow error message: User
> has no data write access for Categor

Re: [Dhis2-devs] [Dhis2-users] User roles un-assigned some authorities after restarting the server

2018-08-23 Thread Viet Nguyen
Hi,

Confirm this is a bug in the backend, working on a fix, will update shortly
on jira.

On Thu, Aug 23, 2018 at 4:32 PM Jason Pickering 
wrote:

> Hi Morten,
> I have observed something similar but note in Ems report it's impossible
> to reproduce on the play server since a reboot is required.
>
> Regards,
> Jason
>
> On Thu, Aug 23, 2018, 11:14 Morten Olav Hansen  wrote:
>
>> Hi Em, please try and see if you can reproduce on our play servers
>>
>> https://play.dhis2.org/2.29/
>> https://play.dhis2.org/2.30/
>>
>> Also adding in Viet, who made some fixes I think might be relevant to
>> this..
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> Team Integration Lead
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>> On Thu, Aug 23, 2018 at 11:02 AM Em Le Hong 
>> wrote:
>>
>>> Hi all,
>>>
>>> Does anyone notice that DHIS2 2.29 generated some new authorities for
>>> user roles like in screenshots below
>>> [image: image.png]
>>> When we assigned these user roles to a user, it works fine. But these
>>> authorities will be un-assigned from user role after we restart the server.
>>>
>>> Is it a bug or something else? Because we need to restart the server to
>>> test, so I can't test on DHIS2 demo server to compare.
>>>
>>> I created a ticket on Jira for Dev to check if it is the same with Demo
>>> https://jira.dhis2.org/browse/DHIS2-4462
>>>
>>> Sincerely,
>>>
>>> --
>>> *Em Le Hong*
>>> DHIS2 Implementation| *HISP Vietnam *
>>> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@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-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] dhis version 2.30 is released

2018-07-23 Thread Viet Nguyen
.org/releases/screenshots/30/assign-icon-program.png>
> | 2
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/icon-picker.png>
> | 3
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/icon-android-app.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-maintenance/#/edit/programSection/program/uy2gU8kT1jF>
> | Docs
> <https://docs.dhis2.org/master/en/developer/html/webapi_object_style.html>
> | Jira <https://jira.dhis2.org/browse/DHIS2-2443> Color palette for
> metadata: The new Android app can now assign background colours for
> programs, stages, data elements and options in option sets. A color in the
> maintenance app allows selection from a optimized color palette. Screenshot
> 1
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/assign-color-program.png>
> | 2
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/color-android-app.png>
> | Demo
> <https://play.dhis2.org/2.30/dhis-web-maintenance/#/edit/programSection/program/uy2gU8kT1jF>
> | Docs
> <https://docs.dhis2.org/master/en/developer/html/webapi_object_style.html>
> | Jira <https://jira.dhis2.org/browse/DHIS2-2441> Rendering types for
> program sections: For the new Android app, a program section with a single
> data element and associated option set can render the options in sequential
> or matrix layout based on the the associated icon of the option. Screenshot
> 1
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/section-render-type.png>
> | 2
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/render-section-sequential.png>
> | 3
> <https://s3.eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/30/render-section-matrix.png>
> | Docs
> <https://docs.dhis2.org/master/en/developer/html/webapi_render_type.html> |
> Jira <https://jira.dhis2.org/browse/DHIS2-2439> GENERAL FEATURES ---
> Horizontal scalability: DHIS 2 can now be scaled horizontally at the
> application layer by hosting multiple DHIS 2 application instances in a
> cluster. Several technical challenges have beens solved, such as shared
> sessions, shared application cache and cluster leader election through the
> use of the Redis data store, and Hibernate cluster cache invalidation. The
> Redis data store is a requirement for horizontal scalability. Docs
> <https://docs.dhis2.org/master/en/implementer/html/install_web_server_cluster_configuration.html>
> Two-factor authentication: You can now enable two-factor authentication for
> your DHIS 2 user. This lets you to enable a secondary authentication step
> for improved performance, using a TOTP
> <https://en.wikipedia.org/wiki/Time-based_One-time_Password_algorithm>
> based authentication app such as Google Authenticator
> <https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2=en>.
> You can enable 2FA from Profile menu > Account settings. Admins can disable
> 2FA for other users from the list of users in the user app. Docs
> <https://docs.dhis2.org/master/en/user/html/mgt_user.html#d0e15597> API
> FEATURES --- Kafka support: DHIS 2 now utilizes Kafka for queueing events
> sent to the API before being imported into the system. This will allow for
> improved performance and scalability of bulk imports of events, enrollments
> and tracked entity instances. Docs
> <https://docs.dhis2.org/master/en/developer/html/webapi_kafka_integration.html>
> RELEASE INFO --- Release Information Link Download release and sample
> database https://www.dhis2.org/downloads <https://www.dhis2.org/downloads>
> Documentation and Javadocs https://www.dhis2.org/documentation
> <https://www.dhis2.org/documentation> Upgrade notes Upgrade notes on GitHub
> <https://github.com/dhis2/dhis2-releases/blob/master/releases/2.30/README.md>
> Details about each feature on JIRA (requires login)
> https://jira.dhis2.org/issues/?filter=10708
> <https://jira.dhis2.org/issues/?filter=10708> Overview of issues on JIRA
> (requires login) https://jira.dhis2.org/issues/?filter=10873
> <https://jira.dhis2.org/issues/?filter=10873> Source code on Github
> https://github.com/dhis2 <https://github.com/dhis2> Demo instance
> https://play.dhis2.org/2.30/ <https://play.dhis2.org/2.30/> Instructions
> for signing up for DHIS 2 mailing lists https://www.dhis2.org/contact
> <https://www.dhis2.org/contact>   Enjoy the new release. Best regards, The
> DHIS2 development team *
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@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-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Authorities for dragging and droping Dashboard Items

2018-06-18 Thread Viet Nguyen
Hi Eric,

That issue was fixed for the newly rewritten Dashboard app from 2.29 and
has not been back-ported to legacy Dashboard app yet.

Could you create an issue on jira ?  I will check if I could back-port  it.

Regards,



On Thu, Jun 14, 2018 at 5:42 PM, Eric Barreda Prades  wrote:

> Dear Viet,
>
> I have seen that the issue has also been fixed in v.29. Thanks a lot. Is
> there any intention to fix it in v.28 ?
>
> Best,
>
> Eric
>
> 2018-05-24 2:50 GMT+02:00 GROUT, Lise :
>
>> Dear all,
>>
>>
>> We have already reported similar. Actually in our case, if the people has
>> only "See Dashboard" but does not have the other visualization Apps, they
>> see the dashboards with ghost widget (no chart, table or maps). We have to
>> give them access to all the other Apps, which was not our primary
>> intention, and we don't see the rationale behind this neither.
>>
>>
>> Best
>> Lise
>> --
>> *From:* Dhis2-users > o@lists.launchpad.net> on behalf of Morten Olav Hansen <
>> mor...@dhis2.org>
>> *Sent:* Thursday, May 24, 2018 2:03:23 AM
>> *To:* Eric Barreda Prades; Viet Nguyen
>> *Cc:* DHIS Users; DHIS 2 Developers list
>> *Subject:* Re: [Dhis2-users] [Dhis2-devs] Authorities for dragging and
>> droping Dashboard Items
>>
>> Hi Eric
>>
>> This is a bug we are aware of, and it has been fixed in master (what will
>> be 2.30). I'm not sure if it has been backported yet.
>>
>> Viet?
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, May 23, 2018 at 10:41 PM, Eric Barreda Prades <
>> ericbarre...@gmail.com> wrote:
>>
>>> Dear developers,
>>>
>>> I have observed in our system that some users weren't able to
>>> Drag/Arrange/redistribute dashboardItems from a Dashboard. After testing it
>>> in DHIS2 Demo (at least tested for version 28) I have observed that users
>>> must have the following authorities:
>>>
>>> See Data Visualizer app
>>> See Event Reports app
>>> See Dashboard Classic
>>> See Event Visualizer app
>>> See Pivot Table app
>>>
>>> Basically, they must have ALL related analysis app authorities. Is there
>>> any rationality behind restricting it to that level? I mean, we have to
>>> allow users seeing apps they might not use (for example program related
>>> analytic apps) for dragging objects that might not be related to that
>>> applications (Aggregated Tables). Am I missing something? Is this a bug?
>>>
>>>
>>>
>>>
>>>
>>> Best,
>>>
>>> Eric
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Data Set Completion on 2.29

2018-06-12 Thread Viet Nguyen
Hi Barnabas,

This sounds like a bug, please help to create a jira issue on
https://jira.dhis2.org. Will fix asap.

Regards,

On Tue, Jun 12, 2018 at 2:22 PM, Barnabas Akumba 
wrote:

> Hello All,
>
> Any one with help on this issue?
>
> Regards
>
> On Mon, Jun 11, 2018 at 11:54 AM, Barnabas Akumba 
> wrote:
>
>> Hello Devs,
>>
>> When I try to submit data on version 2.29 (i.e. click on "complete")
>> button, the submission is not completed.
>> I looked at the Browser console and found the following errors:
>>
>>
>>
>> Any suggestion as to how to get around this?
>>
>> Regards
>>
>>
>> --
>>
>> Barnabas AKUMBA
>>
>> *Mobile:* +2348036195778
>> *Skype:* barnabas.akumba
>>
>
>
>
> --
>
> Barnabas AKUMBA
>
> *Mobile:* +2348036195778
> *Skype:* barnabas.akumba
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] A bug

2018-05-20 Thread Viet Nguyen
Hi,

Which version of DHIS2 you are using ?
If it is 2.29, maybe you are having the same problem as described in this
jira issue https://jira.dhis2.org/browse/DHIS2-3612


On Sun, May 20, 2018 at 9:43 PM, NAHAYO FRANCK <nahayofra...@gmail.com>
wrote:

> Hi Team,
> i have created a data entry form and have assigned Org Unit to the users
> but when they fill data the below error msg appears as it is shown on the
> picture. Please your help is welcome:
>
>
>
> B rgds
> **
>
> *Franck NAHAYO*
> *(257) 79 80 00 56*
> *75 15 02 32*
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] FW: Translation Problem with Event reports

2017-07-14 Thread Viet Nguyen
Hi,

You are right, this is a translation bug of the charts. Could you please
help to create an issue on dhis2.jira.com and we will try to work on it
asap.

Thanks,


On Sat, Jul 15, 2017 at 12:30 AM, Georgi Chakarov <
geo...@logicaloutcomes.net> wrote:

> Hello again!
>
>
>
> Any thoughts on my below email?
>
>
>
> Kindly thank you for considering responding.
>
>
>
> Regards,
>
>
>
> Georgi
>
>
>
> *From:* Georgi Chakarov
> *Sent:* Thursday, July 13, 2017 12:10 AM
> *To:* DHIS Users <dhis2-us...@lists.launchpad.net>; DHIS 2 Developers
> list <dhis2-devs@lists.launchpad.net>
> *Cc:* 'Paula Richardson' <prichard...@usc-canada.org>; Yann Vergriete <
> yvergri...@usc-canada.org>
> *Subject:* Translation Problem with Event reports
>
>
>
> Hello all!
>
>
>
> I have a translation issue using Event reports. All data elements and
> answer options are translated in French and I see them in French while
> selecting the dimensions in Event reports.
>
> However, once in the report itself (or on a dashboard) all data elements
> are displayed in English. Event reports simply fail to display the
> translated versions.
>
>
>
> Does anyone have an idea what might be causing this issue? I am testing
> with DHIS2 v. 2.26 build: 29748c1
>
>
>
> See screenshot below for more details of this issue
>
>
>
> [image: Once the data element gets in the report it is displayed in
> English. French version would not work. Same thing in dashboards.][image:
> Data element in French in selected items]
>
>
>
>
>
> Thanks in advance for your help!
>
>
>
> Georgi
>
>
>
>
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
> 104 | LogicalOutcomes c/o Centre for Social Innovation, 720 Bathurst
> Street, Toronto Canada M5S 2R4 | *You may unsubscribe from receiving
> commercial electronic messages from LogicalOutcomes by emailing *
> *i...@logicaloutcomes.net* <i...@logicaloutcomes.net>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Pending JIRA issues

2017-07-05 Thread Viet Nguyen
Hi Timothy,

I will work on those and update in the jira.


On Thu, Jul 6, 2017 at 12:54 AM, Timothy Kiyemba <tkiye...@gmail.com> wrote:

>
>1. Dear all,
>
>
> Could someone help me follow up JIRA issues 1881 and 1721? These have
> pended for quite some time now.
>
> Timothy
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] CANNOT CREATE PROGRAM STAGE SECTIONS in v. 2.27

2017-07-05 Thread Viet Nguyen
This issue has been fixed, please check again.

On Thu, Jul 6, 2017 at 1:59 AM, Immaculate Ayebazibwe <ekass...@gmail.com>
wrote:

> Hi Markus,
> Any Idea on how to deal with this or how soon it can be fixed.
> I have tried on the DEMO instance but still has the same issue.
>
>
>
> Thank you and Kind Regards
> *Immarcqulate. A (Emma Kassy) *
>
> *"You miss 100% of the shots you don't take."*
>
> On Sat, Jul 1, 2017 at 12:34 PM, gerald thomas <gerald17...@gmail.com>
> wrote:
>
>> Dear Victor & Georgi,
>> I have you tried it on the dhis2.org demo? If it doesn't work there it
>> might be a bug but if it works, i suggest you should change your war
>> file.
>>
>> On 6/30/17, Victor Garcia <vgarcia...@gmail.com> wrote:
>> > Same problem here.
>> > Reported a few days ago (https://jira.dhis2.org/browse/DHIS2-1871).
>> This
>> > issue is reproducible in demo server.
>> >
>> > Regards,
>> >
>> > Víctor
>> >
>> > On 29 June 2017 at 19:16, Georgi Chakarov <geo...@logicaloutcomes.net>
>> > wrote:
>> >
>> >> I am a superuser and I have access to all! I was able to successfully
>> >> create sections in 2.26, but once we updated to 2.27 I get errors.
>> >>
>> >>
>> >>
>> >> *From:* Stanley Kalyati [mailto:skaly...@gmail.com]
>> >> *Sent:* Thursday, June 29, 2017 8:10 PM
>> >> *To:* Georgi Chakarov <geo...@logicaloutcomes.net>
>> >> *Cc:* DHIS 2 Developers list <dhis2-devs@lists.launchpad.net>; DHIS
>> Users
>> >> <dhis2-us...@lists.launchpad.net>
>> >> *Subject:* Re: [Dhis2-users] CANNOT CREATE PROGRAM STAGE SECTIONS in v.
>> >> 2.27
>> >>
>> >>
>> >>
>> >> Georgi,
>> >>
>> >>
>> >>
>> >> Please look at your user rights.You are not allowed to add a stage.
>> >>
>> >>
>> >>
>> >> Try to log in as a superuser and you will succeed
>> >>
>> >>
>> >>
>> >> All the best
>> >>
>> >>
>> >>
>> >> Stanley
>> >>
>> >>
>> >>
>> >> On Jun 29, 2017 7:05 PM, "Georgi Chakarov" <geo...@logicaloutcomes.net
>> >
>> >> wrote:
>> >>
>> >> Does anyone know why I cannot create a program stage section in DHIS2
>> >> version 2.27?
>> >>
>> >> I get the screen below. PLEASE help, as I need to proceed quickly with
>> >> sections. Thanks!
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Georgi Chakarov, CIA | geo...@logicaloutcomes.net | +1-647-478-5634 x
>> 104
>> >> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation,
>> >> 720 Bathurst Street, Toronto Canada M5S 2R4 | *You may unsubscribe from
>> >> receiving commercial electronic messages from LogicalOutcomes by
>> emailing
>> >> *
>> >> *i...@logicaloutcomes.net* <i...@logicaloutcomes.net>
>> >>
>> >>
>> >>
>> >>
>> >> ___
>> >> Mailing list: https://launchpad.net/~dhis2-users
>> >> Post to : dhis2-us...@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-us...@lists.launchpad.net
>> >> Unsubscribe : https://launchpad.net/~dhis2-users
>> >> More help   : https://help.launchpad.net/ListHelp
>> >>
>> >>
>> >
>>
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@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-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] why the translatrion can't work on event capture module?

2017-06-13 Thread Viet Nguyen
Which version are you using ?

On Fri, Jun 9, 2017 at 5:30 PM, 林晓东 <lin...@126.com> wrote:

> Hi,all,
>   I have do translate for the event capture module, and clean the browser
> cache, but the UI still in English. how ?
> -
> event_capture=事件采集
> registering_unit=登记机构
> registered_events=登记的事件
> ...
> -
>
>
>
>
>
>
>
> --
> 此致
>
> easy
>
>
> 莫愁前路无知己,天下谁人不识君。
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Version 26 - Issue; cannot update organisationunit

2017-06-08 Thread Viet Nguyen
Hi Hannan,

Currently we don't support property = 'comment' , I think it has the same
meaning as 'description' ?
If that is the case, can you run a query to update all of those records as
below

update objecttranslation set property = 'DESCRIPTION' where property = '
> comment';



On Fri, Jun 9, 2017 at 10:35 AM, Hannan Khan <hann...@gmail.com> wrote:

> Dear Viet
>
> The first query output is 0.
> second query output is in the attached. there are 3457 rows. I noticed
> that in the 'organisationunit' table this 'type' has the same value. But
> note that there are 19385 rows have null values in the 'type' column.
>
> Thank you for your kind effort.
>
> Regards
>
> Hannan
>
> On Fri, Jun 9, 2017 at 9:06 AM, Viet Nguyen <v...@dhis2.org> wrote:
>
>> Hi Hannan,
>>
>> As discussed yesterday, I need more info to investigate this issue.
>>
>> Can you run the below queries in your upgraded database and send over the
>> result.
>>
>> select count(*)  from objecttranslation where property is null;
>>
>> select * from objecttranslation where value like 'UH & FWC/Union Sub
>> Centers(New)';
>>
>>
>> On Thu, Jun 8, 2017 at 9:42 AM, Hannan Khan <hann...@gmail.com> wrote:
>>
>>> Thanks Viet.
>>>
>>> But there is no record in 'translation' with null value. II run the
>>> query and outcome is null.
>>>
>>> But the problem persists.
>>>
>>> Need urgent help.
>>>
>>> Regards
>>>
>>> Hannan
>>>
>>> On Wed, Jun 7, 2017 at 3:10 PM, Viet Nguyen <v...@dhis2.org> wrote:
>>>
>>>> Hi Hannan,
>>>>
>>>> I think this is caused by some invalid translation records in your
>>>> database.
>>>>
>>>> Can you try to run the below query with the old database and then run
>>>> the upgrade procedures again. Meanwhile I will try to add some null check
>>>> conditions to the upgrade query to make sure this issue won't happen again.
>>>>
>>>> delete from translation where objectproperty is null;
>>>>
>>>>
>>>> Regards,
>>>>
>>>> On Wed, Jun 7, 2017 at 9:58 AM, Hannan Khan <hann...@gmail.com> wrote:
>>>>
>>>>> Thanks a lot Calle and Morten. But how can I solve this.
>>>>>
>>>>> I got some clue form your mail, will check and get back to you within
>>>>> few hours (stupid meetings!!).
>>>>>
>>>>> Regards
>>>>>
>>>>> Hannan
>>>>>
>>>>>
>>>>> On Tue, Jun 6, 2017 at 1:25 PM, Calle Hedberg <calle.hedb...@gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Hannan,
>>>>>>
>>>>>> That looks very much like the bug I picked up just before the Goa
>>>>>> academy - it's caused by the fact that you have OrgUnit attributes with
>>>>>> null values (if you have any other meta-data object with attribute 
>>>>>> records
>>>>>> with null values it would be the same). I worked with Morten to track it
>>>>>> down and fix it. If this is the same, it could be that update was lost,
>>>>>> somehow (assuming your build is from ~30th April or later).
>>>>>>
>>>>>> Build version don't tell me anything - what is the DATE of the 2.26
>>>>>> build you are using? Have you tried to update to the latest 2.26 build?
>>>>>>
>>>>>> Regards
>>>>>> Calle
>>>>>>
>>>>>> On 6 June 2017 at 05:34, Hannan Khan <hann...@gmail.com> wrote:
>>>>>>
>>>>>>> Dear All
>>>>>>>
>>>>>>> We just upgrade nation instance form 22 to 26. Now we are facing an
>>>>>>> issue.
>>>>>>>
>>>>>>> When we trying to update a organization unit it cannot be saved. Log
>>>>>>> is  as follows. The build we are using is 8f9dc62
>>>>>>>
>>>>>>> * WARN  2017-06-06 08:56:27,127 SQL Error: 0, SQLState: 23502
>>>>>>> (SqlExceptionHelper.java [http-nio-8080-exec-205])
>>>>>>> * ERROR 2017-06-06 08:56:27,128 ERROR: null value in column
>>>>>>> "property" violates not-null constraint
>>>>>>>   Detail: Failing row contains (44356689, en_GB, nu

Re: [Dhis2-devs] Version 26 - Issue; cannot update organisationunit

2017-06-08 Thread Viet Nguyen
Hi Hannan,

As discussed yesterday, I need more info to investigate this issue.

Can you run the below queries in your upgraded database and send over the
result.

select count(*)  from objecttranslation where property is null;

select * from objecttranslation where value like 'UH & FWC/Union Sub
Centers(New)';


On Thu, Jun 8, 2017 at 9:42 AM, Hannan Khan <hann...@gmail.com> wrote:

> Thanks Viet.
>
> But there is no record in 'translation' with null value. II run the query
> and outcome is null.
>
> But the problem persists.
>
> Need urgent help.
>
> Regards
>
> Hannan
>
> On Wed, Jun 7, 2017 at 3:10 PM, Viet Nguyen <v...@dhis2.org> wrote:
>
>> Hi Hannan,
>>
>> I think this is caused by some invalid translation records in your
>> database.
>>
>> Can you try to run the below query with the old database and then run the
>> upgrade procedures again. Meanwhile I will try to add some null check
>> conditions to the upgrade query to make sure this issue won't happen again.
>>
>> delete from translation where objectproperty is null;
>>
>>
>> Regards,
>>
>> On Wed, Jun 7, 2017 at 9:58 AM, Hannan Khan <hann...@gmail.com> wrote:
>>
>>> Thanks a lot Calle and Morten. But how can I solve this.
>>>
>>> I got some clue form your mail, will check and get back to you within
>>> few hours (stupid meetings!!).
>>>
>>> Regards
>>>
>>> Hannan
>>>
>>>
>>> On Tue, Jun 6, 2017 at 1:25 PM, Calle Hedberg <calle.hedb...@gmail.com>
>>> wrote:
>>>
>>>> Hannan,
>>>>
>>>> That looks very much like the bug I picked up just before the Goa
>>>> academy - it's caused by the fact that you have OrgUnit attributes with
>>>> null values (if you have any other meta-data object with attribute records
>>>> with null values it would be the same). I worked with Morten to track it
>>>> down and fix it. If this is the same, it could be that update was lost,
>>>> somehow (assuming your build is from ~30th April or later).
>>>>
>>>> Build version don't tell me anything - what is the DATE of the 2.26
>>>> build you are using? Have you tried to update to the latest 2.26 build?
>>>>
>>>> Regards
>>>> Calle
>>>>
>>>> On 6 June 2017 at 05:34, Hannan Khan <hann...@gmail.com> wrote:
>>>>
>>>>> Dear All
>>>>>
>>>>> We just upgrade nation instance form 22 to 26. Now we are facing an
>>>>> issue.
>>>>>
>>>>> When we trying to update a organization unit it cannot be saved. Log
>>>>> is  as follows. The build we are using is 8f9dc62
>>>>>
>>>>> * WARN  2017-06-06 08:56:27,127 SQL Error: 0, SQLState: 23502
>>>>> (SqlExceptionHelper.java [http-nio-8080-exec-205])
>>>>> * ERROR 2017-06-06 08:56:27,128 ERROR: null value in column "property"
>>>>> violates not-null constraint
>>>>>   Detail: Failing row contains (44356689, en_GB, null, UH & FWC/Union
>>>>> Sub Centers(New)). (SqlExceptionHelper.java [http-nio-8080-exec-205])
>>>>> org.hibernate.exception.ConstraintViolationException: could not
>>>>> execute statement
>>>>> at org.hibernate.exception.internal.SQLStateConversionDelegate.
>>>>> convert(SQLStateConversionDelegate.java:112)
>>>>> at org.hibernate.exception.internal.StandardSQLExceptionConvert
>>>>> er.convert(StandardSQLExceptionConverter.java:42)
>>>>> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(Sql
>>>>> ExceptionHelper.java:111)
>>>>> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(Sql
>>>>> ExceptionHelper.java:97)
>>>>> at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.execu
>>>>> teUpdate(ResultSetReturnImpl.java:207)
>>>>> at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.ad
>>>>> dToBatch(NonBatchingBatch.java:45)
>>>>> at org.hibernate.persister.entity.AbstractEntityPersister.inser
>>>>> t(AbstractEntityPersister.java:2947)
>>>>> at org.hibernate.persister.entity.AbstractEntityPersister.inser
>>>>> t(AbstractEntityPersister.java:3447)
>>>>> at org.hibernate.action.internal.EntityInsertAction.execute(Ent
>>>>> ityInsertAction.java:89)
>>>>> at org.hibernate.e

Re: [Dhis2-devs] Version 26 - Issue; cannot update organisationunit

2017-06-07 Thread Viet Nguyen
rg.postgresql.util.PSQLException: ERROR: null value in
>>> column "property" violates not-null constraint
>>>   Detail: Failing row contains (44356689, en_GB, null, UH & FWC/Union
>>> Sub Centers(New)).
>>> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorRespons
>>> e(QueryExecutorImpl.java:2455)
>>> at org.postgresql.core.v3.QueryExecutorImpl.processResults(Quer
>>> yExecutorImpl.java:2155)
>>> at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecut
>>> orImpl.java:288)
>>> at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430)
>>> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356)
>>> at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgP
>>> reparedStatement.java:168)
>>> at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPrep
>>> aredStatement.java:135)
>>> at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUp
>>> date(NewProxyPreparedStatement.java:105)
>>> at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.execu
>>> teUpdate(ResultSetReturnImpl.java:204)
>>> ... 133 more
>>>
>>> Need urgent help.
>>>
>>> Regards
>>>
>>> Muhammad Abdul Hannan Khan
>>> Team Leader
>>> Support to the National HMIS
>>> MIS, Director General of Health Service
>>> Ministry of Health and Family Welfare
>>>
>>> T +880-2- 58816459 <+880%202-58816459>, 58816412 ext 118
>>> F +88 02 58813 875
>>> M+88 01819 239 241
>>> M+88 01534 312 066
>>> E hann...@gmail.com
>>> S hannan.khan.dhaka
>>> B hannan-tech.blogspot.com
>>> L https://bd.linkedin.com/in/hannankhan
>>>
>>>
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>>
>> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>>
>> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>
>
> --
> Muhammad Abdul Hannan Khan
> Team Leader
> Support to the National HMIS
> MIS, Director General of Health Service
> Ministry of Health and Family Welfare
>
> T +880-2- 58816459, 58816412 ext 118
> F +88 02 58813 875
> M+88 01819 239 241
> M+88 01534 312 066
> E hann...@gmail.com
> S hannan.khan.dhaka
> B hannan-tech.blogspot.com
> L https://bd.linkedin.com/in/hannankhan
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Fwd: 404 Error when trying to use the DHIS2 menu in an APP

2017-02-27 Thread Viet Nguyen
Hi Pooben,

Please take the below file as an example. It's the main page of the
dashboard-app.

https://raw.githubusercontent.com/dhis2/dashboard-app/master/index.html

Regards,

On Mon, Feb 27, 2017 at 3:44 PM, Pooben Dass <poo...@hisp.org> wrote:

> Hi Viet Nguyen
>
> I am trying to get the DHIS2 menu to display in my app, if I remove these
> scripts - what script library to I need to replace it with?
>
> Regards
> Pooben
>
> On Mon, Feb 27, 2017 at 10:20 AM, Viet Nguyen <v...@dhis2.org> wrote:
>
>> Hi Pooben,
>>
>> 
>>  
>>
>> Those are old scripts, please try to remove them from your app and see if
>> the error still occurs.
>>
>> Regards,
>>
>> On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass <poo...@hisp.org> wrote:
>>
>>> Hi Devs
>>>
>>> Any information to assist with this error?
>>>
>>> Regards
>>> Pooben
>>>
>>> -- Forwarded message --
>>> From: Pooben Dass <poo...@hisp.org>
>>> Date: Tue, Feb 21, 2017 at 12:41 PM
>>> Subject: 404 Error when trying to use the DHIS2 menu in an APP
>>> To: dhis2-devs <dhis2-devs@lists.launchpad.net>
>>>
>>>
>>> Hi Devs
>>>
>>> Please can you assist me in getting the DHIS Menu to display in my app?
>>>
>>> I'm using dhis 2,25 build 8182981
>>>
>>> *and this is the error I receive on the console :-*
>>>
>>> jquery.min.js:2 GET http://localhost:9090/dhis/api
>>> /apps/api/me/profile.json 404 (Not Found)
>>> send @ jquery.min.js:2
>>> ajax @ jquery.min.js:2
>>> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960
>>> (anonymous) @ dhis2.menu.ui.js:1266
>>> (anonymous) @ dhis2.menu.ui.js:1268
>>>
>>> jquery.min.js:2 GET http://localhost:9090/dhis/api
>>> /apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)
>>> send @ jquery.min.js:2
>>> ajax @ jquery.min.js:2
>>> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955
>>> (anonymous) @ dhis2.menu.ui.js:1266
>>> (anonymous) @ dhis2.menu.ui.js:1268
>>>
>>> *This is the script as per the DHIS2 documentation:-*
>>>
>>> 
>>> <!-- DHIS2 Settings initialization for a baseUrl that is used for the
>>> menu -->
>>> window.dhis2 = window.dhis2 || {};
>>> dhis2.settings = dhis2.settings || {};
>>> dhis2.settings.baseUrl = 'dhis';
>>> 
>>>
>>> *This is the script with the relative path I am using:-*
>>>
>>> 
>>>  
>>>
>>>
>>> *This message and any attachments are subject to a disclaimer published
>>> at http://www.hisp.org/policies.html#comms_disclaimer
>>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>>> disclaimer before opening any attachment or taking any other action in
>>> terms of this electronic transmission.  If you cannot access the
>>> disclaimer, kindly send an email to disclai...@hisp.org
>>> <disclai...@hisp.org> and a copy will be provided to you. By replying to
>>> this e-mail or opening any attachment you agree to be bound by the
>>> provisions of the disclaimer.*
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>>
>> Viet Nguyen
>> Software Developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>



-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Fwd: 404 Error when trying to use the DHIS2 menu in an APP

2017-02-27 Thread Viet Nguyen
Hi Pooben,


 

Those are old scripts, please try to remove them from your app and see if
the error still occurs.

Regards,

On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass <poo...@hisp.org> wrote:

> Hi Devs
>
> Any information to assist with this error?
>
> Regards
> Pooben
>
> -- Forwarded message --
> From: Pooben Dass <poo...@hisp.org>
> Date: Tue, Feb 21, 2017 at 12:41 PM
> Subject: 404 Error when trying to use the DHIS2 menu in an APP
> To: dhis2-devs <dhis2-devs@lists.launchpad.net>
>
>
> Hi Devs
>
> Please can you assist me in getting the DHIS Menu to display in my app?
>
> I'm using dhis 2,25 build 8182981
>
> *and this is the error I receive on the console :-*
>
> jquery.min.js:2 GET http://localhost:9090/dhis/api
> /apps/api/me/profile.json 404 (Not Found)
> send @ jquery.min.js:2
> ajax @ jquery.min.js:2
> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960
> (anonymous) @ dhis2.menu.ui.js:1266
> (anonymous) @ dhis2.menu.ui.js:1268
>
> jquery.min.js:2 GET http://localhost:9090/dhis/api
> /apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found)
> send @ jquery.min.js:2
> ajax @ jquery.min.js:2
> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955
> (anonymous) @ dhis2.menu.ui.js:1266
> (anonymous) @ dhis2.menu.ui.js:1268
>
> *This is the script as per the DHIS2 documentation:-*
>
> 
> <!-- DHIS2 Settings initialization for a baseUrl that is used for the menu
> -->
> window.dhis2 = window.dhis2 || {};
> dhis2.settings = dhis2.settings || {};
> dhis2.settings.baseUrl = 'dhis';
> 
>
> *This is the script with the relative path I am using:-*
>
> 
>  
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
> <disclai...@hisp.org> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> _______
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Developer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] XML import bug

2016-10-18 Thread Viet Nguyen
Hi Sam,

I have applied a fix for this issue on 2.25

Please try again.

Regards,


On Tue, Oct 18, 2016 at 12:23 PM, Viet Nguyen <v...@dhis2.org> wrote:

> Hi Sam,
>
> Can you try to  use the full object name "dataElementCategoryCombo"
> instead of "categoryCombo" and try again. It works on my local.
>
> Need more investigation to understand why the short name does not work
> though.
>
> Regards.
>
>
>
> On Mon, Oct 17, 2016 at 9:55 PM, Sam Johnson <samuel.john...@qebo.co.uk>
> wrote:
>
>> Hi Devs,
>>
>>
>>
>> The problem I reported yesterday has actually turned out to be what I
>> think is a new bug in 2.25, which is stopping XML imports for data elements.
>>
>>
>>
>> No matter what I do, *any attempt at an XML import of data elements
>> seems to throw the error “**DataElementCategoryCombo Missing required
>> property `categoryCombo`”*, even if a valid CategoryCombo is supplied.
>> The same XML import works fine in 2.21.
>>
>>
>>
>> To reproduce on play.dhis2.org:
>>
>> · Using the import/export module, do an XML export of data
>> elements only.
>>
>> · Delete all data elements from the XML except DE_1148614 (which
>> uses the default CategoryCombo), and change the user of that data element
>> to .
>>
>> · To circumvent a couple of other export/import bugs:
>> 1. delete the three ‘<’ characters (which have been exported as plaintext
>> instead of )
>> 2. delete the  tags (I have no idea why these tags are
>> failing)
>>
>> · Import this XML file back into play.dhis2.org.
>>
>>
>>
>> The import fails, and the import summary has the error message 
>> “DataElementCategoryCombo
>> Missing required property `categoryCombo`” – despite the fact that the
>> data element has the default categoryCombo id.
>>
>>
>>
>> I’ve attached the XML I extracted from play.dhis2.org to speed up
>> testing.  I’d be very grateful if you could look into this urgently, as I
>> can’t currently do XML imports into my 2.25 instance.
>>
>>
>>
>> Many thanks,
>>
>>
>>
>> Sam.
>>
>>
>>
>>
>>
>> *From: *Dhis2-devs <dhis2-devs-bounces+samuel.johnson=
>> qebo.co...@lists.launchpad.net> on behalf of Sam Johnson <
>> samuel.john...@qebo.co.uk>
>> *Date: *Monday, 17 October 2016 at 04:54
>> *To: *DHIS2 Developers <dhis2-devs@lists.launchpad.net>
>> *Cc: *Rodolfo Melia <rodolfo.me...@knowtechture.com>
>> *Subject: *[Dhis2-devs] FW: Null pointer exception calling
>> .../api/me/programs
>>
>>
>>
>> Hi all,
>>
>>
>>
>> I’m trying to produce a generic EventCapture XML config that can be
>> imported into any DHIS2 instance, which requires the data elements and
>> program to use the default CategoryCombo of the target instance.
>>
>>
>>
>> My understanding from the documentation (and the email thread below) is
>> that if the CategoryCombo for a data element is null, then during metadata
>> import the data element will automatically be assigned the local ‘default’
>> CategoryCombo; the problem is that I can’t figure out how to represent this
>> ‘null’ CategoryCombo in the XML. I’ve tried:
>>
>> · simply removing all  tags from the data
>> elements in the XML;
>>
>> · using ;
>>
>> · using 
>>
>> · using .
>>
>>
>>
>> In 2.25, all of these throw the error “DataElementCategoryCombo Missing
>> required property `categoryCombo`”…  How can I get these data elements to
>> take on the local ‘default’ CategoryCombo as the XML is loaded?
>>
>>
>>
>> Many thanks for any help anyone is able to give!
>>
>>
>>
>> Regards, Sam.
>>
>>
>>
>>
>>
>>
>>
>> *From: *Dhis2-devs <dhis2-devs-bounces+samuel.johnson=
>> qebo.co...@lists.launchpad.net> on behalf of Rodolfo Melia <
>> rme...@knowming.com>
>> *Date: *Monday, 9 May 2016 at 09:37
>> *To: *Lars Helge Øverland <l...@dhis2.org>
>> *Cc: *Adebusoye Anifalaje <bus...@baosystems.com>, DHIS2 Developers <
>> dhis2-devs@lists.launchpad.net>, JM Alcantara <jmalcanta...@gmail.com>
>> *Subject: *Re: [Dhis2-devs] Null pointer exception calling
>> .../api/me/programs
>>
>>
>>
>> Noted - we look forward to get a resolution to the setting of CatCombo to
>> 'default' in

Re: [Dhis2-devs] XML import bug

2016-10-17 Thread Viet Nguyen
 that avoids re-starting
> tomcat (which makes the necessary correction at start-up) is to make sure
> that when importing DEs, we set the CatCombo to default in the XML/ CSV.
>
>
>
>
>
> Correct.
>
>
>
>
>
> Lars
>
>
>
> R
>
>
> *Rodolfo Meliá*
>
> *Principal  |  *rme...@knowming.com
>
> Skype: rod.melia  |  +44 777 576 4090  |  *+1 708 872 7636
> <%2B1%20708%20872%207636>*
>
> www.knowming.com
>
>
>
> On 9 May 2016 at 08:19, Morten Olav Hansen <mor...@dhis2.org> wrote:
>
> And yes, we don't allow null in the categoryCombo field from 2.23 and
> upwards
>
>
> --
>
> Morten Olav Hansen
>
> Senior Engineer, DHIS 2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Mon, May 9, 2016 at 2:15 PM, Morten Olav Hansen <mor...@dhis2.org>
> wrote:
>
>
>
> On Mon, May 9, 2016 at 1:47 PM, Lars Helge Øverland <l...@dhis2.org>
> wrote:
>
> *Morten* do you think you could comment?
>
>
> Hi, these kinds of issues are fixed in our new importer (available in
> 2.23), for now I would include the default category combo. When you say
> Import, are you creating this payload yourself, or is it coming from
> another system?
>
> --
>
> Morten Olav Hansen
>
> Senior Engineer, DHIS 2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
>
>
>
> --
>
> Lars Helge Øverland
>
> Lead developer, DHIS 2
>
> University of Oslo
>
> Skype: larshelgeoverland
>
> l...@dhis2.org
>
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program translations are not working in 2.24

2016-10-14 Thread Viet Nguyen
Hi Paulo,

That api endpoint is removed as translations for an object is now a part of
the object itself.

Please see this document
<https://dhis2.github.io/dhis2-docs/master/en/developer/html/dhis2_developer_manual_full.html#webapi_translation>
for
more details.

Regards,


On Fri, Oct 14, 2016 at 12:43 AM, Paulo Grácio <paulogra...@gmail.com>
wrote:

> Hi, shouldn't this work? https://play.dhis2.org/demo/api/24/translations
>
> -- Paulo
>
> On Tue, Oct 11, 2016 at 4:44 AM Viet Nguyen <v...@dhis2.org> wrote:
>
>> Hi Archana,
>>
>> This should be fixed now in 2.24.
>>
>> Regards,
>>
>>
>> On Mon, Oct 10, 2016 at 6:58 PM, Archana Chillala <
>> archa...@thoughtworks.com> wrote:
>>
>> Thank you, Viet.
>>
>> Archana Chillala
>> Application Developer
>> Email archa...@thoughtworks.com
>> Telephone +91 9100960533 <+91+9100960533>
>> [image: ThoughtWorks]
>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>>
>> On Mon, Oct 10, 2016 at 5:23 PM, Viet Nguyen <v...@dhis2.org> wrote:
>>
>> Hi Archana,
>>
>> Sorry for late reply.
>>
>> I have tested and confirm this is a bug for 2.24. Will apply the fix and
>> update you shortly.
>>
>> Regards,
>>
>>
>>
>> On Mon, Oct 10, 2016 at 4:26 PM, Archana Chillala <
>> archa...@thoughtworks.com> wrote:
>>
>> Hi Team,
>>
>> Program translations are working in 2.25, but not on 2.24. Could you
>> please backport the fix to 2.24 as well.
>>
>> Archana Chillala
>> Application Developer
>> Email archa...@thoughtworks.com
>> Telephone +91 9100960533 <+91+9100960533>
>> [image: ThoughtWorks]
>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>>
>> On Thu, Sep 29, 2016 at 6:31 PM, Anilkumar Kodi <
>> anilk...@thoughtworks.com> wrote:
>>
>>
>> Hi all,
>>
>> Any Update on this?
>>
>>
>> On Tue, Sep 27, 2016 at 4:42 PM, Anilkumar Kodi <
>> anilk...@thoughtworks.com> wrote:
>>
>> To add to the same, We could see the translations in 'translation' table,
>> but we're guessing it should be available in objecttranslation table and
>> there should have mapping in programtranslation or programstagetranslation
>> to get translations in UI.
>>
>> On Tue, Sep 27, 2016 at 4:31 PM, Anilkumar Kodi <
>> anilk...@thoughtworks.com> wrote:
>>
>> Hi Devs,
>>
>> Translations for programs, program stages and Program Stage sections are
>> not working in DHIS 2.24 version. Even if translations exist, they're not
>> showing up on the UI. But, the same is working in trunk.  Could you help
>> fix it in 2.24 as well.
>>
>>
>> Thanks,
>> Anil Kumar Kodi.
>>
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>>
>> --
>>
>> Viet Nguyen
>> Software Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>
>>
>>
>>
>> --
>>
>> Viet Nguyen
>> Software Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>


-- 

Viet Nguyen
Software Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program translations are not working in 2.24

2016-10-10 Thread Viet Nguyen
Hi Archana,

This should be fixed now in 2.24.

Regards,


On Mon, Oct 10, 2016 at 6:58 PM, Archana Chillala <archa...@thoughtworks.com
> wrote:

> Thank you, Viet.
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>
> On Mon, Oct 10, 2016 at 5:23 PM, Viet Nguyen <v...@dhis2.org> wrote:
>
>> Hi Archana,
>>
>> Sorry for late reply.
>>
>> I have tested and confirm this is a bug for 2.24. Will apply the fix and
>> update you shortly.
>>
>> Regards,
>>
>>
>>
>> On Mon, Oct 10, 2016 at 4:26 PM, Archana Chillala <
>> archa...@thoughtworks.com> wrote:
>>
>>> Hi Team,
>>>
>>> Program translations are working in 2.25, but not on 2.24. Could you
>>> please backport the fix to 2.24 as well.
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archa...@thoughtworks.com
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>>>
>>> On Thu, Sep 29, 2016 at 6:31 PM, Anilkumar Kodi <
>>> anilk...@thoughtworks.com> wrote:
>>>
>>>>
>>>> Hi all,
>>>>
>>>> Any Update on this?
>>>>
>>>>
>>>> On Tue, Sep 27, 2016 at 4:42 PM, Anilkumar Kodi <
>>>> anilk...@thoughtworks.com> wrote:
>>>>
>>>>> To add to the same, We could see the translations in 'translation'
>>>>> table, but we're guessing it should be available in objecttranslation 
>>>>> table
>>>>> and there should have mapping in programtranslation or
>>>>> programstagetranslation to get translations in UI.
>>>>>
>>>>> On Tue, Sep 27, 2016 at 4:31 PM, Anilkumar Kodi <
>>>>> anilk...@thoughtworks.com> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> Translations for programs, program stages and Program Stage sections
>>>>>> are not working in DHIS 2.24 version. Even if translations exist, they're
>>>>>> not showing up on the UI. But, the same is working in trunk.  Could you
>>>>>> help fix it in 2.24 as well.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Anil Kumar Kodi.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>>
>> Viet Nguyen
>> Software Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>
>


-- 

Viet Nguyen
Software Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program translations are not working in 2.24

2016-10-10 Thread Viet Nguyen
Hi Archana,

Sorry for late reply.

I have tested and confirm this is a bug for 2.24. Will apply the fix and
update you shortly.

Regards,



On Mon, Oct 10, 2016 at 4:26 PM, Archana Chillala <archa...@thoughtworks.com
> wrote:

> Hi Team,
>
> Program translations are working in 2.25, but not on 2.24. Could you
> please backport the fix to 2.24 as well.
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>
> On Thu, Sep 29, 2016 at 6:31 PM, Anilkumar Kodi <anilk...@thoughtworks.com
> > wrote:
>
>>
>> Hi all,
>>
>> Any Update on this?
>>
>>
>> On Tue, Sep 27, 2016 at 4:42 PM, Anilkumar Kodi <
>> anilk...@thoughtworks.com> wrote:
>>
>>> To add to the same, We could see the translations in 'translation'
>>> table, but we're guessing it should be available in objecttranslation table
>>> and there should have mapping in programtranslation or
>>> programstagetranslation to get translations in UI.
>>>
>>> On Tue, Sep 27, 2016 at 4:31 PM, Anilkumar Kodi <
>>> anilk...@thoughtworks.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> Translations for programs, program stages and Program Stage sections
>>>> are not working in DHIS 2.24 version. Even if translations exist, they're
>>>> not showing up on the UI. But, the same is working in trunk.  Could you
>>>> help fix it in 2.24 as well.
>>>>
>>>>
>>>> Thanks,
>>>> Anil Kumar Kodi.
>>>>
>>>
>>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

Viet Nguyen
Software Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1585033] Re: Validation rule Translation left side and right side

2016-06-29 Thread Viet Nguyen
The issue is because they try to enter the name of the validation rule
in Lao language ( left side and right side expression  as in the
screenshots that Nghia provided )

Then in validationAction.java we use the whole OrganisationUnit object
as the key of the validationResults Map. I think the object has some
different attributes when the language is changed, so in result we can't
get the element from the map.

I have changed the map to use UID instead of the whole object and it's
working fine.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  Fix Committed

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

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


[Dhis2-devs] [Bug 1585033] Re: Validation rule Translation left side and right side

2016-06-28 Thread Viet Nguyen
** Changed in: dhis2
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  Fix Committed

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

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


[Dhis2-devs] [Bug 1585033] Re: Validation rule Translation left side and right side

2016-05-26 Thread Viet Nguyen
Hi Nghia,

Do you have any error message that we can have a look ? Can be
javascript or server error  ?

Also can you provide the string ( in Lao ) that you put into description
? Or a screenshot of what have been entered into the form.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

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


Re: [Dhis2-devs] saving value in name-based module

2010-08-04 Thread Viet Nguyen
Hi,

As I know , in India we only work on the custom data entry screen, and it's
working fine.

On Wed, Aug 4, 2010 at 2:14 PM, Abyot Gizaw aby...@gmail.com wrote:

 Hi all,

 Has anyone tested whether or not value saving is working properly in the
 name-based module? A lot has been changed since the last time I worked with
 it and I think there is a mix-up between values and dates.

 Bharath/Veit, could you please confirm what we have is a properly working
 one - and is this the one we have in the pilot where people are collecting
 data with?

 Thank you
 Abyot.


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




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


Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 1785: Audit trail logging functions for DataSet, OrganisationUnit, User modules.

2010-04-21 Thread Viet Nguyen
No bean named 'org.hisp.dhis.user.CurrentUserService' is defined

That bean is defined in   dhis-service-user-hibernate module
This can be solved by add the dependency in the dhis-service-core pom file

dependency
  groupIdorg.hisp.dhis/groupId
  artifactIddhis-service-user-hibernate/artifactId
/dependency

But as discussed , I will have to apply AOP for this audit trail logging,
then I will remove the CurrentUserService from other service classes that
use audit logging ( User, DataSet, Orgunit ) , then this error will be
removed.
Lars, is it ok to change the  pom file  just for the time being ?


On Wed, Apr 21, 2010 at 2:13 PM, Quang Nguyen quangnguyen...@gmail.comwrote:

 On Mon, Apr 19, 2010 at 4:56 PM,  nore...@launchpad.net wrote:
  
  revno: 1785
  committer: Viet v...@viet-laptop
  branch nick: trunk
  timestamp: Mon 2010-04-19 16:54:45 +0700
  message:
   Audit trail logging functions for DataSet, OrganisationUnit, User
 modules.

 Hi Viet,

 Seems this commit broke all tests in dhis-service-core.
 Enclosed is the surefine reports. Could you please have a look?

 Cheers,
 Quang

  added:
 
  
 dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
 
  
 dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
  modified:
 
  
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
 
  
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
 
  
 dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
 
  
 dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
 
  
 dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
 
  
 dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
 
  
 dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
 
  
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
 
  
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
 
  
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
 
  
 dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
 
  
 dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
 
  
 dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
 
  
 dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
 
  
 dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
  The size of the diff (1144 lines) is larger than your specified limit of
 1000 lines
 
  --
  lp:dhis2
  https://code.launchpad.net/~dhis2-devs-core/dhis2/trunkhttps://code.launchpad.net/%7Edhis2-devs-core/dhis2/trunk
 
  Your team DHIS 2 developers is subscribed to branch lp:dhis2.
  To unsubscribe from this branch go to
 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscriptionhttps://code.launchpad.net/%7Edhis2-devs-core/dhis2/trunk/+edit-subscription
 
  ___
  Mailing list: 
  https://launchpad.net/~dhis2-devshttps://launchpad.net/%7Edhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : 
  https://launchpad.net/~dhis2-devshttps://launchpad.net/%7Edhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

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




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


Re: [Dhis2-devs] Pagination patch

2010-04-20 Thread Viet Nguyen
Hi Jason,

I planed to move this to common ... but...somehow forgot it sorry :(
Will do it  asap.

Something I would like to note here  for  sorting and filter functions.

When we apply the paging,  we need to sort from database, so there will be
many changes in  service  methods.
And for filter function,   this is the most thing I have been worry about .
Because we should not just filter  in current page. I think we need to use
ajax here.
At this point,  filter would be similar to search function, the only
different thing is  it effects on the fly.
When user type  something in filter text box, we get the result from
database, then sort  and paging  that list, then return to the view.

What do you think about this ?
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 1785: Audit trail logging functions for DataSet, OrganisationUnit, User modules.

2010-04-19 Thread Viet Nguyen
://code.launchpad.net/%7Edhis2-devs-core/dhis2/trunk
 
  Your team DHIS 2 developers is subscribed to branch lp:dhis2.
  To unsubscribe from this branch go to
 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscriptionhttps://code.launchpad.net/%7Edhis2-devs-core/dhis2/trunk/+edit-subscription
 
  ___
  Mailing list: 
  https://launchpad.net/~dhis2-devshttps://launchpad.net/%7Edhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : 
  https://launchpad.net/~dhis2-devshttps://launchpad.net/%7Edhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

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




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


Re: [Dhis2-devs] [Bug 547086] [NEW] dhis14-import-datasets-20 characters

2010-03-25 Thread Viet Nguyen
On Thu, Mar 25, 2010 at 11:01 PM, jason.p.pickering 
jason.p.picker...@gmail.com wrote:

 Public bug reported:

 DHIS 1.4 file imports will allow Dataset names with more than 20
 characters while DHIS2 does not. The import works, but then when you
 edit a dataset, a validation message says that the dataset name can be
 no longer than 20 characters. You must then change the name of the
 dataset in order to save any changes

 ** Affects: dhis2
 Importance: Undecided
 Status: New

 --
 dhis14-import-datasets-20 characters
 https://bugs.launchpad.net/bugs/547086
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.

 Status in DHIS 2 - District Health Information Software: New

 Bug description:
 DHIS 1.4 file imports will allow Dataset names with more than 20 characters
 while DHIS2 does not. The import works, but then when you edit a dataset, a
 validation message says that the dataset name can be no longer than 20
 characters. You must then change the name of the dataset in order to save
 any changes



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


I have just had a look. It seems you are talking about short name.

Also looked at other objects . There are changes of the length of some
fields  in hibernate file.

I will have to update those changes for client validation.

Will update you when I'm done.

Regards.

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


Re: [Dhis2-devs] [Bug 541788] [NEW] Testing for Date formatted text field validation working not well formed - Data entry

2010-03-22 Thread Viet Nguyen
On Mon, Mar 22, 2010 at 10:42 AM, Hieu Dang Duy
hieu.hispviet...@gmail.comwrote:

 Hi Viet,

 Many thanks for working hardly on this bug. It runs fine ! But there is
 still English in hard-code.

 P.S: The key-up event is well-done in English setting only.
 --
 Hieu.HISPVietnam
 Good Health !


Hi Hieu,

Could you please take a look at this file :

dhis-web-commons-resources/dhis-web-commons/util/validate/message_locale.js

You can see all the messages in English.

So if you want Vietnamese messages, you have to create a  javascript array
of messages in Vietnamese. Just follow the format of the English one.

Regards,

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


Re: [Dhis2-devs] [Bug 541788] [NEW] Testing for Date formatted text field validation working not well formed - Data entry

2010-03-19 Thread Viet Nguyen
On Fri, Mar 19, 2010 at 4:20 PM, Viet Nguyen phamquocv...@gmail.com wrote:



 On Fri, Mar 19, 2010 at 4:05 PM, Hieu Duy Dang hieu.hispviet...@gmail.com
  wrote:

 Public bug reported:

 I verified a date string with format is '-MM-dd' for each date text
 field. The validation rule for this would work effectively when using the
 default setting as English interface. But this one would not well done or
 not working if I change the user setting to other language. Please reviewing
 and fixed it again as soon as possible.
 Thank you !


 If you are using jquery validate plugin then you need to define Vietnamese
 error messages in the file

  web-common-resources/util/validate/message_locale.js

 Regards,




OK, I will set the  English as the default messages in case you don't have
Vietnamese messages.

Fix will be committed soon.

Regards,


  ** Affects: dhis2
 Importance: Undecided
 Status: New

 --
 Testing for Date formatted text field validation working not well formed -
 Data entry
 https://bugs.launchpad.net/bugs/541788
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.

 Status in DHIS 2 - District Health Information Software: New

 Bug description:
 I verified a date string with format is '-MM-dd' for each date text
 field. The validation rule for this would work effectively when using the
 default setting as English interface. But this one would not well done or
 not working if I change the user setting to other language. Please reviewing
 and fixed it again as soon as possible.
 Thank you !



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




 --
 Viet Nguyen




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


[Dhis2-devs] [Bug 513789] Re: Program Stages History/Plan in Patient Module show Complited about partially entered data.

2010-03-18 Thread Viet Nguyen
Fixed this.

One point to note here :

A program stage can have some compulsory data elements. So this program
stage can be completed after all the compulsory had data, and not
compulsory data elements can be empty.

-- 
Program Stages History/Plan in Patient Module show Complited about partially 
entered data.
https://bugs.launchpad.net/bugs/513789
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: New

Bug description:
In Name-Based Data Records-- Data Entry, here we are selectiong specific 
organisation unit, Specific Programe and  specific programe stage than it 
display the data entry screen for that. Now for example if a program stage has 
5 attributes and only one is filled till now than programe stage history plan 
will show it Complited with date inspite of 4 attributes entry is still left. I 
think it should show complited only when all the entry get finished.



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


[Dhis2-devs] [Bug 513789] Re: Program Stages History/Plan in Patient Module show Complited about partially entered data.

2010-03-18 Thread Viet Nguyen
** Changed in: dhis2
   Status: New = Fix Committed

-- 
Program Stages History/Plan in Patient Module show Complited about partially 
entered data.
https://bugs.launchpad.net/bugs/513789
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: Fix Committed

Bug description:
In Name-Based Data Records-- Data Entry, here we are selectiong specific 
organisation unit, Specific Programe and  specific programe stage than it 
display the data entry screen for that. Now for example if a program stage has 
5 attributes and only one is filled till now than programe stage history plan 
will show it Complited with date inspite of 4 attributes entry is still left. I 
think it should show complited only when all the entry get finished.



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


Re: [Dhis2-devs] Transactional for business logic code

2010-03-16 Thread Viet Nguyen
2010/3/16 Lars Helge Øverland larshe...@gmail.com



 On Mon, Mar 15, 2010 at 7:47 AM, Viet Nguyen phamquocv...@gmail.comwrote:


 Hi,

 I have a problem while doing this patient module that I want to share with
 you.

 Current, I do all the business logic code on action class.

 For example : I save patient, then save attributes, identifiers and
 relationship of that patient, all of those actions are called from action
 class. By this way, transaction can not be applied.

 So I want to put those things to service class, or another layer, I'm not
 sure what is the best for current frame work.

 I may create a method createPatient (.. ) in service class, and pass all
 needed parameters that I got from action class.

 This method may throw a custom exception, or return a boolean value, to
 let the action class know whether the create patient action is successful or
 not .

 So.. should I do this ? or keep current approach ?

 Please give some advices.


 Hi Viet,

 I had a look at addPatientAction and I can see you are mostly assembling
 input params from the form, creating objects and saving those using the
 service api. This kind of activity is the responsibility of the presentation
 layer, so I don't think too much of that could be moved to the service
 layer.

 Regarding identifiers I see that Patient has an association to a collection
 of Identifiers. This can be defined as a cascading association in
 hibernate. Then you can populate your Patient object with those identifiers
 and then there is no need to persist them manully first.

 What might be feasible is to create a service method that takes the rest of
 the assembled objects, something like

 addPatient( Patient, CollectionAttributeValue,
 CollectionRelationShipType )

 With this you can take care of all of the saving in a transactional service
 method.

 Another comment, I see you update the patient multiple times in the action
 class. Thats considered bad practice, hopefully I won't be necessary if we
 refactor a bit. And its not really necessary since we use the
 open-session-in-view spring interceptor as it will be dirty-checked
 automatically by hibernate as you perform saving of the other objects.


 Lars



Thanks,

I'm trying to improve those codes like you said.

Will update to you when I'm done.

Regards,

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


[Dhis2-devs] Transactional for business logic code

2010-03-15 Thread Viet Nguyen
Hi,

I have a problem while doing this patient module that I want to share with
you.

Current, I do all the business logic code on action class.

For example : I save patient, then save attributes, identifiers and
relationship of that patient, all of those actions are called from action
class. By this way, transaction can not be applied.

So I want to put those things to service class, or another layer, I'm not
sure what is the best for current frame work.

I may create a method createPatient (.. ) in service class, and pass all
needed parameters that I got from action class.

This method may throw a custom exception, or return a boolean value, to let
the action class know whether the create patient action is successful or not
.

So.. should I do this ? or keep current approach ?

Please give some advices.

Thank you,

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


Re: [Dhis2-devs] Pagination patch

2010-03-09 Thread Viet Nguyen

 Hi Viet, this looks quite elegant..

 If the PagingUtil class is general, any chance we can move it to the
 dhis-support-system project so that it can be used by other modules if
 required later?

 Lars



Yeah, I can move the PageUtil class to dhis-support-system, paging.vm and
paging.css to common-resource.

If I remember correctly...I think you also have a RequestUtil class
somewhere

Actually, to get current request path I just call the method
request.getServletPath() , but I'm not sure  it works for all modules... so
I put it in a util class, then later I can modify that link ( maybe add or
remove a / , or something like that )

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


Re: [Dhis2-devs] Pagination patch

2010-03-09 Thread Viet Nguyen
2010/3/9 Viet Nguyen phamquocv...@gmail.com



 Hi Viet, this looks quite elegant..

 If the PagingUtil class is general, any chance we can move it to the
 dhis-support-system project so that it can be used by other modules if
 required later?

 Lars



 Yeah, I can move the PageUtil class to dhis-support-system, paging.vm and
 paging.css to common-resource.

 If I remember correctly...I think you also have a RequestUtil class
 somewhere

 Actually, to get current request path I just call the method
 request.getServletPath() , but I'm not sure  it works for all modules... so
 I put it in a util class, then later I can modify that link ( maybe add or
 remove a / , or something like that )

 --
 Viet Nguyen


Sorry, I forgot to mention the javascript methods.

function changePageSize( baseLink )
{
var pageSize = jQuery(#sizeOfPage).val();
window.location.href = baseLink +pageSize= + pageSize ;
}
function jumpToPage( baseLink )
{
var pageSize = jQuery(#sizeOfPage).val();
var currentPage = jQuery(#jumpToPage).val();
window.location.href = baseLink +pageSize= + pageSize +currentPage=
+currentPage;
}

So I guess, this will have to be moved to common-resources...
Should I create new file or put it in common.js ?

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


Re: [Dhis2-devs] Translation function - Stay at page after modified some thing

2010-03-08 Thread Viet Nguyen
On Mon, Mar 8, 2010 at 3:04 PM, Murodullo Latifov murodlati...@yahoo.comwrote:

 Hi all,

 In this connection I also implemented server side pagination for dhis. This
 could be used in Dataelement listing, patient records, etc. There is also
 search facility working with pagination to narrow down scope. It may need
 speed comparison with existing single listings and other pros and cons.

 regards,
 murod


Hi,

I'm also planing to implement a paging util for patient module.

May I see  your code  :-)


 --
 *From:* Hieu Dang Duy hieu.hispviet...@gmail.com
 *To:* Dhis2 dhis2-devs@lists.launchpad.net
 *Sent:* Mon, March 8, 2010 2:49:55 PM
 *Subject:* [Dhis2-devs] Translation function - Stay at page after modified
 some thing


 Dear all,

 May I give to devs a small suggestion like this:
 I think we should keep for non-redirecting page after we've got some of
 saving for the object's translated value (name, shortname, description, ect
 ...)
 In the original case, after pressed Save button system would redirect from
 the sub-page (*dhis/dhis-web-commons/i18n.action*) to the main page (*
 dhis-web-maintenance-datadictionary/dataElement.action*).
 But I realized that it would be very very inconvenient and waste of time if
 we have to add so many the other translated values of each object for each
 corresponding locale.

 For example:

 I've got a string as *Doctor* in *English*. And then, I want to add some
 of new translated values with *Bác sỹ* in *Vietnamese *or *醫生* in *Chinese
 *or *Доктор* in *Ukrainian*. So, in this case we must go to 3 times for
 doing the same page (*dhis/dhis-web-commons/i18n.action*).

 Thanks !

 --
 Hieu.HISPVietnam
 Good Health !


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




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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-03-04 Thread Viet Nguyen
Hi Abyot,

Any change you are making is fine with me as long as it makes sense to
broader use cases. The ID for example is better if we could keep it as it
was before. I remember the ID was made of organization unit code or short
name plus a 5 (or 6??) digit number. It was made like this on the assumption
that each registering unit will be a facility to serve a population of
hundred thousand and remember that our assumption is this system is going to
be used by the lowest possible health administrative units (at least as far
as registration is concerned). And whenever a migration occurs we have to
update the person's ID. We should only keep the UUID unique, unchanged and
one-to-one. So the patient ID should be somewhat floating --- it could also
be possible for a person to have more than one identifier.

Let others discuss about this , then I do the coding part.

Calculating birth date from a given age -  yes you will have conflicts if
all ages are calculated relative to the first of January (that is how it is
currently). But then your new approach makes sense if everyone if telling
age relative to the current date.

So this is not problem right :-)

And the relationship type - instead of assuming there will always be
parent/guardian vs child relationship, why don't you provide users with the
list of available relationships so that they can choose ?

This is all about validation. We give the user options for  choosing. Those
options should be correct on logical meaning ...
 IE: for the birthdate field, the rule is user can not select a date in the
future. So we can just don't display all the future dates in the calendar,
or let user choose then show error.

The same thing happen to this relationship type. User adding a
representative for a child, and we show them the relationship like  Child,
Husband, Mother, etc...  is not correct .. Of course user can choose what is
right. But on the side of the quality of an application, I think we should
filter this list.
We are not giving this software to STQC for testing now, but in the future I
think India team will have to do that.

There are some more functions that we plan to do :

** Paging *

The list  patients will get really big, like  thousands ... So paging
functionality is a must I think.

There are some options to do this :

   1. Paging on client side
   2. Paging on server side, but  ajax loading the page.
   3. Paging on server side, reload page.

I prefer option 3, because I  won't have to change too much  the current
layout ...

** Functionality for add a child after completing Delivery Stage*

In India, there is another requirement : for mother care  program, after
completing the Delivery stage, user want to add the child to the system
immediately . They want a pop up after click on complete button

I'm thinking of create a new page call addRelationShipPatient  , where user
can add a new patient/person that has relationship with another patient.  In
this situation is a mother and a child.

User can go to this page by click on a button Add new patient  in current
Patient Relationship Management page.

The addRelationShipPatient  page will be almost the same with the patient
registration screen. Just only some small changes :

   - Add a RelationShip type combo box on top of the form
   - Don't show a pop up for adding new patient when user check on  Is
   Under age , because we  already have the id of the patient .

By the way, this is just the beginning , there will be many more India
requirements that does not fit the gobal requirements. I think we should
have a solution for this...If we can not come to an end for any problem
working on both patient-branch and trunk at the same time is fine with me.

More things will come soon...

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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-03-03 Thread Viet Nguyen
Hi,

Just a quick update about Patient registration form functionality :

** Check duplicate : *

This function allow user to check for existing patient base on : name ,
birthdate, age, gender

If there is duplicate patient, a pop up will be showed, with the list of all
the duplicated patients.

From this pop up, user can have two options :


   1. Continue create the current patient. So there will be two patients
   with the same information like above. But their  identifiers must be
   different which will be checked later.
   2. User can choose a patient from the list duplicated patient to update
   information for him, by click on the button Update this patient that
   follow by each patient in the list. User will then be redirected to the
   Update Patient page.

** Under age patient* :

Under age patient can be understand as a child. The purpose of this field is
not to hard code the age to define a child, like  age  5  or age  15.

In the registration form, there is a check box named  Is Underage .  User
check on this check box to identify the patient is a child.  A pop up will
be showed after clicking.

The purpose of this pop up is :  user must choose a representative for this
child.  Because , some  identifiers that are mandatory ( can be defined in
Patient Identifier Type management page ) . But a child can not have those
identifier, so we have to inherit those identifier from the child's
representative.

Not all identifier can be inherited, you can defined a PatientIdentiferType
is able to inherit or not when creating it.  The field name is  Related
... ( God ...why didn't I use Inheritable  ) .

If a PatientIdentifierType with related = FALSE and mandatory = TRUE
then user must enter value for it.

Ok, back to the popup, there are two tabs :

   1. Search existing person : user can search for an existing patient in
   system to be the representative of the child.
   2. Add new person : said this is person, because this is not really a
   patient, this person is just giving identifier...not enrolling to any
   program, at least at this step. Of course the record is also saved to the
   patient table. The form just only include basic information ( name ,
   birthdate, gender.. ) and Identifiers.  No attributes is needed. Of course
   user can update attributes for this person later by the Update Patient page.

One problem in this function that I can not have enough time to do :

In the combo box Relationship Type, there should be Parent and Guardian, I
hard coded this. You should create two relationship type  with this
information before testing this function :

   A is to B : Guardian, B is to A : Child
   A is to B : Parent , B is to A : Child.

The list of relationship type should be get from the Relationship type
table. But if we put everything to the combo box, then user may choose
Husband, Wife, or even child...which is so wrong.

My plan is creating an object RelationshipGroup, which should be based on
the age...

Anyway, because we are late for releasing this version in India. so hard
code for now is the only solution. I will continue working on this, so
...please don't worry...

** System generated identifier :*

I looked at the id_gen module from OpenMRS. Well , they have a whole module
for this which has many functionality for manage system auto generated
identifier.

I can not have enough time for getting all of that. So what I did is just
get a piece of code that is used for generate a check digit for the ID.

The format that Indian team chose is :
[BirthDate][Gender][XX][checkdigit]

BirthDate : MMdd
Gender : Male  = 1 ; Female = 0
XX : a random number  with length = 6   ( 0 - 99 )
checkdigit :  generated using Luhn Algorithm ( thanks to OpenMRS guys )

I also changed the way that Abyot generate the birthdate from age ( when
user only enter age ) .
It is :todayCalendar.add( Calendar.YEAR, -1 * age );
What Abyot did is
  todayCalendar.set( Calendar.DATE, 1 );
  todayCalendar.set( Calendar.MONTH, Calendar.JANUARY );
  todayCalendar.add( Calendar.YEAR, -1 * age );
Because we generate the id base on birthdate , get current date should be
better.
Hope this is ok for Abyot

Each country will have different formats...so I think for current we just
can change code when implementing in the country. Building a module for this
would take time

Finally,  but almost those things only follow India 's requirements.
Please give comment then we can try to make it more generic...

Regards,

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


Re: [Dhis2-devs] Error DHIS2 building

2010-03-02 Thread Viet Nguyen
2010/3/2 Quang Nguyen quangnguyen...@gmail.com

 Sorry, I forgot to attach the file :)

 2010/3/2 Quang Nguyen quangnguyen...@gmail.com

 Hi all,

 2010/3/2 Lars Helge Øverland larshe...@gmail.com


 Not sure about this... Could you send the surefire report files in the
 target folder?



 Enclosed is the surefine reports.

 This happens because the packaging type for the excel-reporting module was
 set to JAR and not WAR.

 VN uses this setting for debugging and sometimes forgets to put it
 back...



 We should set it back to WAR, shouldn't we?




 3. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal,
 it's okay to run the project. However I got out of memory exception as soon
 as I logged-in to the system (still error when *JAVA_OPTS *environment
 variable was set).

 I still got the out of memory exception. My computer has 3GBs of memory,
 running Windows 7, jdk1.6.0_16, maven 2.2.1 with* *JAVA_OPTS=-Xms256m
 -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any
 ideas?

 Thank you.
 Best regards,
 Quang



Hi,

First, I think you should  upgrade to jdk1.6.0_17

Second , did you add this variable  MAVEN_OPTS = -Xms256m -Xmx512m ?

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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-03-01 Thread Viet Nguyen
Hi,


On Mon, Mar 1, 2010 at 11:13 AM, Chau Thu Tran
tran.hispviet...@gmail.comwrote:

 Hi Abyot and Others,

 I tested the* UpdatePatientAttributeValues *function. It doesn't show
 anything. I think if we have *EditPatient*, we don't need *
 PatientAttributeValues*.


Yeah, this is a bug, we changed Attribute object so this function should be
updated . I will fix that.
Let's keep it there for a while, later when everything is fine then we can
have a look at all the functions and decide whether to keep it or not.



 *About enter name for Patient and Patient attribute*
   - The validate function ( *required_group {validate...*)  doesn't
 allow to enter Vietnamese in Add/Update patient, Add/Update PatientAttribute
 ,
 *VD: Châu -- Warning message: Please Letters, numbers, spaces and
 underscores only.*


This is just rule of jquery validation, I can remove that .


   -  For mother, we have attributes, such as age, pre-pregnancy, 
 *housenumber,
 street name*. We want to enter *street name* next to *housenumber*. So, I
 think  we have to sort attributes in groups ?


Yeah sure. there should be a sort-order while assign attribute to attribute
group.


 *Patient Identifier Type*
   - In Add Patient form, only show *Patient Identifier Type* when
 object has age *less then 5*. In Mother-Child Record in Vietnam, besides
 the children object, we also manage children *less then or equal 15*. How
 do you think if we have a parameter ( user input ) for it ?


Current, we have added a boolean  field underAge in Patient object.  In
the registration form, there will be a checkbox call Is Underage
user have to check that to define this patient is a child.  By this way, we
don't hardcode  the age 5 or  15.

I'm working on this function, will update you when i finish.



 *Dataentry*
 *Program Stages History/Plan*
   *Sau khi sanh (After to born):*  Scheduled For 2010-02-04   *Kết quả
 (Result):*  Scheduled For 2010-02-04   *Trước khi sanh (Before to born):* 
 Scheduled For 2010-02-01
 *
 *
 The stages aren't listed in order. I want them to list, as follows : Before
 - After - Result.


Have not touched this yet, Will have a  look.



 Yes/No datatype shown dataentry is a combobox. How do you think if we use a
 checkbox ?


We can do this in the default dataetry, but not in custom dataentry.

In custom dataentry there is a checkbox right beside each entry field (
textbox or combobox ). If user check on this checkbox, means that the data
value has just been entered is provided by another facility.  So if we
replace boolean entryfield by a checkbox. there will be two checkboxes
that stay beside each other, I think it may confuse user.



 *- Programs for patient*

 Why don't assign program for patient when to add a new patient. And in the
 future, if the patient attends other programs, we will assign them again.


This should make the registration function becomes...complicated.
Current, we already put a lot of things into the patient registration form :
Patient Attributes , Patient Identifiers, under age things.
Program enrollment is not a step of Patient Registration. It should be done
after the registration I think.



 - *RelationShip*
 I can't create relationship between two objects.


It worked hereI will test it again...



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


[Dhis2-devs] Question about the Organisation Unit Close Date

2010-02-05 Thread Viet Nguyen
Hi,

I wonder what I have to do with this field , and also the  field Alow
entering data of the Organisation Unit .

As what I'm thinking is :

If an organisation unit is closed in real. User have to set the close date
for it.  Then we should automatically set the allow entering data to FALSE.


If  an organisation Unit is not allowing entering data. Then in the data
entry form. If user try to enter data for it. We should not allow them, and
show a popup to inform that this  orgUnit is closed.

Also the same  in Import data modules.

Is this right ?


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


Re: [Dhis2-devs] Patient Identifier Management functions

2010-02-04 Thread Viet Nguyen
Hi,

This id will be given to each patient, so it should be human readable.

I have just had a quick look at the  id_gen_module of OpenMRS . It would be
very nice if we can use that module for DHIS, as it has eveything we need
...

I will try to get source code and see what I can do.

On Thu, Feb 4, 2010 at 11:16 PM, Bob Jolliffe bobjolli...@gmail.com wrote:

 Hi Saptarshi


 On 4 February 2010 17:10, Saptarshi Purkayastha sun...@gmail.com wrote:

 Was just talking to Sundeep and Eric about the integration using the
 OpenMRS API just a few minutes back...
 It would be useful to talk to ppl here once again, if its on anyone's
 agenda and if Sundeep, Kristin and Jorn believe we can use the existing work
 by Abyot, Viet, Bharath etc in Patient module to use with the OpenMRS API.


 Probably should move this conversation to another thread.


 As for the ID generation thing, I was collaborating with Andy by modifying
 the registration module, but then Mike Seaton suggested he can build a
 separate id_gen module http://openmrs.org/index.php?title=Idgen_Module 
 instead
 of taking much modified registration workflow... It takes the good lessons
 learnt from id generation concepts and tries to keep it simple


 This looks promising.  Would be nice to be able to reuse this stuff.

 Cheers
 Bob


 ---
 Regards,
 Saptarshi PURKAYASTHA
 Director R  D, HISP India
 Health Information Systems Programme

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 2010/2/4 Ola Hodne Titlestad olati...@gmail.com


 2010/2/4 Lars Helge Øverland larshe...@gmail.com



 On Thu, Feb 4, 2010 at 3:38 PM, Ola Hodne Titlestad olati...@gmail.com
  wrote:

 Hi,

 Is there some reason for not simply reusing what OpenMRS has done in
 this area?

 Seems like we are dealing with a lot of fundamental patient level
 issues (not just in this thread) that I am sure have been discussed and
 taken care of already in a mature and widely used application like 
 OpenMRS.


 So what have they done in openmrs?


 Exactly the kind of question that needs to be asked. I am sure Saptarshi,
 having developed modules for OpenMRS would know, and if not there is an
 active openmrs mailing list and lots of documentation on their wiki, and the
 source code is available.

 A more long term question: Are we still planning to integrate this
 community system with OpenMRS as in e.g. using their API for patient
 management etc. or is that no longer the plan?

 Ola
 --

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



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



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




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


[Dhis2-devs] Patient Identifier Management functions

2010-02-01 Thread Viet Nguyen
Hi Abyot,

Do you have any plan for Patient Identifier Management  functions ?

Is it ok if i work on this ?

Regards,

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


Re: [Dhis2-devs] Pagination

2010-02-01 Thread Viet Nguyen
Hi,

That's great. This plugin also provides sorting function I think :)

By the way, if we gonna apply this, I suggest that we add a   Page Length
combox  which will have some predifined number of items in one page. So user
can choose how many items they want to see in one page. And that value can
also be saved to a cookie value for later visiting.

Regards,

On Mon, Feb 1, 2010 at 3:58 PM, Murodullo Latifov murodlati...@yahoo.comwrote:

 Sorry, here it is.



 - Original Message 
 From: Murodullo Latifov murodlati...@yahoo.com
 To: DHIS 2 developers dhis2-devs@lists.launchpad.net
 Sent: Mon, February 1, 2010 3:58:22 PM
 Subject: Pagination

 Hi all,

 I have developed client side pagination for one of modules we use here in
 Tajikistan (see attached screen-shot). Could be useful for patient modules,
 as many records would be added into the same table. I am using jquery plugin
 for this. Its quite easy task to add for other modules like list of data
 elements and so on. What do you think? Later we could move to server side
 pagination?

 regards,
 murod




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




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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-01-31 Thread Viet Nguyen
Hi,

The reason of not put the organisation unit in the System generated Patient
Id is :

An organisation unit can be changed the name. Or it can be splited into two
smaller organisation unit ( This is happening in India ) . Or even it can be
merge with another organisationUnit to make a bigger one 

So we are thinking of an algorithm to generate the id for the whole country,
but not depend on the organisation unit. It should only depend on patient
information and the time of creating...

On Mon, Feb 1, 2010 at 8:25 AM, Chau Thu Tran tran.hispviet...@gmail.comwrote:

 Hi,

 In Vietnam, code of patient likes this:
 - Set of characters dependent on the organisation unit
 - Set of digits, include date and number of patients in the day.

 
 Châu Thu Trân
 HISP Viet Nam
 Email: tran.hispviet...@gmail.com
 Cell phone: +84 97 324 1542
 


 On Sat, Jan 30, 2010 at 6:14 PM, Viet Nguyen phamquocv...@gmail.comwrote:

 Hi,

 Here are things that I've changed for patient - branch


- Add  Date of Enrollment Description , Date of Incident Description
for Program.  This is because those description is differ from each
program,  when user enroll to a program, we need to show them the
descriptions.
- Move blood group to Patient table.
- Merge Patient Attribute Group from trunk.
- Add Patient Attribute Option . This is for any attribute that can
have predefined value.
- Bring all attribute groups to patient registration screen.


 Tasks for next week :


- Check duplicate patient base on first name, last name, middle name,
birthdate, genre. If there is a patient existing,  display all the
information of that patient for user.
- If a child  5 years old. Then all of the identifier information
should take from mother / father / guardian , So we have to put that
person's name to identifier information.
- Bring all identifiers  to patient registration screen.
- System generated Random Unique Id.  Organisation Unit name should
not be in the Id.
- Patient Identifier  management.

 If there is anything that you think we can make it generic and merge to
 trunk, please tell.

 Regards,






 On Fri, Jan 29, 2010 at 2:06 PM, Chau Thu Tran 
 tran.hispviet...@gmail.com wrote:

 Hi Abyot,

 I assigned mandatory attributes under the patient registration screen.

 Please find enclosed the attached file to see patch file.

 Best regards,

 
 Châu Thu Trân
 HISP Viet Nam
 Email: tran.hispviet...@gmail.com
 Cell phone: +84 97 324 1542
 


 2010/1/29 Lars Helge Øverland larshe...@gmail.com



 On Thu, Jan 28, 2010 at 8:45 AM, Chau Thu Tran 
 tran.hispviet...@gmail.com wrote:

 Hi Abyot,

 I modify the source.

 Please find enclosed the attached file to see the patch.diff file.

 Best regards,


 Nice work Tran...





 --
 Viet Nguyen


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





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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-01-30 Thread Viet Nguyen
Hi,

Here are things that I've changed for patient - branch


   - Add  Date of Enrollment Description , Date of Incident Description  for
   Program.  This is because those description is differ from each program,
   when user enroll to a program, we need to show them the descriptions.
   - Move blood group to Patient table.
   - Merge Patient Attribute Group from trunk.
   - Add Patient Attribute Option . This is for any attribute that can have
   predefined value.
   - Bring all attribute groups to patient registration screen.


Tasks for next week :


   - Check duplicate patient base on first name, last name, middle name,
   birthdate, genre. If there is a patient existing,  display all the
   information of that patient for user.
   - If a child  5 years old. Then all of the identifier information should
   take from mother / father / guardian , So we have to put that person's name
   to identifier information.
   - Bring all identifiers  to patient registration screen.
   - System generated Random Unique Id.  Organisation Unit name should not
   be in the Id.
   - Patient Identifier  management.

If there is anything that you think we can make it generic and merge to
trunk, please tell.

Regards,





On Fri, Jan 29, 2010 at 2:06 PM, Chau Thu Tran
tran.hispviet...@gmail.comwrote:

 Hi Abyot,

 I assigned mandatory attributes under the patient registration screen.

 Please find enclosed the attached file to see patch file.

 Best regards,

 
 Châu Thu Trân
 HISP Viet Nam
 Email: tran.hispviet...@gmail.com
 Cell phone: +84 97 324 1542
 


 2010/1/29 Lars Helge Øverland larshe...@gmail.com



 On Thu, Jan 28, 2010 at 8:45 AM, Chau Thu Tran 
 tran.hispviet...@gmail.com wrote:

 Hi Abyot,

 I modify the source.

 Please find enclosed the attached file to see the patch.diff file.

 Best regards,


 Nice work Tran...





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


Re: [Dhis2-devs] Greetings + new DHIS patient module

2010-01-26 Thread Viet Nguyen
-xm:SI_SB_4:092009





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




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


[Dhis2-devs] Minor javascript cross-browser hack

2010-01-22 Thread Viet Nguyen
Hi,

Just a minor javascript cross-browser hack.

When adding an options to a select tag using javascript, I can see in DHIS
you are doing like this :

 optionComboSelector.add( option, null );

This will only work on gecko-based browsers. For IE ( tested with IE 8   7
) it will throw error ,  the right one should be like this :

 optionComboSelector.add( option ); // only one param

So the solution should be :

   try {
optionComboSelector.add( option, null );  // for gecko-based
browser...not tested with other webkit-based browsers ...
}catch(e){
optionComboSelector.add(option);  // just for IE
}

A common method in common.js should be useful.

Regards,

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


Re: [Dhis2-devs] Minor javascript cross-browser hack

2010-01-22 Thread Viet Nguyen
Hi,

If you want to use jQuery, I think the best way is create an array of string
then append them into the select tag

var options = [ ] ;

for( .. ) {
  options.push(option value='$id'$title/option);// collect items
}

jQuery(#selector).append(options.join());  // append a string into a
tag.



Regards,


2010/1/22 Lars Helge Øverland larshe...@gmail.com



 On Fri, Jan 22, 2010 at 12:16 PM, Viet Nguyen phamquocv...@gmail.comwrote:

 Hi,

 Just a minor javascript cross-browser hack.

 When adding an options to a select tag using javascript, I can see in DHIS
 you are doing like this :

  optionComboSelector.add( option, null );

 This will only work on gecko-based browsers. For IE ( tested with IE 8  
 7 ) it will throw error ,  the right one should be like this :

  optionComboSelector.add( option ); // only one param

 So the solution should be :

try {
 optionComboSelector.add( option, null );  // for gecko-based
 browser...not tested with other webkit-based browsers ...
 }catch(e){
 optionComboSelector.add(option);  // just for IE
 }

 A common method in common.js should be useful.

 Regards,




 OK thanks for pointing this out. There might be a centralised method for
 this in commons.js or lists.js. Is this already taken care of in jQuery, if
 so could we use that instead?




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


Re: [Dhis2-devs] Framework update

2010-01-21 Thread Viet Nguyen
Hi,

Spring now supports fully annotation stereotype, I hope you might consider
to apply that for dhis. Maybe we can use stereotype annotation for
Controller bean definition and reference... it might help reduce a lot of
time, because we just only have to define the  action class in struts.xml,
not beans.xml  And even better if we can apply for services and
hibernatestore layer.

For jQuery1.4, I don't think we should update now. Should wait for sometimes
when it become stable and all the plugins support that new version. As now
on the jquery mailing list  and jquery forum, some bugs are reported.

WindowGUI of bazaar is a pain experience to me. First time using bazaar , I
was happy when seeing the window gui. But then when i tried to commit , it
not only did not work, but also blocked all of my source code...forever ...
I never dared to try it again, happy with the command line now :-)

And if you do not know yet, another interesting news is  Java EE 6 will be
released soon ( in March I think )  with alot of new features, include
servlet 3.0 :-)

Regards,




2010/1/22 Lars Helge Øverland larshe...@gmail.com


 To devs, just a quick summary to those who do not yet know...

 - Spring 3 is released (even 3.0.1). Feature recap here:
 http://blog.springsource.com/2009/12/16/spring-framework-3-0-goes-ga Seems
 like there is no urgent need for us to upgrade but we might consider it for
 2.0.5.

 - jQuery 1.4 is released. They claim it is much faster and has more
 options: http://jquery14.com/day-01/jquery-14 New API docs here:
 http://api.jquery.com/

 (To you jquery gurus out there; should we upgrade now before doing more
 development with it?)

 - Bazaar is now in version 2.0.3. Seems a bit faster than before. Provides
 a new Windows GUI for those who like that.




 Lars


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




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


[Dhis2-devs] Getting Locale Code

2010-01-04 Thread Viet Nguyen
Hi,

I am trying to apply jQuery Validation plugin into dhis2 india branch.

For showing the error messages in different languages, I need a language
code. But could not find this code anywhere. So what I did is adding this
method  into I18n class:

public String getCurrentLocaleCode()
{
if( specificResourceBundle != null )
{
return specificResourceBundle.getLocale().getLanguage() + _ +
specificResourceBundle.getLocale().getCountry();
}
if( globalResourceBundle != null )
{
return globalResourceBundle.getLocale().getLanguage() + _ +
globalResourceBundle.getLocale().getCountry();
}
return null;
}

So ... is  this a good way ? If not, please suggest me a better way.

And I can also apply this plugin to global branch if you want.

Thanks,

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


Re: [Dhis2-devs] Christmas greetings

2009-12-24 Thread Viet Nguyen
Merry Christmas everyone :)

We do celebrate Christmas in Vietnam  ;-)

Although I'm not in Vietnam now 

Cheers

On Fri, Dec 25, 2009 at 12:08 AM, Bob Jolliffe bobjolli...@gmail.comwrote:

 Seasons greetings over Christmas - do you guys do Christmas in Vietnam?  If
 not take a break anyway :-)

 Cheers
 Bob

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




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


Re: [Dhis2-devs] [Bug 430657] Re: Date text field needs validation rule in data entry screen

2009-12-23 Thread Viet Nguyen
Hi,

I don't think a validation in model layer is a good idea. Because a
validator have to throw back to the view layer the error messages. If we
validate at model layer, then for validating, a parameter have to go from
view layer, through the controller to the model layer. Then if there would
be error, the messages will be throw back through 2 layers. I think its not
good for the framework.

From what I have been doing with my spring mvc project. I have some ideas
for this problem :

   - Create a custom action called EntityAction that can handle Add,
   Update and delete actions for one entity.
   - Validation can be a method of the action class or a separate class, but
   it should not be an action. It will be called right after the action
   accepting the request. Then only if the validation is success the action
   will call the corresponding method which can be add, update, delete or
   execute. If there is error, we can return the same view file include all the
   values of the parameter that were accepted before and the error messages.
   - For validating jobs, all the rules that are alidated at the view layer
   by javascript, I always have to validate them again at the controller layer.
   And I try to validate as much as I can at the view layer, because it will
   make the view layer becomes more user-friendly.

To apply those things, I think we will have many works to do, but they are
doable.

Hope this can help.

regards,


On Wed, Dec 23, 2009 at 6:44 PM, Jason Pickering 
jason.p.picker...@gmail.com wrote:

 Well, usually this would be the case, that there would be validation at the
 database level, but given the database agnostic nature of DHIS, I have no
 idea how or if this can be done.  I would think that the period 
 -MM-YY value should actually be stored as a real date type. Currently,
 I think it is only text. The same can be said for the datavalue table, which
 stores values as text, instead of having a datavalue table with multiple
 columns (one for integers, reals, booleans, text and so forth, similar to
 DHIS 1.4) , each with real db data types. Of course, placing other
 constraints at the db level is also possible, but have no idea how to do
 this with hibernate.



 2009/12/23 Bob Jolliffe bobjolli...@gmail.com

 2009/12/23 Lars Helge Øverland larshe...@gmail.com



 On Wed, Dec 23, 2009 at 4:01 AM, Hieu Dang Duy 
 hieu.hispviet...@gmail.com wrote:

 Dear Saptarshi,

 I'm not good at about security, I also knew that using javascript it's
 really not safe in web application. By the way, I have a small idea about
 this issue that. Not surely, have any configuration/setting about date in
 DHIS2 program ? Unless, I think we can make a new setting for this one.
 I meant we should make a pattern setting for date format, ie. -mm-dd
 for DataEntry module. Or can be expanding to use for our whole system.

 In that case, we can easily use any kind of validations with that
 pattern setting in either client-side (javascript) or server-side (java).

 Thanks for your suggestion !


 Hi,

 I would say that we should stick with -mm-dd for input for now, to me
 the added complexity of configurable date input formats justifies the
 benefit...

 Re validation, we do have server side validation for meta data like data
 elements, indicators, data set etc. A problem is that we have separate
 action classes for validation and adding/updating (this was done with
 separation-of-concerns in mind). This poses a threat since a malicious
 user could bypass this by turning off javascript in the browser or sending
 direct GET-requests. Btw I wouldn't say avoiding javascript validation is
 the answer, rather having both where its possible.


 Agreed it is not an either/or thing.  Validation at the browser and
 validation at the server actually serve two different purposes.  Client side
 validation is really a convenience to the user to prevent having to enter
 data only to find that the data is later rejected after the http post/get.
 Catching the validation problem early allows for a slicker and more friendly
 user interface.  But because it can be easily bypassed it is not a mechanism
 for protecting the integrity of data to be persisted and should not be used
 with that in mind.  That is the purpose of server side validation.  But of
 course we all know that 

 Sorry I haven't looked much at the validation action classes so I can't
 really comment much.  But shouldn't the validation be a function of the
 model layer (as low down as it can be pushed) and be un-bypassable?.  This
 way it also applies to data input from other sources than the web ui.

 Bob



 Lars

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



 

Re: [Dhis2-devs] [Bug 430657] Re: Date text field needs validation rule in data entry screen

2009-12-23 Thread Viet Nguyen
Hi,

As always there is not a single right and wrong answer here.  There are some
things (usually different things) that might need to be validated at
different levels of the application.  But things which might make a mess of
the model should be validated by the model (or the service layer as I see
Lars has just chiped in :-).  I'm not sure if I really buy the idea that
communication of problems at the model shouldn't percolate up to the UI.
Are we saying that from a UI perspective, an update, delete or add should
allows be assumed to just succeed?  Of course these will sometimes fail and
of course we have to feed that back up (whether by exception or return value
- whichever is least evil).


Its sure will be better if you have a validator at model layer. But I think
all the rules that you validate at model layer, also have to be validated at
controller  and view layer.  The data go from top to bottom layer, and my
point is, its must be validate as much as it can at each layer. I think of
each layer as a firewall, and for each layer the data is passing, it will be
more safe or reliable. User can by pass the javascript which is the view
layer, so the controller will be the main gate, and it should be responsible
for all the data that it passes to  the model layer. If there is an error in
the save, update, delete method, it should be an error related to the
database or the business logic of the application, not the data itself. And
this error also should not be throw directly to the user, there should be a
custom exception handler message.

Anyway, this is my first time discussing on this mailing list,  so .. just
sharing my opinion about this validation things  :)

@Lars: what about having a custom abstract action class that will overwrite
the execute method . It will  first call the validate abstract  method, then
call the handleRequest abstract  method, those abstract methods will be
implemented by extended action class. Something like this :

 public String execute()  throws Exception
 {
if(  validate() )
return  handleRequest();
else  return ERROR;
  }

Is this possible ?

2009/12/23 Lars Helge Øverland larshe...@gmail.com



 On Wed, Dec 23, 2009 at 5:42 PM, Bob Jolliffe bobjolli...@gmail.comwrote:

 As always there is not a single right and wrong answer here.  There are
 some things (usually different things) that might need to be validated at
 different levels of the application.  But things which might make a mess of
 the model should be validated by the model (or the service layer as I see
 Lars has just chiped in :-).  I'm not sure if I really buy the idea that
 communication of problems at the model shouldn't percolate up to the UI.
 Are we saying that from a UI perspective, an update, delete or add should
 allows be assumed to just succeed?  Of course these will sometimes fail and
 of course we have to feed that back up (whether by exception or return value
 - whichever is least evil).


 Just to clarify... Right now we do validation of things like uniqueness and
 non-null-ability in separate actions. If we push this down to the service
 layer I do believe that this should happen in a separate method. It could be
 the client/presentation layers responsibility to call that validation method
 before calling the business method. If the business method still fails we
 are dealing with insufficient validation or programming errors. In that case
 we could naturally handle that with a checked or unchecked exception which
 could be caught in the presentation layer. But I do think mixing validation
 and business logic code in the same method is not to separate concerns...

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




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


Re: [Dhis2-devs] [Bug 430657] Re: Date text field needs validation rule in data entry screen

2009-12-23 Thread Viet Nguyen
Hi Saptarshi,

It's an well accepted pattern in data driven application (like ours),
 validation should be done ideally at the model layer... and when I raised
 the point of not doing it in JavaScript, I meant not doing that as default.
 By default doing the validation in model layer and then second for better
 UI, lesser server load and other benefits, doing the JavaScript
 validation...

 Doing it in web actions is somewhat doing it in the Controller, which is
 what I originally meant as a bad design, where chances are we can/have gone
 wrong.



I'm not sure about your point. Lets skip the javascript by pass things and
talk about normal user. For them, the javascript validator should be more
user friendly.  Actually, the purpose of the javascript validator beside
data security  is user friendly and less request to the server.
What a common javascript validator should do is :

   - Validate the data  after user finished entering value for one text
   field. Then show the error when user change focus to another text field. By
   this way, user can know they made a mistake right after they finished
   entering the value and change it at once.
   - Do not allow user to commit the form unless all the validation rule are
   passed.

By those things, we can reduce the number of time that user will submit the
form. And there should be many more advance methods that we can do.  Like
the user can not type a character into a number text fieldetc..

I have fixed the validation bug from STQC in dhis india branch, just for the
maintanance module. Its still in progress but you can check out the latest
code , run the Add User form and see the result. I used the jquery validator
plugin. The only problem that i got is ... the language for the error
message... I have a file where I can defined all the error  messages in
different languages. But for that, I need the current language code...which
I could not find ...  Current, I have to ref the bean LocaleManager  and
then get the countryCode and languageCode from itwhich I think..is not a
really good way. The code should be somewhere in the interceptor...

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


Re: [Dhis2-devs] on the use of jQuery

2009-12-10 Thread Viet Nguyen
jQuery.metadata is a jQuery plugin  , its not included in jQuery.

I will try to add it into common-resources.

Thanks,

2009/12/10 Lars Helge Øverland larshe...@gmail.com



 We are already using jQuery so that's OK. Its located in
 dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util.

 Lars

 On Thu, Dec 10, 2009 at 10:41 AM, Abyot Gizaw aby...@gmail.com wrote:



 -- Forwarded message --
 From: Viet Nguyen phamquocv...@gmail.com
 Date: Thu, Dec 10, 2009 at 10:28 AM
 Subject: Re: [Branch ~dhis2-devs-core/dhis2/dhis-patient] Rev 825: Add
 DataEntryFormAssociation. This will allow DataEntryForm to associate with
 both DataSet and Pr...
 To: Abyot Gizaw aby...@gmail.com
 Cc: bharath kumar chbhara...@gmail.com, Lars Helge Øverland 
 larshe...@gmail.com, John lewis johnlewis.h...@gmail.com


 Hi Abyot,

 I commit new code. One thing is left to do is populating
 CalculatedDataElement in dataentryscreen. I will work on this after the demo
 for the ministry, as I am having a tight deadline for the aggregation things
 now.

 By the way, in the programStage's dataentryscreen design form. I used the
 javascript library : jQuery.metadata .

 It allow me do declare a custom attribute for a html tag and then get the
 value of that attribute. I think this library is very useful.  I even wanted
 to use it in the dataentryscreen for all the metadata info, which you are
 using span tag for them. But again, I do not want to change so much old
 codes.

 Please tell me what you think about this library . If its ok, I will use
 it later on.

 Thanks,



 On Thu, Dec 10, 2009 at 10:41 AM, bharath kumar chbhara...@gmail.comwrote:


 Hi Abyot,

 Sorry I didn't understand clearly.

 You are saying one dataset say dataset1 can have multiple dataentry
 screens like dataentryscreen1,dataentryscreen2,dataentryscreen3.

 When we select dataset1 in the dataentry module we should display these 3
 screens for dataentry?

 These 3 screens can have same dataelements or different dataelements?



 On Wed, Dec 9, 2009 at 9:53 PM, Abyot Gizaw aby...@gmail.com wrote:

 and also assigning multiple forms for datasets or programstages. For
 example a dataset might have dataelements having different
 categorycombos for such cases it makes sense to group those datalements
 having the same categorycombo together then create a form in the end
 such datasets will have a set of forms. So when displaying the dataentry
 screen we can display a list of forms and come up a nice looking dataentry
 screen.

 abyot.


 On Wed, Dec 9, 2009 at 5:59 AM, bharath kumar chbhara...@gmail.comwrote:

 Hi,


 Regarding DataEntryScreen, as we (Abyot  Me) discussed on his last
 visit we agreed to make CustomDataEntryScreen as Genric.

 For that what we started is:

 We changed DataEntryForm object to contain its id, name and html code
 only. (before it was bound with datasetid).
 All the CustomScreen associations we kept in another table *
 dataentryformassociation* which contains associationtablename(
 represents which object DataSet/ProgramStage etc), associationid (
 represents datasetid/programstage id), dataentryformid.

 *From the GUI:*
 If you goto dataset screen there will be icon to design custom screen
 for dataset like before. only change is before it was saving in
 dataentryform table. now it will save the design in dataentryform table 
 and
 association will be saved in dataentryformassociation table.

 Similarly for ProgramState also we can design screens.

 Breifly that is what we are doing regarding CustomScreens. Is it OK or
 any changes?



 2009/12/9 Lars Helge Øverland larshe...@gmail.com



 2009/12/8 Viet Nguyen phamquocv...@gmail.com

 Hi Lars  and  Abyot,

 I am sorry, the message of that commit was missing some information.

 I had some problem while committing the source. It was locked, and I
 tried to use the break-lock command many times and finally it worked. 
 That
 is why I did not write the full commit message.

 So, that commit include

- Custom DataEntryForm design form for ProgramStage ( this is
what the FCK editor is for ).
- I Added class DataEntryFormAssociation. And yes Abyot, when I
was creating that class, I also wanted to create another package for 
 all the
dataentryform things. But that was like just a few days I touch the 
 dhis
code and I did not want to change so much. I just tried to follow 
 the old
work flow. Please do not worry, after read your email, I changed it
immediately (  really happy to do that :)  ) . You will see it in 
 the next
commit.
-  Custom data entry screen for case ( patient ) .  This is not
completely done, I am still working on it.

 The reason for this commit is to merge my local changes with your
 trunk. Because I have been coding for about two weeks on this module 
 with my
 local source code, not on any branch...so it really need to be merged as
 soon as possible.

 And actually , I have not been  in the
 dhis2-devs