pegros / PEG_LIST

Set of configurable/actionable LWC list components for Salesforce Lightning UX
MIT License
20 stars 8 forks source link

[feat] sfpegActionBarCmp - Enable usage/selection of other fields instead of Name when creating a datasource to filter a lookup field #54

Closed farhaanaBalaky closed 1 year ago

farhaanaBalaky commented 1 year ago

Is your feature request related to a problem? Please describe. When creating a datasource that is used in a LDS form in an sfpegAction , even when specifying the fieldname as PRM_CodePortefeuille__c in the display configuration, the name is being displayed as default on the LDS form.

Describe the solution you'd like Display other fields than name in the lookup datasource field

Additional context

s3 s2 s1
pegros commented 1 year ago

There is already a labelField available in the sfpegPicklistInputDsp component to achieve this but passing a config value for it is not implemented in the sfpegPopupDsp parent component used to display the creation/edit popup. I shall add a new configuration parameter ASAP and propagate it down to the picklist input component.

pegros commented 1 year ago

Feature implemented with commit b7986d9

Just add a dataLabel property in addition to the dataSource to specify a different label field.

pegros commented 1 year ago

FYI @jstukas