Skip to main content
Version: Next

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.

Properties tab of Address The properties of the entity type Address

The toolbar of the tab:

ButtonWhat 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.

  1. Click Link existing. The dialog Link existing PropertyType opens.

  2. Select one property type, for example string_property_type/generic for a plain text.

  3. Fill in the Relationship Properties — they describe the property on this entity type:

    FieldExampleNotes
    # (position)10Order of the property — see Change the Order.
    Nameteam_nameRequired, unique within the type. Technical name, letters, digits and _.
    LabelTeam nameRequired. Field label, per language.
    DescriptionName of the teamTooltip of the field and of the column header on the search page.
    RequiredonUsers must fill in the field.
    UniqueoffThe value must be unique among all entities of the type.
  4. Under Point to, keep Latest.

  5. Click Submit.

Dialog Link existing PropertyType 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.

Property Team name in the list The new property in the Properties tab of Team

Which property type?

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:

  1. Look at the positions of the neighbors, for example 10 and 20.
  2. Double-click the row of the property, enter 15 in # and press Enter.

Editing the position 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.
tip

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​

Context menu of 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:

Relationship type has_address The relationship type has_address

FieldExampleNotes
namehas_addressTechnical name.
label / label_pluralAddress / AddressesThe plural label is the title of the tab on the entity.
label_inverse / label_inverse_pluralOrganization / OrganizationsName of the relationship seen from the target.
descriptionTooltip.
iconIcon of the relationship.
target_typeAddressRequired. Entity type of the target.
key_script / label_scriptOptional 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​

  1. Open the entity type Organization and switch to the tab Relationships.
  2. Click Link existing and select the relationship type has_address.
  3. Click Submit.

Relationships tab of Organization 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.