Skip to content

drivardxrm/LookupDropdown.PCF

Repository files navigation

LookupDropdown.PCF

GitHub all releases

PowerApps Component framework (PCF) Control that renders a lookup field as a dropdown

IMPORTANT : The control needs to be configured using the Classic UI see issue #29 for more info

IMPORTANT : since v2.0.0.0 the control as been refactored to use FluentUI v9 to blend with Model-driven apps new Look

image

Blog posts :

Features:

  • Will honour the default view filtering and ordering that is set in the field properties of the form.

image

  • Show the record 'Primary Image' field.

  • Customize the records display text with text fields other than the 'Primary Name' field.

image

image

  • Support for Related Record Filtering (cascading)

LookupDropdownFiltering2

Dependencies

FluentUI V9: https://github.com/microsoft/fluentui

tanstack-query : https://react-query.tanstack.com/

Parameters

Parameter Description Default
lookupfield REQUIRED: Bound Lookup field to render as dropdown
customtext OPTIONAL: Customize display text with any text attributes of the record. put attribute schema names between brackets {}. Ex. {new_firstname} {new_lastname}. Leave blank to show record primaryname. Support multiple language using the format LANGUAGECODE1##{attrib1lang1} {attrib2lang1}__LANGUAGECODE2##{attrib1lang2} {attrib2lang2} ex: 1033##{new_nameen}__1036##{new_namefr}
customselecttext OPTIONAL: Custom text for dropdown selector text (default = Select)
dependentlookupfield OPTIONAL: Dependent Lookup field. Use when Related Records Filtering is set on the Field Properties
showRecordImage Show the record image beside the text false
showOpenRecordButton Show a button next to the dropdown to open the selected record form. false
sortByTextValue Sort the dropdown list by the displayed text value instead of the default lookup view sorting order. false

Screenshots

Recording_Screenshot

Installation

You can install the component directly from solution files contained in the 'Release' section https://github.com/drivardxrm/LookupDropdown.PCF/releases/latest