Hi all,
I have another question to the tune of “Is this a bug or is this how CDMs are supposed to work?”
In my project, I’m implementing a dependent enumeration where the trigger enumeration is in a different document. This results in some strange behavior. Because my actual use case is quite abstract, I’ll use an example:
In my example, a user can specify which species of tree they are planting by first selecting a “type of tree” and then a specific “species”. The list of option displayed for the “species” is narrowed down based on what’s selected for “type of tree”. So here, “type of tree” is the trigger and “species” is the dependent enumeration. If I model this within the same data model, this works nicely. When I change my selection of “type of tree” my selection of “species” is cleared and I see the updated list of options:

However, when I model “type of tree” in a different data model that is referenced via CDMs (which is the use case I need for my actual project), this doesn’t work. The original selection in my “species” enumeration is not fully cleared, instead I see the technical value for this enumeration without the proper label (I have chosen numbers 0-4 as the “values” in my enumeration and have only put the actual species names as the localized label to visualize this issue, see screenshot below). This technical value also appears in the list of options until I make a new selection and only then disappears:

It seems like a bug to me but I want to double-check here first, because CDMs have some “unintuitive” behaviors built in that are still intentional.
You can download my workspace here: <INTERNAL_LINK>
Best,
Lea
