Hi all,
I created a DOM using DOM editor for Form. When I tried to edit or delete some field descriptor, it always said it is in used and cannot apply. Adding a new one is OK.
I already delete all the form and the GQI or anything in the dashboard, but still it said it is in used and cannot apply. May I know any hints?
Thanks.
Hi SK,
The DOM logic that manages and verifies all DOM interaction will block of changing the DOM model if that means that at least one DOM instance could lose the meaning of a stored value. It will always ensure that any data stored, can be explained.
In practice, this means that you cannot remove a FieldDescriptor from a SectionDefinition, if at least one DOM instance contains a value for that FieldDescriptor. There are also some edit actions that are blocked, like changing the type.
To get around this error, you could remove all DOM instances using the to-be-removed FielDescriptor (e.g. via a script), but a more easy way is to set the FieldDescriptor as 'soft-deleted' for now. That should result in it not being seen anymore in the form component when adding or editing DOM instances. You can then, at a later time, update the DOM instances that have a value for that FieldDescriptor.
Let me know what updates to the FielDescriptor may still result in unclear errors.
Thanks Thomas for your prompt reply. Yes, soft delete help to clear the alarm.