dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #48637
Re: Program indicator "hasValue"
Hi again, any advice on this?
Olav
> 1. feb. 2017 kl. 13.40 skrev Olav Poppe <olav.poppe@xxxxxx>:
>
> Hi devs, I’m trying (in 2.25) to make a program indicator counting events where a specific data element has not been filled.
>
> Tested so far:
> - d2:hasValue(‘wmSb9TmevMn.jeK5z6acB3N’) => not supported in program indicators, only program rules
> - #{wmSb9TmevMn.jeK5z6acB3N} == ‘’ => no data
> - #{wmSb9TmevMn.jeK5z6acB3N} != ‘’ => counts the events WITH data, but I’m unable to «invert» this:
> -- !(#{wmSb9TmevMn.jeK5z6acB3N} != ‘’) => no data, catalina.out shows: ERROR: operator does not exist: ! boolean
> -- (#{wmSb9TmevMn.jeK5z6acB3N} != '') != true => no data
> - #{wmSb9TmevMn.jeK5z6acB3N} is null => works, but is not a supported format from what I understand.
>
> In general, what is displayed in «Filter description» and what actually works is not consistent - some things are invalid, but work, others are valid but don’t work…
>
> Any advice?
>
> Regards
> Olav
> _______________________________________________
> 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
References