# Configure relations between objects

#### [![image.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/scaled-1680-/XVWimage.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/XVWimage.png)[IT](https://wiki.eaglearca.com/link/138#bkmrk-italiano)

---

#### [![eng.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/scaled-1680-/jQPeng.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/jQPeng.png)**English**

<span style="white-space: pre-wrap;">Relations are an </span>**attribute type**<span style="white-space: pre-wrap;"> that allows you to </span>**connect objects belonging to different object classes**, creating structured links between the elements of the project.

<span style="white-space: pre-wrap;">This function allows you to represent logical relationships between instances. For example, you can connect </span>**a road to the lighting poles**<span style="white-space: pre-wrap;"> along its route, or associate a </span>**road with the road signs**<span style="white-space: pre-wrap;"> installed along it.</span>

<span style="white-space: pre-wrap;">Relations are configured during the </span>[**creation or editing of an object class**](https://wiki.eaglearca.com/books/backoffice/page/create-and-manage-object-classes "Create and manage Object Classes"), inside a dedicated section.

<p class="callout info"><span style="white-space: pre-wrap;">Available only to users with </span>`<span class="editor-theme-code">backoffice</span>`<span style="white-space: pre-wrap;"> permissions.</span></p>

---

### How relations work

<span style="white-space: pre-wrap;">A relation always connects </span>**two object classes**:

- **Current object class**  
    <span style="white-space: pre-wrap;">This is the class you are configuring at that moment in the </span>**Backoffice**.
- **Linked object class**  
    This is the class with which the objects of the current class can be linked.

When a relation is configured between two classes, objects can be associated with one or more instances of the related class.

<span style="white-space: pre-wrap;">The number of objects that can be linked depends on the </span>**cardinality**<span style="white-space: pre-wrap;"> set in the relation.</span>

---

### Set up relations

<span style="white-space: pre-wrap;">To configure a relationship between object classes, open the </span>**Backoffice**<span style="white-space: pre-wrap;">, access the edit page of an object class, and select the </span>**Relations**<span style="white-space: pre-wrap;"> tab.</span>

![1 - Tab Relations.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/qHT1-tab-relations.png)

<span style="white-space: pre-wrap;">To create a new relationship, click the </span>**Add relation**<span style="white-space: pre-wrap;"> button.</span>

<span style="white-space: pre-wrap;">The configuration is divided into two sections: </span>**This object class**<span style="white-space: pre-wrap;"> and </span>**Is related to**.

[![2 - Card Relation.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/2-card-relation.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/2-card-relation.png)

#### Current object class

<span style="white-space: pre-wrap;">The </span>**This object class**<span style="white-space: pre-wrap;"> section represents the object class you are editing.</span>  
<span style="white-space: pre-wrap;">The </span>**Object class**<span style="white-space: pre-wrap;"> field is filled in automatically and cannot be edited.</span>

[![3 - Section This object Class.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/Uf23-section-this-object-class.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/3-section-this-object-class.png)

In this section, you can configure:

- **Cardinality:**<span style="white-space: pre-wrap;"> select </span>**1**<span style="white-space: pre-wrap;"> or </span>**N**<span style="white-space: pre-wrap;"> to indicate how many objects of the current class can be linked to </span>**objects of the other class**.
- **Required:**<span style="white-space: pre-wrap;"> activate the switch if this object class is necessary for the existence of the other one.</span>  
    If the switch is active, an object of the other class can exist only if it is linked to an object of this class.
- **Displayed name:**<span style="white-space: pre-wrap;"> when an object with a relationship is created and </span>[**displayed in the app**](https://wiki.eaglearca.com/books/funzionalita-dellapp/page/manage-object-relations "Manage object relations"), the relationship attribute has a name. If necessary, you can enter the name with which this class is shown in the relationship.  
    If no name is set, the system automatically uses the name of the object class.
- **Attributes to show:**<span style="white-space: pre-wrap;"> when an object with a relationship is created and displayed in the app, the related object class appears in the relationship attribute. The related class can be expanded to show a preview of its attributes. With this field, you can choose </span>**which attributes to show**<span style="white-space: pre-wrap;">. You cannot select attributes of type </span>**relationship**<span style="white-space: pre-wrap;"> or </span>**object list**.

#### Linked object class

<span style="white-space: pre-wrap;">The </span>**Is related to**<span style="white-space: pre-wrap;"> section allows you to define the object class to link to the current class.</span>  
<span style="white-space: pre-wrap;">In the </span>**Object class**<span style="white-space: pre-wrap;"> field, select from the dropdown menu the class with which to create the relationship.</span>

[![4 - Section Is related to.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/yr24-section-is-related-to.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/4-section-is-related-to.png)

You can also configure the following fields for this class:

- **Cardinality:**<span style="white-space: pre-wrap;"> select </span>**1**<span style="white-space: pre-wrap;"> or </span>**N**<span style="white-space: pre-wrap;"> to indicate how many objects of the linked class can be associated with an object of the current class.</span>
- **Required:**<span style="white-space: pre-wrap;"> activate the switch if the linked object class is necessary for the existence of the current class.</span>  
    If the switch is active, an object of the current class can exist only if it is linked to an object of this class.
- **Displayed name:**<span style="white-space: pre-wrap;"> if necessary, you can enter the name with which the linked class is shown in the relationship.</span>  
    If no name is set, the system automatically uses the name of the linked object class.
- **Attributes to show:**<span style="white-space: pre-wrap;"> with this field, you can choose </span>**which attributes to show**<span style="white-space: pre-wrap;">, but </span>**only after selecting the class**<span style="white-space: pre-wrap;">. You cannot select attributes of type </span>**relationship**<span style="white-space: pre-wrap;"> or </span>**object list**.

#### Relationship cardinality

<span style="white-space: pre-wrap;">The </span>**overall cardinality**<span style="white-space: pre-wrap;"> of the relationship depends on the combination of the </span>**values set in the two sections**.

<table class="align-center" id="bkmrk-configurationmeaning" style="width: 100%; border-style: solid;"><colgroup><col style="width: 322px;"></col><col></col></colgroup><tbody><tr><th>**Configuration**

</th><th>**Meaning**

</th></tr><tr><td class="align-center">1 → 1

</td><td>one object can be linked to one object only

</td></tr><tr><td class="align-center">1 → N

</td><td>one object can be linked to multiple objects

</td></tr><tr><td>N → 1

</td><td>multiple objects can be linked to one object

</td></tr><tr><td>N → N

</td><td>multiple objects can be linked to each other

</td></tr></tbody></table>

<p class="callout warning">**Only one of the two classes can be required**, making one class necessary for the existence of the other.</p>

<span style="white-space: pre-wrap;">💡 </span>**Tip:**<span style="white-space: pre-wrap;"> Limit the attributes to display to keep the attributes panel more readable.</span>

---

### Configuration rules and conditions

<span style="white-space: pre-wrap;">A current object class </span>**cannot be set as required**<span style="white-space: pre-wrap;"> if the linked object class already has </span>**created instances**.

[![5 - Object Class already in use.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/IMG5-object-class-already-in-use.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/5-object-class-already-in-use.png)

After saving a relationship, it is not possible to edit:

- <span style="white-space: pre-wrap;">the </span>**cardinality**
- <span style="white-space: pre-wrap;">the </span>**linked object class**
- <span style="white-space: pre-wrap;">the </span>**required**<span style="white-space: pre-wrap;"> status</span>

<span style="white-space: pre-wrap;">To configure a relationship on an object class of type </span>**Form**<span style="white-space: pre-wrap;"> or </span>**Global Form**<span style="white-space: pre-wrap;">, the class must be saved first. After saving, re-enter edit mode for the object class and open the </span>**Relations**<span style="white-space: pre-wrap;"> section to create the relationship.</span>

If a relationship is deleted, the system automatically removes the link from all involved instances.

---

### Links

- [Introduction to Object Classes](https://wiki.eaglearca.com/books/access-and-overview/page/introduction-to-object-classes "Introduction to Object Classes")

---

#### [![ita.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/scaled-1680-/ita.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-05/ita.png)**Italiano**

<span style="white-space: pre-wrap;">Le relazioni sono una </span>**tipologia di attributo**<span style="white-space: pre-wrap;"> che permette di </span>**collegare tra loro oggetti appartenenti a classi oggetto diverse**, creando legami strutturati tra gli elementi del progetto.

<span style="white-space: pre-wrap;">Questa funzione consente di rappresentare relazioni logiche tra istanze. Ad esempio, puoi collegare una </span>**strada** <span style="white-space: pre-wrap;">ai </span>**pali dell’illuminazione**<span style="white-space: pre-wrap;"> presenti lungo il suo tracciato oppure associarre una </span>**starada** <span style="white-space: pre-wrap;">ai </span>**segnali stradali**<span style="white-space: pre-wrap;"> installati lungo di essa.</span>

<span style="white-space: pre-wrap;">Le relazioni vengono configurate durante la </span>[**creazione o la modifica di una classe oggetto**](https://wiki.eaglearca.com/books/backoffice/page/create-and-manage-object-classes "Create and manage Object Classes"), all’interno di una sezione dedicata.

<p class="callout info"><span style="color: rgb(1, 70, 108); background-color: rgb(211, 239, 255); white-space: pre-wrap;">Disponibile solo per utenti con permesso </span>`<span class="editor-theme-code">backoffice</span>`<span style="color: rgb(1, 70, 108); background-color: rgb(211, 239, 255);">.</span></p>

---

### Come funzionano le relazioni

<span style="white-space: pre-wrap;">Una relazione collega sempre </span>**due classi oggetto**:

- **Classe oggetto corrente**  
    <span style="white-space: pre-wrap;">È la classe che stai configurando in quel momento nel </span>**Backoffice**.
- **Classe oggetto collegata**  
    È la classe con cui gli oggetti della classe corrente possono essere collegati.

Quando una relazione viene configurata tra due classi, gli oggetti possono essere associati a una o più istanze della classe relazionata.

<span style="white-space: pre-wrap;">Il numero di oggetti collegabili dipende dalla </span>**cardinalità**<span style="white-space: pre-wrap;"> impostata nella relazione.</span>

---

### Configurare le relazioni

<span style="white-space: pre-wrap;">Per configurare una relazione tra classi oggetto, apri il </span>**Backoffice**<span style="white-space: pre-wrap;">, accedi alla pagina di modifica di una classe oggetto e seleziona la tab </span>**Relazioni**.

![1 - Tab Relations.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/qHT1-tab-relations.png)

<span style="white-space: pre-wrap;">Per creare una nuova relazione clicca sul bottone </span>**Aggiungi relazione**.

<span style="white-space: pre-wrap;">La configurazione è suddivisa in due sezioni: </span>**Questa classe oggetto**<span style="white-space: pre-wrap;"> e </span>**È legata a**.

[![2 - Card Relation.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/2-card-relation.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/2-card-relation.png)

#### Classe oggetto corrente

<span style="white-space: pre-wrap;">La sezione </span>**Questa classe oggetto**<span style="white-space: pre-wrap;"> rappresenta la classe oggetto che stai modificando.</span>  
<span style="white-space: pre-wrap;">Il campo </span>**Classe oggetto**<span style="white-space: pre-wrap;"> è compilato automaticamente e non può essere modificato.</span>

[![3 - Section This object Class.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/Uf23-section-this-object-class.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/3-section-this-object-class.png)

In questa sezione puoi configurare:

- **Cardinalità**<span style="white-space: pre-wrap;">: seleziona </span>**1**<span style="white-space: pre-wrap;"> oppure </span>**N**<span style="white-space: pre-wrap;"> per indicare quanti oggetti della classe corrente possono essere collegati </span>**agli oggetti dell'altra classe**.
- **Obbligatoria:**<span style="white-space: pre-wrap;"> attiva lo switch se questa classe oggetto è necessaria per l’esistenza dell’altra.</span>  
    Se lo switch è attivo, un oggetto dell’altra classe può esistere solo se è collegato a un oggetto di questa classe.  
    <span style="white-space: pre-wrap;"></span>
- **Nome visualizzato:** <span style="white-space: pre-wrap;">quando un oggetto con una relazione viene creato e </span>[visualizzato nell’app](https://wiki.eaglearca.com/books/funzionalita-dellapp/page/manage-object-relations "Manage object relations"), l’attributo della relazione ha un nome. Se necessario, puoi inserire il nome con cui questa classe viene mostrata nella relazione.  
    Se non viene impostato un nome, il sistema utilizza automaticamente il nome della classe oggetto.
- **Attributi da mostrare**<span style="white-space: pre-wrap;">: quando un oggetto con una relazione viene creato e visualizzato nell’app, la classe oggetto relazionata compare nell’attributo della relazione. La classe relazionata può essere espansa per mostrare un’anteprima dei suoi attributi. Con questo campo puoi scegliere </span>**quali attributi mostrare**<span style="white-space: pre-wrap;">. Non puoi selezionare attributi di tipo </span>**relazione**<span style="white-space: pre-wrap;"> o </span>**lista oggetti**.

#### Classe oggetto collegata

<span style="white-space: pre-wrap;">La sezione </span>**È legata a**<span style="white-space: pre-wrap;"> permette di definire la classe oggetto da collegare alla classe corrente.</span>  
<span style="white-space: pre-wrap;">Nel campo </span>**Classe oggetto**, seleziona dal menu a tendina la classe con cui creare la relazione.

[![4 - Section Is related to.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/yr24-section-is-related-to.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/4-section-is-related-to.png)

Anche per questa classe puoi configurare:

- **Cardinalità**<span style="white-space: pre-wrap;">: seleziona </span>**1**<span style="white-space: pre-wrap;"> oppure </span>**N**<span style="white-space: pre-wrap;"> per indicare quanti oggetti della classe collegata possono essere associati a un oggetto della classe corrente.</span>
- **Obbligatoria:** attiva lo switch se la classe oggetto collegata è necessaria per l’esistenza della classe corrente.  
    Se lo switch è attivo, un oggetto della classe corrente può esistere solo se è collegato a un oggetto di questa classe.
- **Nome visualizzato:** Se necessario, puoi inserire il nome con cui la classe collegata viene mostrata nella relazione.  
    Se non viene impostato un nome, il sistema utilizza automaticamente il nome della classe oggetto collegata.
- **Attributi da mostrare:** <span style="white-space: pre-wrap;">con questo campo puoi scegliere </span>**quali attributi mostrare**<span style="white-space: pre-wrap;">, ma </span>**solo dopo aver selezionato la classe**<span style="white-space: pre-wrap;">. Non puoi selezionare attributi di tipo </span>**relazione**<span style="white-space: pre-wrap;"> o </span>**lista oggetti**.

#### Cardinalità della relazione

<span style="white-space: pre-wrap;">La </span>**cardinalità complessiva**<span style="white-space: pre-wrap;"> della relazione dipende dalla combinazione dei</span> **valori impostati nelle due sezioni**.

<table class="align-center" id="bkmrk-configurazionesignif" style="width: 100%; border-style: solid;"><colgroup><col style="width: 322px;"></col><col></col></colgroup><tbody><tr><th>**Configurazione**

</th><th>**Significato**

</th></tr><tr><td class="align-center">1 → 1

</td><td>un oggetto può essere collegato a un solo oggetto

</td></tr><tr><td class="align-center">1 → N

</td><td>un oggetto può essere collegato a più oggetti

</td></tr><tr><td>N → 1

</td><td>più oggetti possono essere collegati a uno

</td></tr><tr><td>N → N

</td><td>più oggetti possono essere collegati tra loro

</td></tr></tbody></table>

<p class="callout warning">**Solo una delle due classi può essere obbligatoria**, rendendo una classe necessaria per l'esistenza dell'altra.</p>

<span style="white-space: pre-wrap;">💡 </span>**Suggerimento:** Limita gli attributi da visualizzare per lasciare il pannello attributi più leggibile.

---

### Regole e condizioni di configurazione

<span style="white-space: pre-wrap;">Una classe oggetto corrente </span>**non può essere impostata come obbligatoria**<span style="white-space: pre-wrap;"> se la classe oggetto collegata ha già delle </span>**istanze create**.

[![5 - Object Class already in use.png](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/IMG5-object-class-already-in-use.png)](https://wiki.eaglearca.com/uploads/images/gallery/2026-03/scaled-1680-/5-object-class-already-in-use.png)

Dopo il salvataggio di una relazione, non è possibile modificare:

- <span style="white-space: pre-wrap;">la </span>**cardinalità**
- <span style="white-space: pre-wrap;">la </span>**classe oggetto collegata**
- <span style="white-space: pre-wrap;">lo stato </span>**obbligatorio**

<span style="white-space: pre-wrap;">Per configurare una relazione su una classe oggetto di tipo </span>**Form**<span style="white-space: pre-wrap;"> o </span>**Form globale**<span style="white-space: pre-wrap;">, la classe deve essere prima salvata. Dopo il salvataggio, rientra in modifica nella classe oggetto e apri la sezione </span>**Relazioni**<span style="white-space: pre-wrap;"> per creare la relazione.</span>

Se una relazione viene eliminata, il sistema rimuove automaticamente il collegamento da tutte le istanze coinvolte.

---

### Collegamenti

- [Introduzione alle Classi Oggetto](https://wiki.eaglearca.com/books/access-and-overview/page/introduction-to-object-classes "Introduction to Object Classes")

---

***Last update:** *08 May 2026**