I am trying to create a Section Definition that follows the structure:
In this case, I want a Field Descriptor which points to a single value of a ComponentTypeEnum, and I also want another Field Descriptor which points to multiple values of the same Enum.
So far, the only option I found was to re-create the same enum twice (once for each field desc), but that is not a very convenient solution.
Is there any way in the DOM Editor to re-utilize a previously defined enum?
Thank you
Hi Tomás,
Unfortunately, in the DOM editor, there is no easy way to duplicate the enum. If you would code the DOM model in a C# setup script, you could assign the enum to both FieldDescriptors.
A potential way to make the configuration easier would be to use DomInstanceFieldDescriptors and store the 'Component Type' options as instances under a separate 'Component Types' DOM definition. This would then allow you to have a DomInstanceFieldDescriptor with a single value, and one with multiple values that both point to that same DOM definition. If your list is quite short, and you need to often show the value (need for joins), the enum approach would still be the best however.