In creation of validation rules, there is an operator called compulsory pair, i tried a documentation guide but am not getting the meaning of this operator? do anyone used this operator and give more details on this? how it works?
sorry for the late reply. A validation rule with the “compulsory pair” operator is set to fail if there are values in a form for exactly one of the left/rights sides in the expression. In other words, if there are values for only the left side of the expression or only the right side of the expression for the same period, data set and org unit, it will throw a violation.
It is allowed to use multiple data elements in the left and right side of the expression. You can define whether to require all data elements to have values or only one data element to have a value in the expression through the “skip for missing values” property in the expression editor. If “skip” is true, then it requires all data elements to have values. If false, only one data element must have a value.
In creation of validation rules, there is an operator called compulsory pair, i tried a documentation guide but am not getting the meaning of this operator? do anyone used this operator and give more details on this? how it works?