← Back to team overview

dhis2-devs team mailing list archive

Re: OptionSets of type Number - is optionvalue CODES then limited to number?

 

Hi Calle - the data type of the option set is meant to dictate what type of data the option set codes will be. I would say the error was in 2.24 and older dhis versions - allowing letters in codes for numeric option sets seems like a bug. 

Markus

> Den 11. feb. 2017 kl. 12.40 skrev Calle Hedberg <calle.hedberg@xxxxxxxxx>:
> 
> Hi again,
> 
> Just to add: the constraint that optionSets with valueType = Number can only have optionValue codes consisting of digits is new in either 2.25 and/or 2.26 - it is not there in 2.24.
> 
> Which is why I suspect this might be a bug - but I would like confirmation before reporting it on JIRA
> 
> Best regards
> Calle
> 
>> On 11 February 2017 at 13:21, Calle Hedberg <calle.hedberg@xxxxxxxxx> wrote:
>> Hi
>> 
>> I am uncertain if this is a bug or not (latest build 2.26): 
>> When you define an option set using valueType=Number, the system will only accept optionValue codes consisting of digits (no letters) for that optionSet.
>> 
>> There is no mention of this restriction in the user manual.
>> 
>> Is this intended behaviour, or is it a bug?
>> 
>> Regards
>> Calle 
>> *******************************************
>> 
>> Calle Hedberg
>> 
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>> 
>> Tel/fax (home): +27-21-685-6472
>> 
>> Cell: +27-82-853-5352
>> 
>> Iridium SatPhone: +8816-315-19119
>> 
>> Email: calle.hedberg@xxxxxxxxx
>> 
>> Skype: calle_hedberg
>> 
>> *******************************************
>> 
>> 
> 
> 
> 
> -- 
> *******************************************
> 
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: calle.hedberg@xxxxxxxxx
> 
> Skype: calle_hedberg
> 
> *******************************************
> 
> 
> _______________________________________________
> 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