How to delete a row in Javascript

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Hi I'm trying to delete a row conditionally in Javascript:

    resumeModel.abandonRow(resumeModelRow);
    resumeModel.save();

This deletes the row in Skuid, but not from the salesforce database. Has anyone done this successfully? Thanks!
Photo of jili@heidrick.com

jili@heidrick.com

  • 2,032 Points 2k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Jeff Rutter

Jeff Rutter

  • 1,162 Points 1k badge 2x thumb
Hi,

I believe you should use the deleteRow() method instead and then the save method should work....

Here's a link to another post on the community:
https://community.skuid.com/skuid/top...

Here's a link to the Skuid documentation that explains the deleteRow() method pretty well: http://help.skuid.com/m/11720/l/20544...

I hope that helps!

Jeff
Photo of jili@heidrick.com

jili@heidrick.com

  • 2,032 Points 2k badge 2x thumb
Thanks! That worked.
Photo of Jeff Rutter

Jeff Rutter

  • 1,162 Points 1k badge 2x thumb
Awesome! Glad to hear it!

Thanks,

Jeff