-
Hi, I have a problem with validating notice fields on a form using SDK. Assumption:
For field BT-5421-Lot for notice 15 I try to determine whether the field is required or not.
How to determine if a field is forbidden or mandatory, if context node is missing? I can't compute xpath expression in void. I have tried to always return true in case of missing context node, but it doesn't work because sometimes xpath expression requires dependant node to be missing, and sometimes xpath requires dependant node to be present. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
sample xml: problems occur when trying to validate the GR-Procedure-TenderingTerms section.
Thanks |
Beta Was this translation helpful? Give feedback.
Thanks for this clarification, I thought it was about the absence of context in the condition EFX expression (which may not be the case) while it is about the context existence in the XML.
The existence of BT-5421-Lot is conditioned by the one of BT-541-Lot (forbidden when it does not exist and mandatory when it does).
The rule has been expressed one way only (BT-5421-Lot = conditioned by => BT-541-Lot) and not both ways as it would increase the number of rules. There are also cases were more than one fields are interdependent from a given fields and expressing rules in all possible directions would increase the number of rules exponentially causing performance issues and becoming a real …