Activity › Forums › Salesforce® Discussions › How can I delete a row in salesforce lightning component?

  • How can I delete a row in salesforce lightning component?

    Posted by Laveena on October 3, 2019 at 2:15 PM

    How can I delete a row in salesforce lightning component?

    Piyush replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    October 4, 2019 at 2:49 AM

    Hi Laveena,

    To perform the delete operation, call deleteRecord on the force:recordData component from the appropriate controller action handler. deleteRecord takes one argument, a callback function to be invoked when the operation completes. This callback function receives a SaveRecordResult as its only parameter. SaveRecordResult includes a state attribute that indicates success or error and other details you can use to handle the result of the operation.

    You can check the following link: https://www.biswajeetsamal.com/blog/dynamic-add-delete-row-in-lightning-component/

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos