I have a calendar popup. Within the popup, a page title component with context Id = Id.
When I run an action sequence from a button on that page title component, I would expect the actions to obey the context, so “Mark row(s) for deletion” would only mark the context row for deletion, not all rows.
Incidentally, any way to get those rows back?
Recycle Bin
I’ll take a look at the error.
Zach,
Any updates on this? I just has a slew of rows deleted again…
Matt, what version of Skuid are you running? This should be working if your Page Title has a Context Condition and your Page Title is on the same Model that you are marking rows for deletion in. Is the Model on your Page Title the same as the Model you are Marking rows for Deletion in using the Action Framework?
6.8.14
Page Title has context conditions (Id = Id) and is on the same model as the row to be marked for deletion.
However, it looks like I’m creating a row on a different model earlier in the action sequence. I’m guessing that’s messing up the context?
Yeah I think that is messing up the context. Can you move the Create New Row action after doing the Mark Rows for Deletion action?
I’m not sure that I can. Here’s relevant part of my sequence:
- Create Row in OtherModel (using data from ContextModel)
- Cancel Model Changes
- Mark Row(s) for deletion
- Save Model(s) (ContextModel and OtherModel)
I had to add the Cancel Model changes action because I was getting some errors for blank required fields on save. If I move Mark Rows for deletion before the Create Row, then that change would also be cancelled, correct?
Seems like I’m going to have to figure out what those changes are that were causing the save error, so I can eliminate the Cancel action and move the Mark action.
Can you include the Model Names for 2 and 3? Hard to say what to do without knowing which Models you’re cancelling or Marking for Deletion.
Ah, sorry for the lack of clarity!
- Create Row in OtherModel (using data from ContextModel)
- Cancel Model Changes (ContextModel)
- Mark Row(s) for deletion (ContextModel)
- Save Model(s) (ContextModel and OtherModel)
So… I just changed the sequence to
- Mark Row(s) for deletion (ContextModel)
- Create Row (in OtherModel using data from ContextModel)
- Save Model(s) (ContextModel and OtherModel)
And it’s working fine…
Not sure where the old error went, but it’s gone!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.