If my DomDefinition allows multiple instances of a section, can I rely on the order of the sections to be preserved when creating, reading, and updating the instance?
Should I include a "sequence number field" in my section if the order is important for my usecase?
Hi Thomas,
The DOM API should retain the exact order in which the Sections were added to the DOM instance. If the create/update interaction with this DOM data is solely done using the DOM helper, then there shouldn't be a need for this sequence number. However, if updates were done using a form in low-code apps, I currently cannot guarantee that the order will always remain the same. (I will double-check & update my comment)
Update: It looks like the web APIs do re-arrange the sections on the DOM instance according to the configuration. But looking at this logic, the sections belonging to the same SectionDefinition would remain in the same order. I would however recommend adding the sequence number in that case if the order is a critical part of the solution.