|
Re: define element's name [message #1759494 is a reply to message #1759487] |
Wed, 12 April 2017 09:49 |
|
Hello,
It depends if you want the name of the element this way, as a graphical information or a semantic information. What I mean is if you want the name of the element (based on the name of the container) just as an information that is displayed, or if you want it saved in a name field of the semantic element.
If you just want it as a displayed information in a particular representation, you just need to set the expression in the label field of your style's mapping to be a construction of container-name+element-name. You creation tool would just set the element-name.
If you want a field in your element that returns a name that is a constrution of container-name+element-name, I think that the simplest way is to add an a derived reference, let's name it "fullname" that computes and returns a String container-name+element-name. You creation tool would just set the element-name. In your mapping's style, you would use "fullname" as the displayed label.
In both way, this will update the label automatically on drag and drop.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03336 seconds