from JS Controller....
editActionHelper : function(component,event,helper){
var buttonValue = event.getSource().get('v.value');
var editRecordEvnt = $A.get('e.force:editRecord');
editRecordEvnt.setParams({
recordId : buttonValue
});
editRecordEvnt.fire();
$A.get('e.force:refreshView').fire();
},
Any help regarding this???
Hi raj, I am using the code in Lightning Experience.. Here is my component code for custom data tale....
After editing the record i want to refresh contactList aura attribute.<tbody>
<aura:iteration items="{!v.contactList}" var="ct">
<tr class="slds-hint-parent">
<td>
<ui:inputCheckbox aura:id="cboxRow" text="{!ct.Id}" change="{!c.selectAllChange}"/>
</td>
<td>
<div class="slds-truncate">{!ct.FirstName}</div>
</td>
<td>
<div class="slds-truncate">{!ct.LastName}</div>
</td>
<td>
<div class="slds-truncate">{!ct.Email}</div>
</td>
<td>
<div class="slds-truncate">{!ct.Phone}</div>
</td>
<td>
<lightning:buttonIcon iconName="utility:edit" variant="bare" onclick="{! c.handleEditAction }" alternativeText="Edit" value="{!ct.Id}"/>
</td>
</tr>
</aura:iteration>
</tbody>