--- title: "Unit" slug: "core-unit-value-editor" updated: 2026-04-16T08:57:36Z published: 2026-04-16T08:57:36Z canonical: "docs.lobstersoftware.com/core-unit-value-editor" --- > ## 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. # Unit > [!NOTE] > Resolver – Abstract > > **Purpose:** Returns a value defined by static single selection from one of the dynamic enumerations for [Units](/v1/docs/en/core-unit). > > > [!TIP] > > Tooltip > > > > - **Usage**: The resolver returns the statically selected dynamic enumeration value for a "unit" as return value. The *input value* is ignored. > > - **Parameter:** A [Combobox](/v1/docs/en/fre-combo-box-vo) element allows the selection of a "unit" as return value. > > - **WARNING:** Applicable [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) filters or specifications for the context (([Number with unit field](/v1/docs/en/custom-custom-numeric-value-field) or [Numeric types](/v1/docs/en/base-numeric-value-type) of an attribute) do NOT restrict the selection in the resolver. ![images/download/attachments/128387014/image2023-1-9_10-52-12-version-1-modificationdate-1676010663003-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-9_10-52-12-version-1-modificationdate-1676010663003-api-v2.png) **IMPORTANT:** All resolvers for [Static values](/v1/docs/en/core-literal-value-resolver) ignore the *input value*. Within a resolver chain (see [Chained resolver](/v1/docs/en/core-chained-resolver)) this prevents the processing of all preceding resolvers (if any). The [Unit](/v1/docs/en/core-unit-value-editor) resolver returns a value determined by static single selection via [Combobox](/v1/docs/en/fre-combo-box-vo) from one of the predefined dynamic enumerations (see [Enumerations](/v1/docs/en/core-dynamic-enum-definition)) for [Units](/v1/docs/en/core-unit): - [Area unit](/v1/docs/en/core-area-unit) - [Currency](/v1/docs/en/core-currency) - [Length unit](/v1/docs/en/core-length-unit) - [Quantity unit](/v1/docs/en/core-quantity-unit) - [Size unit](/v1/docs/en/core-size-unit) - [Temperature unit](/v1/docs/en/core-temperature-unit) - [Time unit](/v1/docs/en/core-time-unit) - [Volume unit](/v1/docs/en/core-volume-unit) - [Weight & mass units](/v1/docs/en/core-weight-and-mass-unit) The only difference to the [Any enumeration](/v1/docs/en/core-any-dynamic-enum-value-editor) resolver is the restriction of the selection to values from these dynamic enumerations. The resolver appears by default as a suggestion for value configurations when a dynamic enumeration value is expected to define a "unit". Typically, this affects the "unit" (`unit`) field in one of the following contexts: | Class | Context | | --- | --- | | "Unit number" (`UnitNumber`) | e.g. [Calculate value](/v1/docs/en/core-calculate-value-resolver) (resolver). | | [Number with unit field](/v1/docs/en/custom-custom-numeric-value-field) (`NumericValue`) | [Custom type definitions](/v1/docs/en/custom-custom-type-definition) or their instances. | | "Numeric attribute" (`NumericValueAttribute`) | Implementation of a typed attribute for a [Numeric types](/v1/docs/en/base-numeric-value-type) for an entity. | --- **CAUTION****:** The definition for a [Number with unit field](/v1/docs/en/custom-custom-numeric-value-field) or a [Numeric types](/v1/docs/en/base-numeric-value-type) specifies via a multiple selection of one or more of the named dynamic enumerations which [Units](/v1/docs/en/core-unit) should be selectable in the given context by default in forms. The [Unit](/v1/docs/en/core-unit-value-editor) resolver ignores such specifications (as well as any applicable [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter)) and always offers all values of all [Units](/v1/docs/en/core-unit) for selection. Any assignments to a "unit" field will be stored without any plausibility check regarding the "stored" multiple selection for [Units](/v1/docs/en/core-unit). --- ## Configuration | The [Combobox](/v1/docs/en/fre-combo-box-vo) element allows static single selection for values from all dynamic enumerations for [Units](/v1/docs/en/core-unit). Its search function looks for matches between the text input and the labels listed in the dropdown for the enumeration values of [Units](/v1/docs/en/core-unit). The label contains the following components: - The localization for the name of the dynamic enumeration, e.g. "Volume unit". - The localization for the dynamic enumeration value, e.g. "US Barrel". - The internal name of the dynamic enumeration value, e.g. `BARREL_US` **NOTE:** If [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) are configured for these [Units](/v1/docs/en/core-unit), they do not restrict the selection of values during configuration or their use as return values at runtime. | ![images/download/attachments/128387014/image2023-1-9_10-52-57-version-1-modificationdate-1676010662993-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-9_10-52-57-version-1-modificationdate-1676010662993-api-v2.png) | | --- | --- | | The dynamic enumeration to which a selected value belongs is identified as the class for the return value. | ![images/download/attachments/128387014/image2023-1-9_10-53-26-version-1-modificationdate-1676010662988-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-9_10-53-26-version-1-modificationdate-1676010662988-api-v2.png) | ## Example An association criteria (see [Association criteria](/v1/docs/en/core-association-criteria)) is passed if the input value is a business object of the type "Shipment" (see [Shipments](/v1/docs/en/shp-shipment)), whose value is specified in a [Currency](/v1/docs/en/core-currency) from a statically defined positive list. Configuration: ![images/download/attachments/128387014/image2023-1-9_10-50-31-version-1-modificationdate-1676010663009-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-9_10-50-31-version-1-modificationdate-1676010663009-api-v2.png) - Within the [Entity property rule](/v1/docs/en/core-entity-property-rule) expanded in the image, the "Unit" (`unit`) field for the numeric attribute "Goods value" (`GOODS_VALUE`) is accessed on the left. - The [In list](/v1/docs/en/core-in-matcher) compare type searches the positive list configured on the right, which here statically defines a [Create list](/v1/docs/en/core-create-list-resolver) resolver in which two entries are defined by one instance each of the [Unit](/v1/docs/en/core-unit-value-editor) resolver. **NOTE:** As can be seen in the screenshot, the search function can limit the selection in the dropdown to specific units of a certain type (here: [Currency](/v1/docs/en/core-currency)). In the search text (`^Cur`), the ^ symbol has been prefixed here so that only options whose label begins with "Cur" are considered matches.