Positive or Zero Integer Value type does not save zero vlaues

Hi,

I have an instance running on 2.25 where the value is 0 is as important as any other.

So for a DE of tracker type I assigned the value type Positive or Zero integer so that 0 can be entered. However whenever I enter 0 the system gives an error and does not save.

I went further and tested this on 2.26 and 2.27 (demo) now on these versions though it does give an error on save when I return or refresh it shows the DE or value to be empty.

I have attached some images for clarity.

Is this intentional or a possible bug?

image

image

···

Thank you and Kind Regards
*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”

Hi Emma,

There is an attribute called ‘Store Zero data values’ for data elements, you need to select ‘Yes’, in order to save 0 as value.

regrads,

Neeraj

···

On Mon, Jun 12, 2017 at 3:42 PM, Immaculate Ayebazibwe ekassy29@gmail.com wrote:

Hi,

I have an instance running on 2.25 where the value is 0 is as important as any other.

So for a DE of tracker type I assigned the value type Positive or Zero integer so that 0 can be entered. However whenever I enter 0 the system gives an error and does not save.

I went further and tested this on 2.26 and 2.27 (demo) now on these versions though it does give an error on save when I return or refresh it shows the DE or value to be empty.

I have attached some images for clarity.

Is this intentional or a possible bug?

Thank you and Kind Regards
*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”


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

Thanks,
Neeraj Gupta

Thanks Neeraj,

What if its Tracker Attributes?

···

On Mon, Jun 12, 2017 at 1:20 PM, Neeraj Gupta neeraj.hisp@gmail.com wrote:

Hi Emma,

There is an attribute called ‘Store Zero data values’ for data elements, you need to select ‘Yes’, in order to save 0 as value.

regrads,

Neeraj

Thank you and Kind Regards
*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”

On Mon, Jun 12, 2017 at 3:42 PM, Immaculate Ayebazibwe ekassy29@gmail.com wrote:

Hi,

I have an instance running on 2.25 where the value is 0 is as important as any other.

So for a DE of tracker type I assigned the value type Positive or Zero integer so that 0 can be entered. However whenever I enter 0 the system gives an error and does not save.

I went further and tested this on 2.26 and 2.27 (demo) now on these versions though it does give an error on save when I return or refresh it shows the DE or value to be empty.

I have attached some images for clarity.

Is this intentional or a possible bug?

Thank you and Kind Regards
*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”


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

Thanks,
Neeraj Gupta

Hi
Did you ever find out anything regarding this?
Cc, @Emma_Kassy

1 Like