> ## Documentation Index
> Fetch the complete documentation index at: https://www.docusnap.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Custom Type with a Detail View

> Create a custom type with fields, give it a detail view with a list and sections, and fill in a first asset.

We create a custom type for air conditioners, give it custom fields and a tab
of its own, and then enter the first unit.

**Prerequisite:** write access in *Administration*. For the detail view in
step 3, the Business edition or higher.

## Starting point

Docusnap Sports GmbH cools its server room with an air conditioner. No
built-in type fits it. The refrigerant, the cooling capacity, the
commissioning date, whether there is a maintenance contract, and the design
are to be recorded. The compressors and the filling of the refrigerant circuit
are to appear on a tab of their own.

## 1. Create the type

**1. Open the dialog**

*Administration › Data Model › Types and Fields*. We open the *Create Type*
dialog.

**2. Enter the basics**

*Type Name (German)*: *Klimagerät*, *Type Name (English)*: *Air
Conditioner*. Add an icon and at least one navigation list entry in which
the type will appear later.

**3. Create**

*Create* creates the type and opens it. We edit fields, detail view and
preview on its tabs.

## 2. Create the fields

On the *Fields* tab, we create five custom fields. The *Field* button next to
*Create* adds a field and keeps the dialog open for the next one.

**1. Enter the fields**

| *Display Name (English)* | Type |
| - | - |
| Refrigerant | *Text* |
| Cooling Capacity | *Number* |
| Commissioning | *Date* |
| Maintenance Contract | *Yes/No* |
| Design | *Selection* |

**2. Selection values for Design**

For the *Design* field, we enter the values, for example *Split* and
*Monoblock*. A *Selection* without values locks *Create*.

> [!NOTE]
>
> Customizing Full with the detail view is available from the Business edition.
> Steps 1 and 2—custom types and custom fields—work in all editions.

## 3. Build the detail view

The custom tab is built on the *Detail View* tab: one tab, groups in it, menu
items in the groups.

**1. Name the tab**

*Tab Name (German)*: *Technik*, *Tab Name (English)*: *Technology*.

**2. Create a group**

*Group* creates a group. We name it *Refrigerant Circuit*.

**3. Menu item Compressors as a list**

In the group, a menu item with *Display Name (English)* *Compressors* and
*Display Type* *List*. We create its fields on the menu item itself, in the
*Create Field* dialog, for example *Manufacturer* and *Model*. On the asset,
they become columns.

**4. Menu item Filling as Label / Value**

A second menu item *Filling* with *Display Type* *Label / Value*. *Section*
adds a section, *Section Title* *Refrigerant*. In it, *Field* creates the
fields, for example *Filling Quantity* (*Number*) and *Last Inspection*
(*Date*).

> [!NOTE]
>
> The fields of a menu item are not picked from the type's fields. They are
> created on the menu item and appear only in the custom tab—in the overview
> only if they are checked under *Information*.

## 4. Save

*Save* in the type's header saves everything together: basics, fields and
detail view. The *Preview* tab then shows the layout of the detail page, with
the type's fields in the first section, *General*, and the *Technology* tab.

## 5. Create an asset and enter values

**1. Create the asset**

In the type's navigation list, *Asset* opens the create dialog. *Type*:
*Air Conditioner*, *Name*: *KLIMA-SR-01*. *Create*.

**2. Type fields in the overview**

The custom fields appear on the *Overview* under *General*. In edit mode,
opened with the pencil, we enter refrigerant, cooling capacity,
commissioning, maintenance contract and design.

**3. Technology tab: Compressors**

The *Technology* tab sits between *Overview* and *Relations*. For the
*Compressors* menu item, *Edit* opens the *Compressors – Edit Entries*
dialog. *Row* adds a row; *Import* takes rows from a table such as Excel.

**4. Technology tab: Filling**

For the *Filling* menu item, *Edit* edits the values directly on the page.
The bar *Editing 'Filling'* carries *Discard* and *Save*.

## Result

* **What kind of unit is it?** Refrigerant, cooling capacity, commissioning,
  maintenance contract and design appear on the overview under *General*.
* **What is inside?** The *Technology* tab lists the compressors and shows the
  filling of the refrigerant circuit in the *Refrigerant* section.

Every further air conditioner gets the same fields and the same tab.

## Related

[Customize the Data Model](https://www.docusnap.com/docs/en/settings/data-model.md) and [Edit and delete assets](https://www.docusnap.com/docs/en/assets/edit.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.