Hi Dojo,
Do we have something similar in DOM as we had in the ticketing app where each ticket gets a unique id that can be used as a unique reference for that ticket (guid is not usable). The id should be visible in the DOM form as well?
Or any workarounds to achieve this
Kind regards
Hi Martijn,
You can do this using an 'AutoIncrementFieldDescriptor'. By adding one of those FieldDescriptors to a SectionDefinition, the DOM manager will automatically increment an ID and add the value to the field of the DomInstance. It is possible to define the string format to build a custom ID string.
Adding a FieldDescriptor like this requires some additional configuration. No example or detailed description is available yet in the documentation, but a rework of the page with the FieldDescriptor will be done in the future.
You can find a script example that adds a FieldDescriptor like this here: https://github.com/Skyline-ThomasGH/DataMiner_ScriptExamples/blob/main/DOM_AutoIncrementFieldDescriptorExample.xml
I have tested this myself but noticed that the low-code apps behave a bit weird where it shows you the value of this field as an editable text field. This should not be the case and a task has been made for this issue internally (DCP211119). You could hide this field so it is not part of the forms for now.