Ordering of category combo options in section forms (Mobile browser and J2ME client)

Hi there. I have a question regarding the ordering of category combo options.

I have a category combo composed of two categories

Gender(Male/Female)
Age(<1,1-15,15+)

In the gender category, I have ordered the category options as 1 =
Male and 2 = Female.
In the age category, I have ordered the category options as 1= <1, 2= 1-15,3=15+

I have then ordered the categories in the combo as

Gender = 1
Age = 2

I would expect the following order to appear in the section forms

(1,1) Male, <1
(1,2) Male, 1-15
(1,3) Male, 15+
(2,1) Female,< 1
(2,2) Female, 1-15
(2,3) Female 15+

The order however seems to be alphabetical according to category option.

Is there a setting I am missing or is the sort order simply not
respected with the section forms?

Thanks,
Jason

Hi Jason,

I made a small test locally using your exact category names and it
seems to work just fine.

My guess is that you have loaded the form, then changed the category
order, then loaded the form again. The forms are persisted in the
browser localstorage and is refrehsed only when the data set has
changed, not the categories. So clearing browser cache completely
might help.

regards, Lars

···

On Wed, Apr 4, 2012 at 1:02 PM, Jason Pickering <jason.p.pickering@gmail.com> wrote:

Hi there. I have a question regarding the ordering of category combo options.

I have a category combo composed of two categories

Gender(Male/Female)
Age(<1,1-15,15+)

In the gender category, I have ordered the category options as 1 =
Male and 2 = Female.
In the age category, I have ordered the category options as 1= <1, 2= 1-15,3=15+

I have then ordered the categories in the combo as

Gender = 1
Age = 2

I would expect the following order to appear in the section forms

(1,1) Male, <1
(1,2) Male, 1-15
(1,3) Male, 15+
(2,1) Female,< 1
(2,2) Female, 1-15
(2,3) Female 15+

The order however seems to be alphabetical according to category option.

Is there a setting I am missing or is the sort order simply not
respected with the section forms?

Thanks,
Jason

_______________________________________________
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

This actually seems to work ok in the latest version of the J2ME
client, however, can you check with the "Lite" mobile browser version?
It does not work for me.

···

2012/4/6 Lars Helge Øverland <larshelge@gmail.com>:

Hi Jason,

I made a small test locally using your exact category names and it
seems to work just fine.

My guess is that you have loaded the form, then changed the category
order, then loaded the form again. The forms are persisted in the
browser localstorage and is refrehsed only when the data set has
changed, not the categories. So clearing browser cache completely
might help.

regards, Lars

On Wed, Apr 4, 2012 at 1:02 PM, Jason Pickering > <jason.p.pickering@gmail.com> wrote:

Hi there. I have a question regarding the ordering of category combo options.

I have a category combo composed of two categories

Gender(Male/Female)
Age(<1,1-15,15+)

In the gender category, I have ordered the category options as 1 =
Male and 2 = Female.
In the age category, I have ordered the category options as 1= <1, 2= 1-15,3=15+

I have then ordered the categories in the combo as

Gender = 1
Age = 2

I would expect the following order to appear in the section forms

(1,1) Male, <1
(1,2) Male, 1-15
(1,3) Male, 15+
(2,1) Female,< 1
(2,2) Female, 1-15
(2,3) Female 15+

The order however seems to be alphabetical according to category option.

Is there a setting I am missing or is the sort order simply not
respected with the section forms?

Thanks,
Jason

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

Sorry wasn't reading your mail properly. Fixed now in light module and
back ported to 2.7.