With the
node.person
rule selected, you will set name and birthdate properties in the
Styling Customizer.
To set properties for the person nodes:
-
Select the
node.person
rule in the Style Rules pane. -
In the Parameters tab of the Styling Customizer, set
name
to@firstname+" "+@name
, as follows:- Right-click in the field.
- Choose Enter an Expression.
- Delete the current value.
- Select
@firstname
from the list of available expressions. - Type
+" "+
. - Select
@name
from the list of expressions. - Press Enter.The at sign (@) is an operator specifying a model value: it prefixes the name of an attribute in the data model. The expression used here concatenates the value of the
firstname
attribute, a space, and the value of thename
attribute.
-
Set
birthdate
to@birthdate
in the same way and press Enter.
You can see the diagram change as you work,
see the following figure.
![diada_genperson14.png](../../JViews_Diagrammer/usrcompdiag/_media/diada_genperson14_default.png)
Customized person nodes
Note
You can undo any unwanted changes in your Style Rules or Styling
Customizer by clicking Edit >
Undo.