Replies: 1 comment 2 replies
-
Hi,
If there is a need of additional information in the field.json, please share your thought about this. |
Beta Was this translation helpful? Give feedback.
-
Hi,
If there is a need of additional information in the field.json, please share your thought about this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i want to discuss a class of missing conditional mandatory statements, which right now requires alot of xsd parsing to workaround and make our meta-driven eForms approach work.
The Field
BT-773-Tender
is not conditional mandatory right now (1.11.0-rc.3, also previous versions
),but the XSD type
efbc:TermCode
is:The Group inside the Visual Model is found for example in subtype 29, in Group
GR-LotTender-Subcontracting
.Right now, every Field inside that Group is Optional. So when a user is not entering any data, the XML Node will not be generated, because it has no value. This is fine, because the
SubcontractingTermType
is only used one time with optional cardinallity:But as soons as there is data entered in one of the optional fields, the XML will be invalid, because a node of the
SubcontractingTermType
will be created, with no value forefbc:TermCode
:This is obviously not valid, because it is not satisfying the xsd from above, but it is valid from the point of view from the metadata.
Just making
BT-773-Tender
always Mandatory is also not a great option, because you don't have to specify it, when there is noSubcontractingTermType
at all.So either we need another property in the fields.json, which marks a fields as required-when-parent-exists, or we need alot of EFX to express this mandatory conditionaly, when any neighboring nodes exist.
We are using the second way right now, which is really complicated, prone to errors and not readable in the fields.json:
which in the end looks like this:
But this can't be the best solution for this Problem. This problem exists for alot of Fields (over 200 in eForms Version 1.7.3).
Beta Was this translation helpful? Give feedback.
All reactions