[New Plugin] Drag It - Enhance Your Repeating Groups with Drag-and-Drop Functionality: Rearrange, Sort, Reorder, and Transfer Items Between RGs Effortlessly

It appears you are utilizing API data; I would like to suggest incorporating the JSON data format directly into the plugin with the assistance of our other plugin, JSON Assistant.

We have constructed a simple example demonstrating how these two plugins can collaborate to enable us to modify the order index of items in JSON format on this page:

DragIt + JSON:
Artisan-plugnplay | Bubble Editor

Hello again. Dragging this in a calendar already made ( Pre Calendaria) and it will not let me set the data source as " Parent Groups Date ". I have attached the photo

1 Like

Hello!

The DragIt data source should be a list of items, but in this scenario, it seems a single item (date) has been selected.

For your needs, you might want to set the content type to ‘event’ (task), which would allow you to drag and drop events between inner Repeating Groups (RGs).

1 Like

Ok thanks, that helps me think through the logic a bit more

1 Like

Hi,

When i show the current cell index and i drag and drop some items, the cell index number is moving with the dragged item. So after moving different items the cell index number is not in line with the items place in the repeating group. How do i keep the cell index numbers as they are.

I use the RG Sync Source as datasource.

1 Like

Hi there,

The index number will be updated once the DragIt data source list you provided is refreshed. Have you utilized the Sorting Updated event to refresh the main list after each modification?

We do not save the new list right away, the user can first drag and drop the items and when they click on “save new positions” button then the list wil be saved. But is there not option to show in an text element in every row which current cell index number it is?

1 Like

Since the index number is linked to the bubble, you need to update the data (save a new list) so that the plugin can refresh the RG’s data source, which will then update the index numbers. If you prefer not to save directly to the database, you can use a state to store the list and then replace it with the database once the user saves it.

3.4.3 still seems be broken concerning next id. Next Id is always empty in the workflow. 3.3.4, is working correctly.

1 Like

You’re right, @andrew, an issue has arisen following the addition of the API custom ID feature. We are addressing this problem and ask that you continue using version 3.3.4. We will notify you when the issue is resolved in our upcoming version.

We appreciate your understanding and cooperation. :pray:

Hi @NoCodeDataArtisan, been a fan for a while.
I recently started trying to do something new with this plugin and it isn’t working as expected - thought I would ask here.
I have [Days] RG and nested [Plans] RGs in these Days. When i move a [Plan] to another [Day], I want to update the new sort order (easy) - but also change the [Day] field of the [Plan] datatype to the new [Day] it was dragged into.
I’m using the Rg → This RG event which captures the data just fine, but when i Make a change to the [Plan]'s [Day] field, the [Plan] is removed from the [Day]'s list of [Plans], so it is gone from all of the RGs.
Have you tested for this usecase? Please let me know if I can explain better or create a demo.
Thank you!

1 Like

Hello @rasengan.matt

I hope you’re doing well.

Thank you using the DragIt in your projects :heart_eyes:.

So, you just use the dragit in inner RGs, right?
Could you please try adding another action in the ‘Sort updated’ workflow and change the Day field of Plans with a change list of things action.

Please let me know about the results.

Best

Wow that worked immediately - thank you so much for your quick help. Not often you get good product with great support. Gonna leave review.

1 Like

@NoCodeDataArtisan Is there anyway the current cell index can be updated with the new sorting? Current cell index doesn’t seem to reflect the new sorted order. And could you please kindly advise on the best method to update this list’s of data sort to reflect the new order?

1 Like

Hello @PhastCo
I hope you’re doing well.

When you update the data source with the new sorting, DragIt will update the RG, and the current cell index will be refreshed.

From what I understand, you don’t update the data until the user clicks the “Finish” button. If you prefer not to save the data immediately, you can use a state to keep the updated list. This state should serve as the data source for DragIt and be updated whenever the order changes. Finally, you can save the state value as your sorted list.

Does that help clarify things? Let me know if you have any other questions!

Thank you for your kind words and the review for the plugin. User satisfaction is one of our top priorities, and we’re thrilled to hear that you’re happy with our product.

Ah, thanks for the explanation. How would you advise to update the index of the other items in the RG. I assume sort the list by order, filter to select data with sort <= dragged item’s new index, then -1 sort for the batch? Is there a more efficient way, or a method offered by the plugin?

There seems to be a lot of usable states from the plugin, but with no documentation I’d have to be guessing the functions - if there is a link to a document, could you please refer me to it?
image

Thanks @NoCodeDataArtisan!

1 Like

Hi, thanks for the great plugin.

I am having an issue on when an item is dropped outside group.
Here is the screenshots regarding my configuration.


This is what I see when I drop an item outside the group.

Will you take a look and find me a way to solve this?

1 Like

The DragIt plugin is optimized for handling a list of items, indicating that the data source should be a list similar to what’s found in databases or state management systems. This list autonomously maintains the order of the items, eliminating the need for an index field.

Please disable the ‘Item Dropped Outside’ workflow. The ‘Sorting Updated’ should automatically exclude that item when the ‘Remove Dropped Outside’ option is selected.

Inform me of the outcome.