Share Your Experience With Others

Showing Details of Related Object in Child Object Lightning Record Page

Requirement:

There are two objects:

  1. Opportunity
  2. Suggestion

Opportunity has a lookup relationship with Suggestion. Now we want to show the Suggestion record details in a new tab on Opportunity record page. Record Details should be editable using an EDIT button. There will always be a suggestion record related with Opportunity.

Opportunity Record.PNG

Suggestion details.PNG

Edit Suggestion Details

Lightning Component:

lightning controller.PNG

lightning controller2.PNG

Now when we click on the EDIT button the force:recordView portion goes hide and when we have done the changes, the boolean clickEdit is false so it hide theforce:recordEdit and show force:recordView portion.

 

 

 

Leave a comment