remove row from model without flagging for deletion and saving.

edited March 7, 2017 in Questions
I am working on a skuid page that creates many new salesforce objects at once. This was started before the functionality that was just added to roll back data on an error, so I am using an apex webservice. I have a row in a table that I wish to remove during a snippet triggered by flagging a row for deletion. Is there a way to remove that row from visibility and the model it's on without saving the model? Thanks.

Comments

  • J.J. 💎
    edited March 7, 2017
    Michael,

    I think that the abandonRow prototype method of skuid.model.Model would work for this. Tables listen for changes on their models, so once that row drops out of the model, it should drop out of the table too.
  • edited September 2, 2014
    Thanks J, I'll give it a try!
  • J.J. 💎
    edited March 7, 2017
    Sure thing! Let us know how it goes and thanks for being a part of our community!
  • edited September 2, 2014
    It worked great. Really looks good on the page having the rows disappear without needing any confirmation from the user.
  • edited January 21, 2016
    Hi Michael,

    How did you make the js run on the model load?

    KR
  • edited September 24, 2015
    I figured it out. Thank you!!
  • edited January 21, 2016
    Hi Kalyan,

    Could you please let me know how you have deleted the rows from Model. I want to remove a row from Model where row field consist a field with null value. Would be appreciated if some one could help me out here ....
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!