Properties and Relationships
Properties
Properties are the fields of an entity, for example Street, House number and City of an Address. A property connects the entity type with a property type, which defines the data type — text, number, date, enum and so on.
Open the entity type (for example Address) and switch to the tab Properties. The table lists the type's own properties. Properties inherited from a parent type are not listed here; edit them on the parent.
The properties of the entity type Address
The toolbar of the tab:
| Button | What it does |
|---|---|
| Filter... | Narrows the list. |
| Reloads the list. | |
| Link existing (Ctrl+L) | Adds a property of an existing property type. This is the usual way. |
| Create and link (Ctrl+N) | Creates a new property type and adds it. Choose the kind of property type in the menu of the arrow. |
The icon buttons have no tooltips.
Add an Existing Property Type
Example: add the property Team name to the new entity type Team.
-
Click Link existing. The dialog Link existing PropertyType opens.
-
Select one property type, for example
string_property_type/genericfor a plain text. -
Fill in the Relationship Properties — they describe the property on this entity type:
Field Example Notes # (position) 10Order of the property — see Change the Order. Name team_nameRequired, unique within the type. Technical name, letters, digits and _.Label Team name Required. Field label, per language. Description Name of the team Tooltip of the field and of the column header on the search page. Required on Users must fill in the field. Unique off The value must be unique among all entities of the type. -
Under Point to, keep Latest.
-
Click Submit.
Adding the property Team name: (1) property type, (1.5) relationship properties, (2) Point to, (3) Submit
The list reloads and shows the new property. There is no message. If a required field such as Name or Label is missing, the server rejects it: Failed to link entities.
The new property in the Properties tab of Team
string_property_type/generic for text, multi_lang_property_type/generic for text in several languages, int_property_type/generic / float_property_type/generic for numbers, datetime_property_type/generic for dates, bool_property_type/generic for yes/no, an enum_property_type/… for a fixed list of values. All types are listed under Property Types.
There is no default value for a property and no setting to hide a property in the search or on the overview page.
Edit a Property
Double-click a row: all simple cells become editable. Enter or a click outside the row saves (Saved), Esc discards. Multi-language values and scripts open the dialog Edit Entity with the sections Relationship Properties and Target Properties; save with OK.
Change the Order
The order of the properties is controlled by the number in the column # (position). To move a property between two others:
- Look at the positions of the neighbors, for example
10and20. - Double-click the row of the property, enter
15in # and press Enter.
Double-click a row to edit the position inline
Properties with a position come first, in ascending order; properties without a position follow. The position affects:
- the order of the fields in the create dialog,
- the order of the columns on the search page,
- the order of the fields on the Data Sheet.
Use steps of 10 (10, 20, 30, …). Then you can insert a property later without renumbering the others.
Drag and drop is not available for properties. Reordering columns in the column picker of the search page only applies to the current session.
Remove a Property
Right-click a property row to remove it with Unlink
Right-click the row and choose Unlink. Confirm the question Remove link? with Unlink. The property is removed from the type (Link removed). Existing entities keep their values until they are upgraded; then the values are removed (they remain in the history).
Relationships
Relationships connect entities of different types, for example an Organization with its Addresses. A relationship is based on a relationship type, which defines the target type.
The Relationship Type
Relationship types are managed under Administration → Datamodel → Relationship Types. Example has_address:
The relationship type has_address
| Field | Example | Notes |
|---|---|---|
| name | has_address | Technical name. |
| label / label_plural | Address / Addresses | The plural label is the title of the tab on the entity. |
| label_inverse / label_inverse_plural | Organization / Organizations | Name of the relationship seen from the target. |
| description | Tooltip. | |
| icon | Icon of the relationship. | |
| target_type | Address | Required. Entity type of the target. |
| key_script / label_script | Optional scripts for the key and label of each relationship. |
Relationships can carry their own properties, for example a role. Add them on the tab Properties of the relationship type, exactly like properties of an entity type.
Add a Relationship to an Entity Type
- Open the entity type Organization and switch to the tab Relationships.
- Click Link existing and select the relationship type
has_address. - Click Submit.
The relationships of the entity type Organization
Entities of the type Organization now have a tab Addresses (the plural label), in which users link addresses (see Link Entities). Existing organizations get the tab after their upgrade.
There is no cardinality: an organization can have any number of addresses, and none is required. The tabs of the relationships on an entity are sorted alphabetically. Remove a relationship with right-click → Unlink, as for properties.