Hi Dojo,
Im trying to populate an existing GenericEnumFieldDescriptor with ALL countries:
For obvious reasons, I'd like to automate this using the DomHelper, by passing Module, SectionDefinitionID and FieldDescriptorID as arguments.
However, fetching existing SectionDefinitions or FieldDescriptors return immutable objects. So I can't change them.
It seems I have to create the entire section from scratch using a CustomSectionDefinition?
I could re-create the existing Section by copy and add the GenericEnumFieldDescriptor Values on top, and replace it with the original Section. But this seems inadequate for the current use case.
Any ideas?
Hi Rui,
For DOM, it is safe to just cast the 'SectionDefinition' to a 'CustomSectionDefinition'. That way you will have access to the methods for adding extra FieldDescriptors.