Requirement:
There are two objects:
- Opportunity
- 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.



Lightning Component:


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