← Back to team overview

dhis2-devs team mailing list archive

[Bug 673374] Re: sort by code: not working stable or working-out

 

** Attachment added: "usersetting-sortingAnddisplay"
   https://bugs.launchpad.net/dhis2/+bug/673374/+attachment/1735914/+files/usersetting-sortingAnddisplay.rar

-- 
sort by code: not working stable or working-out
https://bugs.launchpad.net/bugs/673374
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:
sort by code: not working stable

Version:
    2.0.6-SNAPSHOT
Build revision:
    2023 
Build date:
    2010-11-10 09:46

Description: "code" defined in a few objects (data-element, data-set, indicator, organization-unit, etc.)
***see more details***
dataelement (code character varying(100),)
dataset (code character varying(60),)
indicator (code character varying(25),)
organisationunit (code character varying(25),)
reportexcel_dataelementgrouporders (code character varying(255),)
******

BUT, currently, when setting (.../dhis-web-maintenance-settings/userSettings.action)
the "sort order" and "display property" value. For example, between "code" and "name" property.

There are 2 main visible issues (i):
i1. Referring to DATA-ELEMENT
Pick-up 2 random dataelements which are defined with the rule: full-Vietnamese signs (for 'name', 'shortname', etc. properties) and partly(or without accents)-Vietnamese accents (for 'code' properties)
See example: dataelement-def.png and dataelement-def (). png

There are 3 main circumstances of setting: (sort oder, display property)= {(Name,Name) ; (Code, Name) or (Name, Code) ; (Code,Code)}
Check out the 3 output (list of daels with strange order): Dataelement-list-NN.png; Dataelement-list-CN.png; Dataelement-list-CC.png

Explanation: 
1. Dataelement-list-NN.png (ugly order... because not all dataelements are showed with their "Name" property, see the mixed list of Vietnamese-accents and non-Vietnamese-accents)
2. Dataelement-list-CN.png: the same issue like (1: NN)
3. Dataelement-list-CC.png: the same issue like (1: NN)

i2. Referring to ORG-UNITs
The equivalent issues but it seems worse because the 'name' property is changed (copied from 'code' value)
This happens when switching from NN settings to CC settings (check-out the illustrations: orgs-sorted-by-name (NN settings).png, orgs-sorted-by-code (CC settings).png)

i3. For ORG-UNITS: "code-name" setting (in which: sort oder by 'code' and display property by 'name') doesn't work-out (or give expected results)
Check-out: no different for orgs-sorted-by-name (CN settings).png compared to orgs-sorted-by-name (NN settings).png


P.S: Download all attached files here: http://www.4shared.com/file/bqKWftiR/usersetting-sortingAnddisplay.html





References