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:
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
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).
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.
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?
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.
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.
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!
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.
@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?
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?
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.