0

I have configured a record page (say for Contact) in lightning app builder. On the left panel, I am showing a related list of certain records under a tab. On the right panel, I have a custom component. When user will click on a record on the related list, I want to show some details related to that record in the custom component. So, actually, I need a way to pass the recordId to the custom component, when clicking a record in the related list. Is it possible in any standard or custom way?

closed as unclear what you're asking by glls, David Reed, Pranay Jaiswal, battery.cord, Vigneshwaran G May 8 '18 at 12:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    is that standard related list? – Pranay Jaiswal May 4 '18 at 15:33
  • Can you clarify when you say click on a record on the related list, and that you want to show some details related to that record in the custom component, is the custom component also available on that related record page? And that do you have the component specific to that object type on its detail page or you are using the same one you have on Contact details? Can you update your question with some more details? And also as to @PranayJaiswal's question, the related list that you have on Contact, is it standard or custom? – Jayant Das May 4 '18 at 15:46
1

Not if you are using the OOTB Related list, as there is no way of triggering an event when the record is selected, you will most likely need a Custom Related List Component, allongside a custom event in order to communicate with your already build custom component.

Usually, When a user clicks on a record from the related list, the interface redirects to that record.

If your component is embeded in the interface of the "related record" then you can use implements="force:hasRecordId" to Build Context-Aware Lightning Components

Not the answer you're looking for? Browse other questions tagged or ask your own question.