pegros / PEG_MISC

Small package of standalone LWC components for the App Builder, addressing simple Use Cases in a very easy to configure approach.
MIT License
4 stars 3 forks source link

[bug] sfpegRelatedListKpisCmp - Master Detail relationships not available in App Builder configuration #3

Closed eloscarfr closed 1 year ago

eloscarfr commented 1 year ago

Describe the bug Master-Detail relations do not appear in "Related list #" while configuring the component in Lightning App builder. Seems that only related lists are displayed.

To Reproduce Steps to reproduce the behavior:

  1. Having Objet A and Object B, with a Master-Detail relation (A is master of B, field A__r on Object B)
  2. Go to a, Object A record
  3. Launch 'Lightning App Builder'
  4. Add "SP PEG Related List KPIs" component
  5. Click on "Related List #1" picklist
  6. Related relation "A__r" does not appear

Expected behavior Related relation "A__r" to appear (like other related lists).

Screenshots n/a

Desktop (please complete the following information):

pegros commented 1 year ago

Actually, the issue comes from the fact that the relationship names appear with a technical API name rather than a label in the drop down list (e.g. "Account_Children__r"). Master Detail related list are properly listed --> no bug.

@eloscarfr please be so kind as to properly set the issue title with component name and issue summary according to the template next time you register one. 🙏

eloscarfr commented 1 year ago

Thanks @pegros for the workaround provided. For sure, next time I'll set the proper title following your guidance.