I have a 4 column grid each containing a repeat of records grouped by value (stage)
The page is similar to the following https://jsbin.com/fogujiv/edit?js,output
But using DIV"s rather than UL
I am struggling to find a way to use the onEnd (dmx-on:end) to perform a server connect database update on the dragged record.
Has anyone done something similar? I have seen the form-repeat guide, but thats about it.
Hi.
I assume the draggable UI you have created is based on some 3rd party JS library.
Wappler’s events cannot be invoked directly from external integrations.
What I can suggest is to create a page flow on your page which does what you want to do on END event.
And then, in your library’s END event, call that flow using dmx.parse.
By following this code. https://jsbin.com/fogujiv/edit?js,console,output
I can see the parameters in the console output that I need to do a database update with. Would anyone be able to help with a page flow / dmx.parse
I just need to update one value from {event: 'onEnd'}
I can get the item.id which is id the record needing update
and the to.id which is actually the new value of the one field needing to be updated.
If anyone has any relevant experience with Fullcalendar + dragging please chime in with some thoughts
Anyway I haven’t really got anyhting working, yet. When I do I will report back here with my findings. Might be relevant for your sortable js challenge.
Good luck!
ps: would obivously be great if Wappler had broader sortable support in future releases.
Apologies if I haven’t explained this well enough.
Even if someone could please help with how I bind the onEnd values (item and to) to page variables and I can work out the rest.