I'd like to build a custom component similar to the post below: Lightning - Related List The answer for that post above works only for the visualisation. However, it does not describe the Write access feature of the object.
The lightning component should display 1 selected related object and should have a function to New, Edit, and Save.
Using only that specific object in the page layout would not work, as we also need to display other related list objects in the related list component.
With the Edit:
- I tried with
force:editRecord, however upon saving, it does not refresh the page. The event handler does not seem to listen to the event.
force:recordEdit, the page lose the visualisation of the parent object and unable to navigate back to the same page.
with the New:
- with the
force:createRecord, it does not let me to default certain fields (eg: parentId).
Any help would be appreciated.