20
Views
2
Comments
[SortableJS] [SortableJS] Issue when refreshing underling data source
sortablejs
Reactive icon
Forge asset by João Lopes
Application Type
Reactive

Hi , 

I am having the same issue as another post on the same forge component.

https://www.outsystems.com/forums/discussion/91499/sortablejs-refresh-of-the-underlying-data-source/

The solution was to copy the Dom each time you perform a drag and drop.  I want to use this forge component throughout my application, and it seems excessive to me that we would have to do this to use a drag and drop forge component.  

Basically, I get the following error when dragging from one list to another list. I perform an update of the record being dragged in the database table. The error occurs when refreshing the data of the 'from' list.  Note: the error occurs on the refresh , regardless of if I updated the record or not.


I have attached a simple OML

NataliesDragAndDrop.oml
2024-10-12 12-11-20
Kerollos Adel
Champion
UserImage.jpg
Natalie Keelan

Thanks Kerollos.  I had mentioned this in the original post. Their solution was to copy the Dom before and after the drag and drop.  I feel this isn't viable solution. 

One solution I have found was to wrap the From List and To List inside containers, then before I do the refresh of data hide the containers /lists ,then show again after the refresh is complete. 

A bit of a hack but better then copying the dom approach.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.