Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. data="{! v.PaginationList }"
  2. aura:id="TskId"
  3. class="slds-m-top_medium"
  4. columns="{! v.mycolumns }"
  5. keyField="id"
  6. hideCheckboxColumn="true"
  7. onsort="{!c.updateColumnSorting}"
  8. sortedBy="{!v.sortedBy}"
  9. sortedDirection="{!v.sortedDirection}"
  10. onrowaction="{!c.EditRecord}"
  11. onrowselection="{! c.getSelectedName }"
  12. onsave="{! c.onSave }"
  13.  
  14. lightning js :
  15. />
  16. EditRecord : function(component, event, helper) {
  17. var recId = event.getParam('row').Id;
  18.  
  19. var actionName = event.getParam('action').name;
  20. if ( actionName == 'Edit' ) {
  21.  
  22. var editRecordEvent = $A.get("e.force:editRecord");
  23. console.log('editRecordEvent',editRecordEvent);
  24.  
  25. editRecordEvent.setParams({
  26. "recordId": recId ,
  27. });
  28.  
  29. var stat = event.getParam('row').Status;
  30. stat["Status"] = "Completed";
  31. component.find('TskId').submit(stat);
  32. editRecordEvent.fire();
  33.  
  34. var a = component.get('c.doInit');
  35.  
  36. console.log('asfault',a);
  37. $A.enqueueAction(a);
  38.  
  39.  
  40. } } ,[![How to set][1]][1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement