Services Plugins FAQs

Drag & Drop To Reorder RG issue when saving order to DB

Hi,

I recently purchased this plugin. While learning how to use it I may have discovered a bug. I’m not sure if this is actually bug in Bubble or in the plugin. Let me try to explain.

I built a simple page by following the instructions ste by step. Drag & drop worked perfectly on the display. Then I wanted to test how to save the order in the DB by using “A Dragable RG Moved” event in the workflow. I spent some hours trying to figure out why it was not working.

Finally I discovered that the new order value (that is a number with decimals) was saved in the DB with a wrong decimal separator. Plugin seems to use dot as a separator, but due to the default language settings of my app (Finnish) the DB was expecting comma as a decimal separator. I could not find any locale settings in Bubble, so I assume some locale settings like decimal separator are automatically based on the app default language.

I could work around the issue by changing my app default language to en-us, which is something I don’t want to do. My app has two languages (fi and en) and Finnish should be the default . Now I must figure out how to get the app load the Finnish page by default to users who are not logged in. I guess it’s can be done by setting the Current User language to Finnish conditionally (only when the current user is not logged in) at the time of page load.

Please consider fixing the decimal separator issue in case that is related to the plugin.

EDIT: Luckily it seems that changing the app default language did not change the app behaviour.

After changing the app default language to en-us the order values are updating correctly. BUT now there’s another issue. After the page is loaded for the first time the first drag & drop does not trigger the “A Dragable RG Moved” event in the workflow. Any idea what might be causing this?

EDIT: I was able to figure it out. When doing the Search to the DB in In DragableRG settings, under Things and Sort data you must add the sort by order.

Hi there,
Thank you for reaching out, glad that you found a solution for part of the issues. :pray:

Would it be convenient for you, to share more details about your use case and the setup for the plugin, with screenshots, this will allow us to reproduce this on our side and check for a workaround.
Also, please let me know if there are any other issues at the moment, that need to be passed to the dev team for additional investigation and fixes.

Looking forward to your reply.
Best regards, :slight_smile:

Find below the screenshots after using “A Dragable RG Moved” -event to change the order in the DB. Starting order Adam 1, Bob 2 and Charlie 3. Moved Charlie after Adam. Screenshots 1 & 2 made when the app default language was set to Finnish. Screenshots 3 & 4 made when the app default language was set to English US. Hope this helps.




Hi @juha.niinimaki,
Thank you for your detailed reply. :pray:

As I can see on our plugin’s demo page, when changing language in the Bubble editor settings from English to Finnish, the value of the order field from our database also displays with a comma instead of a dot. I suggest contacting the Bubble support team here:Contact | Bubble, to ask them why this is so, as we cannot influence how the editor looks for different languages.
Thank you for understanding.

Hope you will get a workable option from the Bubble team on how to use the preferred language for your editor and still display the value with a dot instead of a comma.

If you require any further information regarding plugin usage, feel free to contact me, I’ll be glad to help.
Best regards,