Using expressions in text properties

In the Styling Customizer, for styling properties with a text value, you can directly enter references to model attributes or expressions containing references to model attributes.
  1. If you do not have the ArizonaLogical example open, click File > Open and navigate to the ArizonaLogical.idpr file.
  2. Click Open.
  3. Select the node rule.
  4. Change the value of the name parameter to @id in the Styling Customizer.
  5. Press Enter.
    The names of the cities appear in the nodes, see the following figure.
diada_arizonanames37.png
Data model attribute values in a diagram
By default, name is set to @name, but in the Arizona data model, there is no attribute called name, instead the city names are mapped to the attribute called id.
Note that if you create property in Diagram Editing Mode, it is a text property.