how could i save some value in "Datavalue" table for input with "No Value" radio button ?

Hello Dev,

Since i am assigning a dataelement with data type value (yes/no) to a dataset, and when i am doing data entry for period type monthly,

the input appears with three different type of values with radio buttons ie, “No value”,“Yes”,“No”.

Here, if i am selecting input with “No” radio button, it saves as “False” as value in “Datavalue” table.

Or, if i am selecting input with “Yes” radio button, it saves as “True” as value in “Datavalue” table.
Or, if i am selecting input with “No Value” radio button, it doe’t saves anything as value in “Datavalue” table.

My question is, for some specific requirement, how could i save some value in “Datavalue” table for input with “No Value” radio button ?

···

Thanks and Regards

Brajesh Murari

Create an option set with three options

  1. True

  2. False

  3. No value

and assign that to the data element as its option set instead of using of the default Yes/No and Yes only types.

Regards,

Jason

···

On Tue, Sep 27, 2016 at 11:22 AM, Brajesh Murari brajesh.murari@gmail.com wrote:

Hello Dev,

Since i am assigning a dataelement with data type value (yes/no) to a dataset, and when i am doing data entry for period type monthly,

the input appears with three different type of values with radio buttons ie, “No value”,“Yes”,“No”.

Here, if i am selecting input with “No” radio button, it saves as “False” as value in “Datavalue” table.

Or, if i am selecting input with “Yes” radio button, it saves as “True” as value in “Datavalue” table.
Or, if i am selecting input with “No Value” radio button, it doe’t saves anything as value in “Datavalue” table.

My question is, for some specific requirement, how could i save some value in “Datavalue” table for input with “No Value” radio button ?


Thanks and Regards

Brajesh Murari


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

thanks Jason

···

On Tue, Sep 27, 2016 at 2:55 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Create an option set with three options

  1. True
  1. False
  1. No value

and assign that to the data element as its option set instead of using of the default Yes/No and Yes only types.

Regards,

Jason

On Tue, Sep 27, 2016 at 11:22 AM, Brajesh Murari brajesh.murari@gmail.com wrote:

Hello Dev,

Since i am assigning a dataelement with data type value (yes/no) to a dataset, and when i am doing data entry for period type monthly,

the input appears with three different type of values with radio buttons ie, “No value”,“Yes”,“No”.

Here, if i am selecting input with “No” radio button, it saves as “False” as value in “Datavalue” table.

Or, if i am selecting input with “Yes” radio button, it saves as “True” as value in “Datavalue” table.
Or, if i am selecting input with “No Value” radio button, it doe’t saves anything as value in “Datavalue” table.

My question is, for some specific requirement, how could i save some value in “Datavalue” table for input with “No Value” radio button ?


Thanks and Regards

Brajesh Murari


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Thanks and Regards

Brajesh Murari

Is there a work around to displaying this as radio buttons instead of the dropdown?I am faced with a similar scenario. I created an option set, but it displays as a dropdown.