--- title: "Typed attribute join" slug: "core-typed-attribute-join" updated: 2026-05-19T13:47:40Z published: 2026-05-19T13:47:40Z canonical: "docs.lobstersoftware.com/core-typed-attribute-join" --- > ## 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. # Typed attribute join ![images/download/attachments/167860598/image-2024-2-1_13-17-43-version-1-modificationdate-1706789864074-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_13-17-43-version-1-modificationdate-1706789864074-api-v2.png) As with a [Typed attribute projection](/v1/docs/en/core-typed-attribute-projection), a [Typed attribute join](/v1/docs/en/core-typed-attribute-join) returns all attribute values or attribute values selected via an **On** condition for the *subtype* selected as the **Type** of the *attribute type* selected via the **Attribute** parameter. This is based on the main entity of the search or a different **Attribute owner path**. ## Configuration | Parameter | Data type | Description | | --- | --- | --- | | ***Specific parameters*** | | **Attribute owner path** | *Entity* *(projection)* | An **Attribute owner path** only needs to be explicitly defined by configuring a *projection* (see [Projections](/v1/docs/en/core-i-search-projection)) if the entity in the context of the search is not the owner of the attributes that are to be evaluated. This is relevant in the following cases, for example: - The *attribute owner* is an entity included in the search via [Entity join](/v1/docs/en/core-entity-join). - The *attribute owner* is a *line item* of an entity in the context of the search. - The *attribute owner* is an entity embedded in the entity data in the context of the search, e.g. the "Address" (`address`) of an account (see [Users](/v1/docs/en/base-user), [Companies/Clients](/v1/docs/en/base-company-account)). | | **Attribute** | *Class* *(attribute type)* | In the [Combobox](/v1/docs/en/fre-combo-box-vo) element for the **Attribute** parameter, a selection must be made from the attribute type options offered via a *dropdown*. Only *attribute types* for typed attributes that the entity type of the applicable *attribute owner* supports per implementation are available for selection here. **NOTE:** If no options are available for the **Attribute** or if options are missing, then the **Attribute owner path** may not have been set appropriately (e.g. the "Address" of an account for which no attributes are implemented). | | **Type** | *Dynamic enumeration value (subtype)* | The [Combobox](/v1/docs/en/fre-combo-box-vo) element for the **Type** parameter enables a *single selection* for a *subtype* from the dynamic enumeration for the selected typed **Attribute**. **NOTE:** The options available in the context of the configuration can be restricted by [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter). **NOTE:** Technically, the selection is optional. If no type is selected, the system checks for attribute values without a subtype that cannot exist. | | ***Generic parameters*** | | ***Join alias, Join type, Optional, On condition*** ***see*** [Entity join](/v1/docs/en/core-entity-join) | ## Examples ### Simple use case: Access to "Managing Director" address contact(s) for a company account In a [Tuple search](/v1/docs/en/core-tuple-search) for [Companies/Clients](/v1/docs/en/base-company-account), an output column provides the address details for the CEO, provided that an entry with the [Contact type](/v1/docs/en/base-contact-type) "CEO" has been created under the "Address contacts" of the company address. Companies *without* an address contact of the "Managing Director" (`CEO`) type should not be included in the search. Configuration: | The configuration shown on the right for a [Typed attribute join](/v1/docs/en/core-typed-attribute-join) creates the basis for accessing the address data of the managing director if a corresponding address contact has been created: - The **Attribute owner path** refers to the `address` property of the company account, as the address contacts are assigned to the company address. - The *attribute type* "Address contact" (`AddressContact`) is selected in the **Attribute** parameter. - The **Type** parameter defines the [Contact type](/v1/docs/en/base-contact-type) "Managing Director" (`CEO`). - The name `ceo` is arbitrarily assigned as the **Join alias**. - The "Inner" **Join type** ensures that only [Companies/Clients](/v1/docs/en/base-company-account) for which a `CEO` address contact is specified are listed. | ![images/download/attachments/167860598/image-2024-2-1_13-19-24-version-1-modificationdate-1706789965091-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_13-19-24-version-1-modificationdate-1706789965091-api-v2.png) | | --- | --- | | The [Tuple search](/v1/docs/en/core-tuple-search) requires exactly two [Projections](/v1/docs/en/core-i-search-projection), as shown on the right: - The first [Property projection](/v1/docs/en/core-property-projection) accesses the "Name" property in the address (`address.name1`) of the company. - The second [Property projection](/v1/docs/en/core-property-projection) accesses the `contactAddress` property in the address contact attribute supplied via **Join** **alias** `ceo`, which references a complete address. | ![images/download/attachments/167860598/image-2024-2-1_13-20-29-version-1-modificationdate-1706790029600-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_13-20-29-version-1-modificationdate-1706790029600-api-v2.png) | **NOTE:** The "Plural attribute" option in the definition for the enumeration value controls whether or not a company can have multiple address contacts with the [Contact type](/v1/docs/en/base-contact-type) "Managing Director" (`CEO`). When several "CEOs" are assigned, the [Tuple search](/v1/docs/en/core-tuple-search) lists the same company several times if several "CEO contacts" exist. Runtime example: ```xml                 address.name1         ceo.contactAddress                                Mueller GmbH                           ...                                        Xflow AG                           ...                                                          Xflow AG                           ...                                               ...       ``` ### More complex example: Selective access to managing directors A variant of the [Tuple search](/v1/docs/en/core-tuple-search) from the previous example should only allow address contacts for the [Contact type](/v1/docs/en/base-contact-type) "Managing Director" (`CEO`) identified as female via the address field "Salutation" (`salutation`) by selecting the salutation "Ms." (`MS`). > [!NOTE] > The following **On** condition would be obvious for this purpose: > > ![images/download/attachments/167860598/image-2024-2-1_12-47-44-version-1-modificationdate-1706788064707-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_12-47-44-version-1-modificationdate-1706788064707-api-v2.png) > > However, this results in an error message (see also [Joins](/v1/docs/en/core-abstract-join)) if it is added to the existing [Typed attribute join](/v1/docs/en/core-typed-attribute-join) (`ceo`). > > --- > > `A join within a on condition is not possible` > > --- > > The problem is that the **On** condition refers to a field of the "Address" entity, which brings the `contactAdress` property into play. > > Access to the `contactAddress` *implies* another join that must be explicitly formulated so that a **On** condition can be applied to it. Configuration: The [Typed attribute join](/v1/docs/en/core-typed-attribute-join) with the **Join alias** `ceo` is retained as shown above (without **On** condition). | The [Mapped Join](/v1/docs/en/core-mapped-join) shown on the right must be added as a reference point for the **On** condition: - The `contactAdress` property from the `ceo` join, which refers to an address, is specified as the **Join property**. - The name `ceo_addr` is arbitrarily assigned as the **Join alias**. - "Inner" is selected as the **Join type** so that the **On** condition has a restrictive effect. Only companies with a female managing director should be listed. - The **Optional** option is unchecked so that the restrictive effect of the **On** condition is guaranteed even if the [Projections](/v1/docs/en/core-i-search-projection) for output columns are retained unchanged (see Note below). - The [Field restriction](/v1/docs/en/core-property-search) for the [Salutation](/v1/docs/en/base-salutation) shown in the info box above serves as the **On** condition. | ![images/download/attachments/167860598/image-2024-2-1_13-23-23-version-1-modificationdate-1706790203633-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_13-23-23-version-1-modificationdate-1706790203633-api-v2.png) | | --- | --- | | **NOTE:** As long as none of the [Projections](/v1/docs/en/core-i-search-projection) for output columns refer to the additional **Join alias** `ceo_addr`, the **Join type** "Inner" does not have a restrictive effect as long as the **Optional** option is checked. | | The screenshot on the right shows a variant for configuring the [Projections](/v1/docs/en/core-i-search-projection): - The first [Property projection](/v1/docs/en/core-property-projection) remains unchanged. - The second [Property projection](/v1/docs/en/core-property-projection) now refers directly to the **Join alias** `ceo_addr` for the added [Mapped Join](/v1/docs/en/core-mapped-join) to the `ceo` address, instead of reading it from the path `ceo.contactAdress` of the address contact attribute as before. With this adjustment, the **Optional** option can be checked again for the [Mapped Join](/v1/docs/en/core-mapped-join) without the **Join type** "Inner" losing its restrictive effect. | ![images/download/attachments/167860598/image-2024-2-1_13-24-55-version-1-modificationdate-1706790295244-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-2-1_13-24-55-version-1-modificationdate-1706790295244-api-v2.png) |