← Back to team overview

dhis2-devs team mailing list archive

Re: Validation rule with yes/no and number

 

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.pickering@xxxxxxxxx
> 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.poppe@xxxxxx> 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@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
> _______________________________________________
> 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
>
>

Follow ups

References