Initial Order - Feature

How to use the initial order feature.

Example of implementation

The main logic is this:

On page X you reorder things

On page Y you see the results

Setup on page X

On page X we don't need to setup the Initial Order field, so, leave it empty. We need to setup the logic of saving the new order in DataBase. In our demo, we've used a separate DataBase where the new order is saved. Basically it is 1 field only and 1 thing in DB, no need to save it in every thing from your database that you are use for repeating group. See the screenshot below, we use the DB Analytics for that, and observe that there's only 1 thing that we are using to save it.

I repeat, you don't have to save this order in every thing from your repeating group, make a separate database and save it there like in our demo.

Next, to save it, use the plugin's state New Order. Make change to your database "Analytics" (or whatever name you set), when the event Drag Ended is triggered.

Example from our demo:

Setup on page Y

On this page, is important that you are using the same database for you repeating group as in page X to avoid errors. In the field Initial order, from the plugin element, set the thing from Analytics database that we were changed on page X.

‚Äč