Event Reports/ Visualizer: applying a filter for Data Elements of type Y/N removes all records on event reports

Tested on DHIS 2.22/ r 22016, 2.20 r22027 and 2.23 r22905
You can try this at play.dhis2

Problem: when a Data Element (tracker) of type Yes/No is used to filter the data in Event Reports or Event Visualiser, nothing gets returned.

Exhibit 1: Event Report, no filters applied: data is displayed correctly

Exhibit 2: Event Report, filters applied: One of “Yes” - no data is returned

**Details of the data element used for the example above: ** MCH BCG dose

(any Yes/No data element will show the same problem)

Rodolfo

Hi Rodolfo,

confirmed. Fixed now in 2.22 (rev 22027) -> trunk.

regards,

Lars

···

On Fri, May 6, 2016 at 7:51 PM, Rodolfo Melia rmelia@knowming.com wrote:

Tested on DHIS 2.22/ r 22016, 2.20 r22027 and 2.23 r22905
You can try this at play.dhis2

Problem: when a Data Element (tracker) of type Yes/No is used to filter the data in Event Reports or Event Visualiser, nothing gets returned.

Exhibit 1: Event Report, no filters applied: data is displayed correctly

Exhibit 2: Event Report, filters applied: One of “Yes” - no data is returned

**Details of the data element used for the example above: ** MCH BCG dose

(any Yes/No data element will show the same problem)

Rodolfo


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

lars@dhis2.org

http://www.dhis2.org

Hi - I just tested in 22027: It works !

Thanks.

···

On 9 May 2016 at 22:17, Lars Helge Øverland lars@dhis2.org wrote:

Hi Rodolfo,

confirmed. Fixed now in 2.22 (rev 22027) -> trunk.

regards,

Lars

On Fri, May 6, 2016 at 7:51 PM, Rodolfo Melia rmelia@knowming.com wrote:

Tested on DHIS 2.22/ r 22016, 2.20 r22027 and 2.23 r22905
You can try this at play.dhis2

Problem: when a Data Element (tracker) of type Yes/No is used to filter the data in Event Reports or Event Visualiser, nothing gets returned.

Exhibit 1: Event Report, no filters applied: data is displayed correctly

Exhibit 2: Event Report, filters applied: One of “Yes” - no data is returned

**Details of the data element used for the example above: ** MCH BCG dose

(any Yes/No data element will show the same problem)

Rodolfo


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

lars@dhis2.org

http://www.dhis2.org