Value type error with option set

Dear all,

  • I have a DE “Sex” with Number value type. Domain type: Tracker

  • I have a option set “SexOpt” with Number value type too. It has options: Name “Male” Code 1 and Name “Female” code 2.

  • I set “SexOpt” for DE “Sex”.

When I enter data for an Entity in program an error occurs: Value must be a number: Male (or Female) if I choose any option in list (or radio button).

Please help me.

Thanks.

···

Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742

Hi,

Which version are you using ?

Also, can you please provide a screenshot of the data entry screen with the error ?

···

On Mon, Jun 12, 2017 at 8:58 AM, Trần Quý Phi phi@cdytqn.edu.vn wrote:

Dear all,

  • I have a DE “Sex” with Number value type. Domain type: Tracker
  • I have a option set “SexOpt” with Number value type too. It has options: Name “Male” Code 1 and Name “Female” code 2.

  • I set “SexOpt” for DE “Sex”.

When I enter data for an Entity in program an error occurs: Value must be a number: Male (or Female) if I choose any option in list (or radio button).

Please help me.

Thanks.


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Viet Nguyen

Software Developer, DHIS 2

University of Oslo

http://www.dhis2.org

Change the value type for your sex variable to text. Enter text values for the name and code for the option values e.g. Female for name and Female for code then for the second value also enter male for name and male for code.

Timothy

···

Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742

Dear Timothy Kiyemba,

Thanks for your help.

The point is the domain type of my DE is “tracker” so if it has “text” value type I can’t set aggregation type!

Best,

Phi

···

On Mon, Jun 12, 2017 at 10:40 AM, timothy kiyemba tkiyemba@gmail.com wrote:

Change the value type for your sex variable to text. Enter text values for the name and code for the option values e.g. Female for name and Female for code then for the second value also enter male for name and male for code.

Timothy


From: Trần Quý Phi
Sent: ‎12/‎06/‎2017 05:01
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] Value type error with option set

Dear all,

  • I have a DE “Sex” with Number value type. Domain type: Tracker
  • I have a option set “SexOpt” with Number value type too. It has options: Name “Male” Code 1 and Name “Female” code 2.

  • I set “SexOpt” for DE “Sex”.

When I enter data for an Entity in program an error occurs: Value must be a number: Male (or Female) if I choose any option in list (or radio button).

Please help me.

Thanks.


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742

Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742

Dear Bs Phi,

For Sex, you can sex value type is text, then aggregation type is None. You can use program indicator or Aggregated in Event report to get aggregated value, you don’t need to put it as Number.

When you change the value type to text, the aggregation type should be changed to None automatically like screenshot below:

image

···

On Mon, Jun 12, 2017 at 11:11 AM, Trần Quý Phi phi@cdytqn.edu.vn wrote:

Dear Timothy Kiyemba,

Thanks for your help.

The point is the domain type of my DE is “tracker” so if it has “text” value type I can’t set aggregation type!

Best,

Phi


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

On Mon, Jun 12, 2017 at 10:40 AM, timothy kiyemba tkiyemba@gmail.com wrote:

Change the value type for your sex variable to text. Enter text values for the name and code for the option values e.g. Female for name and Female for code then for the second value also enter male for name and male for code.

Timothy


From: Trần Quý Phi
Sent: ‎12/‎06/‎2017 05:01
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] Value type error with option set

Dear all,

  • I have a DE “Sex” with Number value type. Domain type: Tracker
  • I have a option set “SexOpt” with Number value type too. It has options: Name “Male” Code 1 and Name “Female” code 2.

  • I set “SexOpt” for DE “Sex”.

When I enter data for an Entity in program an error occurs: Value must be a number: Male (or Female) if I choose any option in list (or radio button).

Please help me.

Thanks.


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742

Em Le Hong
DHIS2 Implementation| **HISP Vietnam **

em.hispvietnam@gmail.com | Skype: em.hispvietnam@gmail.com

Dear Phi

In the new versions (I have seen from 2.24 to newer) the problem has been solved.

You can make option code in numeric and the data entry screen will not create any problem unless you made anything with custom form

Please let me know which version you are using.

···

On Mon, Jun 12, 2017 at 10:11 AM, Trần Quý Phi phi@cdytqn.edu.vn wrote:

Dear Timothy Kiyemba,

Thanks for your help.

The point is the domain type of my DE is “tracker” so if it has “text” value type I can’t set aggregation type!

Best,

Phi


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Nayeem Al Mifthah
Consultant for HSS, Health MIS, M&E
Email: n.mifthah@gmail.com
Cell:+8801914030574

Skype: nayeem.a.m

On Mon, Jun 12, 2017 at 10:40 AM, timothy kiyemba tkiyemba@gmail.com wrote:

Change the value type for your sex variable to text. Enter text values for the name and code for the option values e.g. Female for name and Female for code then for the second value also enter male for name and male for code.

Timothy


From: Trần Quý Phi
Sent: ‎12/‎06/‎2017 05:01
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] Value type error with option set

Dear all,

  • I have a DE “Sex” with Number value type. Domain type: Tracker
  • I have a option set “SexOpt” with Number value type too. It has options: Name “Male” Code 1 and Name “Female” code 2.

  • I set “SexOpt” for DE “Sex”.

When I enter data for an Entity in program an error occurs: Value must be a number: Male (or Female) if I choose any option in list (or radio button).

Please help me.

Thanks.


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742


Bs. Trần Quý Phi
Trường Cao đẳng Y tế Quảng Nam

03 Nguyễn Du
0914 152 742