Skip to main content
Here is what i have done.

By clicking on edit button am calling editActionHelper

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???

 
4 respuestas
  1. 1 dic 2018, 05:48
    Hi raj, 

    I am using the code in Lightning Experience..

    Here is my component code for custom data tale....

    <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>

    After editing the record i want to refresh contactList  aura attribute.
0/9000