Your version will, when status = empty, run into an error at the attempt to retrieving status/name, since there is no status. Causing the rule to fail without any further validation, thus return false.
Reverse the order, so:
status = empty or (status/name != 'A' and status/name != 'B')
Now, if status is empty, this validation will evaluate the left part of the expression, find ‘true’ and not even look at the right part of the expression.
I wonder what you exactly have written in the editability constraint as in Mx 9.12.4 it is not possible to select the an attribute over association via the current object in a visibilty or visibilty constraint.
See this doamin model:
When you want to set the editability constraint on the CaseID field for this page:
like
this results in an error, so you must have written something else.
A solution could be to create an additional status name attribute on the Case entity, make sure this is set with an onchange of the reference selector and then set the editablity via the new attribute.
Hi Erwin, thanks for your answer. I have nested dataviews, outer is for case object and inner is for status object. In the inner dataview i have both object in context. (See image)