Does DragIt work with a datatype of List of Images? Ie. I have users upload multiple images to one field in database called Images. I’d like for them to be able to rearrange the images and then save them in that order to the Images field. Is this possible or does your plug-in only work with a single image file?
No problem at all! In Drag It, you have the flexibility to use any kind of data. It works similar to a repeating group, allowing you to use any list as a data source.
If you need any help getting started, don’t hesitate to ask! We’re always here to provide assistance and support. Feel free to reach out to us whenever you need.
I bought your plugin and I am facing the same problem of other users when I try to create a Kanban. It seams to be impossible to save the changes in database without “break” the plugin.
We want to express our gratitude for your trust in us. Rest assured, we’ll make every effort to promptly create an instance of it. We apologize for any inconvenience caused.
To prevent encountering this issue again, kindly update the auto sync field to “No.”
Once you make this change, the problem will be resolved. However, there is another issue with empty boards. Not to worry though, I’ll take care of it from the plugin side and keep you informed of the progress. Please ignore it for now
We’re stoked to introduce Drag It’s new feature: ‘Handle’.
Now, all you need to do is specify the ID of the element you’d like to use as a handle. This will force users to drag elements, just by using that handle element.
If you run into any snags or have any burning questions, remember we’re always here to lend a hand.
Your feedback is gold to us! It not only helps us understand your experiences, but also helps us make the plugin even better.
Hi. I’m just trying out the plugin. I like it so far and I think it will work, but I have a problem.
I don’t understand exactly how to restore a saved sort order list.
My app is basically a to-do app. Tasks are added, sorted and deleted frequently.
My RG has test-rg as the ID, which I set in the plugin.
My data source in the plugin is a search for tasks.
My source on the RG is the DragIt Sync Source.
So far so good.
I can drag tasks.
I can sort tasks.
I can save the tasks to a field.
But how do I load that sorted list the next time the user comes to the page? If my data source for the plugin is a search, then how to I get the sorted list back into the plugin when the user starts to use the app again?
Also, I saw a comment earlier about not finding a stable way to delete an item from a RG. Am I understanding correctly that if my user deletes a task (or moves it to a different list/RG), the sort order may not remain stable?
Thanks for your reply. At the moment, my biggest concern is to figure out how to restore the sort order that has been saved. I’m confused because the data source for the plugin is a search. So how do I restore the saved list yet keep the data source as a search? (As new tasks are added, they need to be found, or will I have manage manually adding them to the plugin’s list of tasks as they are added?)
That’s why I inquired about the structure of the database. When it comes to storing items in a specific order, whether with or without drag functionality, it is generally considered best practice to associate a list of items with a parent item.
For instance, in the context of a task management application, we typically start with a project (as the parent) and within each project, there exists a list of tasks.
In this scenario, you don’t have to search for the data source of Drag It; instead, you can utilize the this project's tasks.
To save the changes, you would set the updated list from the Drag It on the project’s task list.
Please note that the example provided was merely for illustration purposes, and the specific method may vary depending on your requirements
Ah, I didn’t understand your first response. I thought you were referring to your database.
My projects and tasks (and other data types) are actually all one data type called ActionBlock. Each ActionBlock has a type (project, action, etc.) and if an action belongs to a project, then it has a relatedParent. An action (task) does not have to belong to a project.
The lists will be far too large to have them as fields of a datatype. But the filtered/sorted lists can be saved for the purpose of sort order. This I can already do. What I’m unclear on is how to restore that sort order when returning to the app.
Let’s use your demo app as an example. You have a Search as the data source for the plugin.
If you sort the list, save the sort order as shown in your video, then when the user returns to the app, how do you load the sorted Gallery_Itemss so the user can start where they left it?
It’s the exact same situation I’m describing. Initially there is a search, but later I want the data source to be the saved items.
I’m okay with manually adding new stuff to that list as they are added in the app (without a search), but how can I restore the saved items if the data source is a search? This is what confuses me.
This is exactly what is needed.
Where do you store this?
In fact, you can put that list as a data source to display the items in the previous order. If the user makes changes again, you can replace the previous list with the updated status list.
As for the demo, we don’t have a user there and we just want to display a few items and not save after that.
Yes, I’ve seen the tutorial video. I have it mostly working now. Thank you.
My issue now is that I have dropdowns, sliders, etc., in my repeating group cells. I cannot use them because of the drag.
I know there is an option to disable the drag, but I’m having trouble with the condition to disable it.
The repeating group cells can be “expanded” to show all of the editing options. A custom state Current Cell Index is set when the cell is expanded.
I need to be able to check when the state “Current Cell Index” is the Current Cell’s Index, but I cannot seem to access this.
I have tried it with both the old index and the new index. The problem is I am not expanding the cell with a drag so I can’t populate the custome state. It uses a click, so the DragIt index values are not populated (or not correct in any case).
How can I establish a condition to know when to disable the drag function?
I’ve also tried in a workflow, when the cell is clicked to “expand”, I set the DragIt Locked status to “yes”. But I still cannot use my dropdown.
=======
Second question: Cosmetically, my RG has very rounded corners. Is there any way you can add an option to set the roundness for drawing the background while dragging? This is not critical, but it would be very nice to have!
The conditions of your app are special. If you want, you can send us a private message with the link of the editor so that we can check it comprehensively and guide you better.
We appreciate your suggestion and will incorporate it in our upcoming update. Your input is highly valuable to us, and we are grateful for your contribution in enhancing the plugin.