--- title: "Singular attribute" slug: "core-singular-attribute-resolver" updated: 2026-04-13T09:20:05Z published: 2026-04-13T09:20:05Z canonical: "docs.lobstersoftware.com/core-singular-attribute-resolver" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Singular attribute > [!NOTE] > Rule types – Abstract > > **Purpose:** In the context of a *reference object* (entity type must be attribute owner), a specific 'Singular attribute' is returned that can be accessed in read and write mode. > > > [!TIP] > > Tooltip > > > > - **Usage**: Access to the attribute selected by the **Singular attribute** parameter enables read and write accesses, which are typically performed by concatenation (e.g. with the [Object property](/v1/docs/en/core-property-resolver) value resolver). > > - **Parameter**: The **Singular attribute** parameter defines via a static selection which singular attribute of the entity to be returned. > > - **NOTE:** Alternatively, the [Attribute](/v1/docs/en/orchestration-rules-attributes) value resolver can be used to access a **Singular attribute**. However, this returns the attribute as the only element of a list. ![images/download/attachments/78258104/image2021-10-5_17-6-41-version-1-modificationdate-1633446403934-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-5_17-6-41-version-1-modificationdate-1633446403934-api-v2.png) The [Singular attribute](/v1/docs/en/core-singular-attribute-resolver) value resolver allows access to a *singular attribute* of an entity. It expects an entity as a *reference* *object*, that is considered as an 'Attribute owner' according to its type (see [Attribute (Resolvers)](/v1/docs/en/orchestration-resolvers-attributes)) and whose data model provides at least one *singular attribute*. Its specific data structure can be read and write accessed via the return value of the value resolver. A write access implies the creation of the attribute, even if it does not yet exist. The **Singular attribute** parameter specifies the type of *singular attribute* to be returned. **NOTE:** In principle, the [Attribute](/v1/docs/en/orchestration-rules-attributes) value resolver could also be used to access a *singular attribute* of a particular type. However, this formally returns a list with exactly *one* or *no* instance of the attribute. In the context of the default entities predefined in the various **Lobster Data Platform/Orchestration** name modules, *singular attributes* do not play a role as long as specific extensions are not implemented through [Custom type definitions](/v1/docs/en/custom-custom-type-definition). Instead, *typed attributes* of different types are almost always used (see [Business objects and attributes](/v1/docs/en/orchestration-btos-attributes)) to assign 'singular' data to an entity. In connection with specific *add-on modules* (General, GLS, IDS, TOF), *singular attributes* appear for [Companies/Clients](/v1/docs/en/base-company-account), each offering all fields for specific 'add-ons' bundled in a single *attribute* in the company account. ## Configuration The [Singular attribute](/v1/docs/en/core-singular-attribute-resolver) value resolver expects a *reference object* whose data model can contain at least one singular attribute. | The **Singular attribute** parameter provides a static single selection for the attribute type to be accessed. As long as the context of the configuration does not refer to a specific entity type, all types of *singular attributes* that the system supports will appear for selection (due to the installation and licensing of modules). Whether the [Role of session](/v1/docs/en/base-session-role-value) has permissions for the specific *add-on modules* for [Companies/Clients](/v1/docs/en/base-company-account) (see above) is not important for the options when configuring the value resolver. The [Combobox](/v1/docs/en/fre-combo-box-vo) element offers a search function that takes into account the internal class names of the attributes as well as associated localizations from the language management. | ![images/download/attachments/78258104/image2021-10-5_17-7-58-version-1-modificationdate-1633446480679-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-5_17-7-58-version-1-modificationdate-1633446480679-api-v2.png) | | --- | --- | | If, on the other hand, the context of the configuration refers to a specific entity type for the *reference object*, then only the types of *singular attributes* that are explicitly implemented in the relevant data model appear for selection. On the right, within a company account, an erroneous attempt is made to access the *singular attributes* for 'add-ons' within the 'address' (`address`) of the company. The dropdown then shows no entries to choose from, because the singular attributes for 'add-ons' are directly in the `attributes` accounts of the company account and not within the address of the company. | ![images/download/attachments/78258104/image2021-10-5_17-8-37-version-1-modificationdate-1633446519998-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-5_17-8-37-version-1-modificationdate-1633446519998-api-v2.png) | If no **Singular attribute** is selected, then the return value of the resolver is always 'no value' (`null`). If a selected **Singular attribute** of the type of *reference object* present at runtime is not supported, the return value is also 'no value' (`null`). If the *reference object* present at runtime supports the selected **Singular attribute**, but the *reference object* does not contain any relevant data, 'no value' (`null`) is also returned. ## Example An entity type defined via [Custom type definitions](/v1/docs/en/custom-custom-type-definition) is intended to map the master data of discrete 'storage capacities' (e.g. within a building, site or vehicle). For identification purposes and, if necessary, as a basis for calculations for loading (*weight & balance*), it should be possible to define the position of each 'storage capacity' relative to a reference point by three coordinates (x, y, z). The 'position information' (i.e. the coordinate triplet) is summarized in a user-defined singular attribute (see [Custom type definitions](/v1/docs/en/custom-custom-type-definition)). When copying an existing 'storage capacity', this attribute should be deleted automatically, so that the coordinates in the copy must always be assigned by starting from empty input fields. Runtime example: | Display in the form | Entity in XML format | | --- | --- | | ![images/download/attachments/78258104/image2021-10-5_17-16-24-version-1-modificationdate-1633446987127-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-5_17-16-24-version-1-modificationdate-1633446987127-api-v2.png) **NOTE:** The unit has not been specified here. The attribute basically uses scalar numerical values that can refer to a specific unit of length in the context of a vehicle, for example, while the same fields are interpreted as positions in a shelving system in another context, for example. | ```xml LEFT/REAR BAGGAGE HOLD ... ... ... ``` | Configuration: | An event handler that reacts to 'Copy' (see [Common action event](/v1/docs/en/core-common-action-event) as a **Triggering** **event** is configured as shown on the right: - The **Validating rule** uses a [Check type](/v1/docs/en/core-check-type-rule) to ensure that the entity is of the 'Storage capacity' type. - The **Action on passed rule** uses a [Set value](/v1/docs/en/core-set-value-actor) event action to assign the value 'No value' to the 'PositionXyz' attribute defined by [Singular attribute](/v1/docs/en/core-singular-attribute-resolver) value resolver. This deletes the attribute altogether. Input elements for the contained fields (including x, y, z) then appear empty in the copy. | ![images/download/attachments/78258104/image2021-10-5_17-10-1-version-1-modificationdate-1633446603890-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-10-5_17-10-1-version-1-modificationdate-1633446603890-api-v2.png) | | --- | --- |