Delete row immedidate from UI

Hi I have a requirement to remove a table row immediately from the UI once it's marked for deletion. I tried a few ways and couldn't get it to work.

1. Model action:

event: when row is marked for delete

action: remove context rows from model

action: save model

-- use this approach, the table row disappears from the row correctly by clicking on the standard Delete row action, but it never commits the delete. So when the page loads again, the row is still there.


2. Model action:

event: when row is marked for delete

action: remove context rows from model

-- use this approach, the table row disappears from the row correctly by clicking on the standard Delete row action and then click on a custom Save action that just saves the model, but it never commits the delete. So when the page loads again, the row is still there.


3. No model action on when row is marked for delete. Use a custom row action

action: remove context rows from model

action: save model

-- use this approach, nothing happens.


Can you please advise if it is possible to remove a row immediate from the UI and the database or remove a row immediate from the UI and click on a custom action to save the delete?


Thanks!


Try a row action, type Run Multiple actions.

Delete Selected Row(s)
Save Model

You don’t need any model actions.  This is close to your #3 above, just have your action be Mark Selected Row for Deletion instead of Remove Context Row from Model.


Works like a charm. Thanks!