Hi all,
I have a repeating group displaying a Thing called “Letters” with a type called Letters, which is a list of texts. In this example the texts are (A, B and C).
I want the users in my app to be able to change the sequence of these texts in any random order.
The drag & drop repeating group works fine however the catch seems to be saving the new sequence in the database.
I encounter the following two challenges:
-
Showing the save button: I show a save button as soon as the Reorder element’s new order is not empty. The problem is this element won’t reset this state after performing a “reset a group” step in the workflow. Also I do not see any other to reset this state.
-
When saving the list of texts, the easiest way seems to make changes to the Letters and then ‘set list’ ; reorder’s Reorder things IDs.
The issue I’m facing here is that this only works randomly… sometimes it maintains the new intended sequence and sometimes it does not work, as if the ultimate CRUD operation works in an order that cannot be steered by the sequence of things.
Does anyone have a proper solution on how I can save the new drag and drop ’ s list of texts in the database as a list of texts keeping the server side sequence and resetting the condition for the save button afterwards?
Thanks!!!