Replies: 1 comment
-
From what I remember, we were able to change from "id" to "id-ref" thanks to the use of business entities and the docs does say "typically" but that does not mean always. After a few SDK releases we may decide to put COMBOBOX instead of TEXT but we fear this could break existing applications that did not yet move to usage of the new "referencedBusinessEntityIds". The problem is that sometimes populating the COMBOBOX is a bit more complex. There are easy cases where the new and old solutions are identical:
In that case using idSchemes vs referencedBusinessEntityIds makes little difference. In the past we only provided this array:
As you can see the pattern allowed for more values, some which were not just 3 letter like "PROCEDURE":
This meant the SDK was providing values, but that they were spread in the idSchemes + pattern. Since the business entities we provide a more extensive array to cover all values of the pattern:
As you can see things like "PROCEDURE" of the pattern now appear in this new array as "procedure".
So the technical value you can set in the field is provided by the logic: -> get business entity information by id With a bit of logic this will give you the correct value for any business entity found in the referencedBusinessEntityIds array.
So this new mechanism allows to fully automate what was previously in the combination of idSchemes + looking into the pattern. You can find some public (but not officially released) docs about business entities but this git branch could disappear at any time in the future: We will have more comprehensive official documentation about this later. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I started working on the eForm-SDK upgrade from 1.9 to 1.12.
Looking at the differences between the two versions I have seen that some fields like "BT-13716-notice" or "BT-1501(p)-Contract" ("BT-1501(s)-Contract" in the older version) in fields.json the "type" property switched from "id" to "id-ref", and in most of the "different types of procurement notices" json files inside the "notice-types" folder has been added in these related fields the "_idSchemes" property filled with a String Array.
Now, as reported in TED Developer Docs at this link (noted below the relevant section) I expect that for the above fields should also be changed the "displayType" from TEXTBOX to COMBOBOX
Is there a valid reason why the "displayType" has not been changed?
If TEXTBOX is the correct option, how should these fields be rendered, and how should the provided options be rendered?
Thanks in advance for the clarification
Giulio
Beta Was this translation helpful? Give feedback.
All reactions