-
what's the difference beetween the structure identifierFieldID = "BT-137-Lot" and identifierFieldID = "BT-1375-Procedure" in particular why in the first case I create my XML using logic on the direct presence of a schemeName (2 case). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
We agree that the situation regarding attributes and xpath predicate for xml generation is difficult.
https://github.com/OP-TED/eForms-SDK/blob/1.7.0/fields/fields.json
For now if you want to be safe with all cases you will have to parse the predicate in the last element and in the parent, see if you can find |
Beta Was this translation helpful? Give feedback.
We agree that the situation regarding attributes and xpath predicate for xml generation is difficult.
We gradually added new keys and new fields and nodes in the fields.json to help with this as this is highly requested.
SDK 1.7 has keys like "schemeName" in
fields.json
but only for some identifiers (if I remember correctly).SDK 1.9 will introduce new attribute fields and
attributeOf
,attributeName
andattributes
to help with XML generation and form creation. For the time being in some cases you can get the schemeName from the xpath and for schemeName sometimes fromschemeName
infields.json
: