Stackable List - Ordering items

Hey guys!
I’m having difficulty using the Stackable List element. I want to list a list of items from a collection (this collection has the “index” field) and update the position of the moved item and the other affected items in the order so that there is no repeated “index” field in the collection.
How to configure the action?

image

Thanks for your help!

How are you keeping the track of the index within the db?

This way here:
With an int8 field in Supabase that receives an integer value

You would need to use the change variable value and the stack events to change the indexes accordingly and update the list. You can use remove at index and insert at index, and partial updates to achieve this.

@Broberto
I have the same problem
the workflow does not identify the record during “on moved”

the event remains empty

@DanielL Its a Bug?

I just learned (by doing a bunch of experimenting) that you have to choose very specific parts of the “event change” element in order to show the details. Hopefully you can see what I mean in my screenshot with the arrows. My current issue is trying to figure out how to get the “item removed” and “item added” workflows to work