Single digit numbers cannot be used as Options for Option Sets

Hi devs,

DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.

Is there a reason for this?

As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.

image

···

Regards,
Crizelle Nel

Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984

Hi Crizelle,

right, that was an unnecessary constraint. It has been removed now in trunk and 2.21.

Note that the option set value type refers to the code of the option, not the name. For analytics of the values entered through option sets, the code is used for aggregation.

regards,

Lars

image

···

On Wed, Dec 9, 2015 at 10:49 AM, Crizelle Nel crizellenel@gmail.com wrote:

Hi devs,

DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.

Is there a reason for this?

As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.

Regards,
Crizelle Nel

Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984


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

http://www.dhis2.org

Thanks Lars.

Noted.

Regards,

Crizelle Nel

HISP-SA

image

···

On Wed, Dec 9, 2015 at 1:01 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Crizelle,

right, that was an unnecessary constraint. It has been removed now in trunk and 2.21.

Note that the option set value type refers to the code of the option, not the name. For analytics of the values entered through option sets, the code is used for aggregation.

regards,

Lars

On Wed, Dec 9, 2015 at 10:49 AM, Crizelle Nel crizellenel@gmail.com wrote:

Hi devs,

DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.

Is there a reason for this?

As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.

Regards,
Crizelle Nel

Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984


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

http://www.dhis2.org