R4RD0 / LookupDropdown.PCF

PCF Control that renders a lookup field as a dropdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

UPDATE 2022-01-20 : PLEASE USE v1.0.0.2 or above, a 🐛 was found in earlier versions

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)

lookupdropdown-dependant2

Dependencies

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

react-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} {attrib1lang2} 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

lookupdropdown

Installation

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

About

PCF Control that renders a lookup field as a dropdown

License:MIT License


Languages

Language:TypeScript 94.4%Language:MDX 4.0%Language:JavaScript 1.6%