Drag and Drop sortable list issue

Drag and Drop sortable list issue

  

Hi all,

I'm trying to get my drag and drop re-order list in my To-Do list to work. I even make reference to https://www.outsystems.com/forge/Component_Details.aspx?ProjectId=294 . However when I try to drag and drop my to-do list, although it showed the notification that the "order is updated" , the to-do list is not updated. Is there somewhere wrong in my OnNotifySetOrder server action?

Thanks!

Web app or mobile app?

I only have done sortable drag and drop in web apps.

Hello Jing Wei,


I ran very quickly through your OML but I don't seem to find the attribute "nid" defined in each row. Where are you defining it?


According to the component that you're referencing:

"- The database id (or some other unique string) of the element need to be in the html"


I might overlooked it, but I'd rather ask.

Harlin Setiadarma wrote:

Web app or mobile app?

I only have done sortable drag and drop in web apps.

Hi Harkin,

Its a web app. =)


Armando Gomes wrote:

Hello Jing Wei,


I ran very quickly through your OML but I don't seem to find the attribute "nid" defined in each row. Where are you defining it?


According to the component that you're referencing:

"- The database id (or some other unique string) of the element need to be in the html"


I might overlooked it, but I'd rather ask.

Hi Armando,

Do you mean setting "nid" as attritube ? 

And how do I go about setting database id of element as html ? Is that the root cause ?

Thanks 


Solution

It's possible. I'm not aware of the full functionality of the component. 


Why don't you try to set an extended property of the row with something like:

Property: nid

Value: TableRecords.List.Current.Entity.Id?


Solution

Harlin Setiadarma wrote:

Web app or mobile app?

I only have done sortable drag and drop in web apps.

Able to take a look at my oml and see what is missing in there? Thanks ! 


Armando Gomes wrote:

It's possible. I'm not aware of the full functionality of the component. 


Why don't you try to set an extended property of the row with something like:

Property: nid

Value: TableRecords.List.Current.Entity.Id?



Will give it a try later. Thanks !