|
Re: Creating sub-node problem. [message #1841994 is a reply to message #1841957] |
Sun, 06 June 2021 15:16 |
|
Hi,
In the "Create Instance" operations you must specify a "Reference Name". It must be the name of a *containment reference* of the parent element (see https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#create_instance). Otherwise Sirius will indeed create and instance, set the reference from the "parent" to the new instance, but if that reference is not a containment reference the new instance is dangling and not really attached to the rest of the model and will not be saved as it is not considered part of any resource (hence the error message).
It's possible that you misconfigured your metamodel and forgot to check the "Containment" property for the EReference between Card and CardProperty.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01752 seconds