← Back to team overview

dhis2-devs team mailing list archive

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

 

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@xxxxxxxxx>:
> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp


Follow ups

References