Skip to content

Lookup

Reference-field picker: bind .data_source__thing_id to the thing_id UUID of a platform reference field type. The component loads that field type build and renders the correct lookup UI (autocomplete, radio, search grid, etc.).

HTML tag: c-e0792387377784f0d83cd94a55e1a995c

  • pick a value for a reference field type
  • foreign-key or enum lookup driven by field type config
  • autocomplete, radio, or search-grid lookup UI
PropTypeDefaultDescription
displayValueString
data_source__thing_idStringthing_id UUID of a reference field type. Bind from field_type__thing_id. Not a field type name, enum id, entity id, component id, or view id.
data_source_input_paramsObject[object Object]
valueString
adding_disabledBoolean
clear_button_visibleBooleantrue
createNewString
enabledBooleantrue
is_versionBoolean
display_pathStringcommittee__display
value_pathStringcommittee__display
itemsArray
labelString
lkp_parent_thing_idString
lookup_typeString
lookup_ui_typeString
modeString
placeholderStringType here to Search
radio_group_orientationString
record_versionsArray
search_gridObject[object Object]
search_grid_infoObject[object Object]
selectedItemObject[object Object]
show_objectBooleantrue
show_object_disabledBoolean
themeString
thing_idString
thing_id_columnString
  • Set .data_source__thing_id to the reference field type thing_id UUID — not its display name or code, and not an enum, entity, component, or view id.
  • .value (stored id) and .displayValue (label); @selected-item-changed detail.value is the full row.
  • value-modified / displayValue-modified while typing; value-changed when committed id changes.
  • Optional .data_source_input_params for filters.
  • Do not set lookup_ui_type, display_path, or value_path — the component derives them from the field type build.
  • May embed search grid internally — still use c-e0792387377784f0d83cd94a55e1a995c, not ab-data-grid directly.
EventDetail
selected-item-changedvalue: Object
value-modifiedString
displayValue-modifiedString
value-changedString
show-object
focus
blur
SignatureDescription
focus()
clear()
createNewEntity(value: any)

Do not pass enum, entity, component, or view thing_id as data_source__thing_id. Do not set lookup_ui_type, display_path, or value_path. Do not use ab-select for reference field types that need search/create/show-object. Do not instantiate lookup search grid component directly in forms.

<c-e0792387377784f0d83cd94a55e1a995c .data_source__thing_id=${field_type__thing_id} .data_source_input_params=${{}} .value=${value} .displayValue=${displayValue} @selected-item-changed=${onSelectedItemChanged}></c-e0792387377784f0d83cd94a55e1a995c>