:first, :last, are great, but what do you do for :all?

Hi everyone,

This is probably a foolish question. Does :all exist? :first and :last work beautifully, I’m just looking for items in between.

Backstory: I’m trying to create a workflow where all items after an RG’s current cell (to be deleted) are subtracted by one. For example, for items ordered 1, 2, 3, if I delete item “2” I want 3’s order to now become 2, and so on. This way they’re sequential (I hope that makes sense).

Thanks in advance!

In your database table for these items, you want to have a NUMBER field called “id” or something. Then to delete “item #2”, you have to do 2 actions.

  1. Make a change to a list of items that have an “id” greater than 2. Minus those item’s "id"s by 1 (3 becomes 2, 4 becomes 3, etc.)

  2. Delete the item. In this case, item #2

Hope this helps.

@dbevan Thank you very much, this worked nicely!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.