Sorry, forgot to reply to your earlier suggestion Jason. Agree that it is no really necessary, but it can be difficult to convince people of that…
As for the compulsory pair, I though that would only ensure that there is some value in both fields - but what I need is to ensure that if A is «no», the B SHOULD be empty - and if a is «yes», it should NOT be empty. Can I do that with a compulsory pair? 5. mai 2014 kl. 15:50 skrev Lars Helge Øverland <larshe...@gmail.com>: > Agree with Jason here. > > Olav the "compulsory pair" operator for validation rules could be useful here. > > Lars > > > > On Fri, May 2, 2014 at 3:14 PM, Jason Pickering <jason.p.picker...@gmail.com> > wrote: > Not sure if the "Compulsory pair" works for this case, but it should. > > On the other hand, it would seem little point to record Element A, as if > Element B is non-zero, it already indicates that there was a stockout. > > Regards, > Jason > > > > On Fri, May 2, 2014 at 7:39 PM, Olav Poppe <olav.po...@me.com> wrote: > Hi, > is it possible to create a validation rule with a yes/no data element and > number type data element? > > For example: > Element A: Was the facility out of stock? > Element B: If yes, for how many days? > > I would like to validate that Element B is only filled if the value for > Element A is yes. Is this possible? > > Regards, > Olav > > _______________________________________________ > 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 > > > _______________________________________________ > 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 > >
_______________________________________________ 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