I have a page listing Cases with an edit button assigned to each one - the edit button fires a standard e.force:editRecord event, passing the recordId per button.
Is there a way I can run a function/action on save of this record in order to refresh/rerun the Case list?
I have looked at the following answers but they do not work. Callback event on $A.get('e.force:editRecord') in lightning
Example code:
This is where I am attempting to handle the events:
<aura:handler name="handleEdit" event="force:editRecord" action="{!c.fetchCaseRows}" />
<aura:handler name="handleSaveSuccess" event="force:recordSaveSuccess" action="{!c.fetchCaseRows}" />
This is where I call the save:
updateCase: function(component, event, helper) {
var editRecordEvent = $A.get("e.force:editRecord");
editRecordEvent.setParams({
"recordId": event.currentTarget.id
});
editRecordEvent.fire();
},