Hi everyone,
I’m running into an issue with the “Reorder List” component and wondering if anyone else has experienced this or has any suggestions. I’ve set up a draggable list tied to a collection with an “order” field. I also added a workflow triggered by the “On item moved” event to update the order in the database. However, when I try to access the “Event” value (either to get the moved item or the updated order of the whole list), it doesn’t change and keeps showing the same value as before the move.
I’m thinking this might be a bug or something I’m setting up wrong. Here are a couple of possibilities I’ve considered:
-
Component Bug: It seems like the “On item moved” event might not be updating the “Event” to reflect the new order. To test this, I added a “Log” action in the workflow to check what the “Event” returns, but I’m still not sure what it’s supposed to include. Has anyone seen this in the documentation or reported it to support?
-
No Automatic Update: Maybe the component doesn’t update the database automatically, and I need to handle it manually in the workflow. I’ve tried identifying the moved item from the “Event” and adjusting the “order” field based on its new visual position, but without direct access to the updated order, it gets tricky. This would mean fetching the collection list and recalculating everything (e.g., incrementing the “order” of subsequent items), which feels like too much work for something I expected to be automatic.
Does anyone have tips on how to fix this? I’ve tested logging the “Event,” but it still doesn’t show the change. Am I missing something in the setup, or could this be a bug? If it’s a bug, should I reach out to WeWeb support?
Thanks so much for your help!