Re: [Dhis2-devs] Program indicator "hasValue"

2017-04-24 Thread Olav Poppe
Hi, late follow-up on this - is there a «is empty» syntax for dates as well? I get ERROR: invalid input syntax for type timestamp: ‘' and ERROR: COALESCE types timestamp without time zone and integer cannot be matched if I use == ‘’ or == 0 respectively for dates. Olav > 1. mar. 2017 kl.

[Dhis2-devs] EC - possible program rule bug - triggering "hidefield" when clearing dates

2017-04-24 Thread Olav Poppe
Hi devs, I’m have some problems with a program rule in EC: The rule is if a date data element is empty, a numeric data element field should be cleared and hidden. However, the rule is not triggered when the date field has been filled and is later cleared. I have the exact same rule set up in TC

Re: [Dhis2-devs] Program indicator "hasValue"

2017-04-24 Thread Markus Bekken
Hey Olav, if you're on 2.26 or later, d2:hasValue() should work: https://jira.dhis2.org/browse/DHIS2-1245 Markus > 24. apr. 2017 kl. 13.09 skrev Olav Poppe : > > Hi, late follow-up on this - is there a «is empty» syntax for dates as well? > I get >

Re: [Dhis2-devs] Program indicator "hasValue"

2017-04-24 Thread Olav Poppe
Great, thanks. Olav > 24. apr. 2017 kl. 21.27 skrev Markus Bekken : > > Hey Olav, > if you're on 2.26 or later, d2:hasValue() should work: > https://jira.dhis2.org/browse/DHIS2-1245 > > > Markus > >> 24. apr. 2017 kl. 13.09 skrev Olav Poppe >