Hi, 

I need to create a list with dynamic sorting for my orders task on the Mobile app at runtime. For instance, if I have a list of elements:

1 - ElementA 

2 - ElementB  

3 - ElementC 

Then I want to change the position of the element (change my priority for tasks) resulting: 

1 - ElementC

2 - ElementA

3 - ElementB

To achieve this I want to be able to select the element with my finger on the mobile screen and change the sequence.

Anyone know how can I achieve this? 

Thank you Very Much!!!

Hi, 

Don't remember if there is any widget ready for this in mobile. Don't think so. 

But you can use a link to call a client action that will change a variable storing how to sort the list, used in the Sort tab of the aggregate and just call the refresh data after. 

This should be enough... 

Cheers 

Eduardo Jauch wrote:

Hi, 

Don't remember if there is any widget ready for this in mobile. Don't think so. 

But you can use a link to call a client action that will change a variable storing how to sort the list, used in the Sort tab of the aggregate and just call the refresh data after. 

This should be enough... 

Cheers 


Thanks for the idea, however, I need to be able to modify the sequence by clicking on an item of a list and releasing this item in a different sequence and then updating this to the current position. Something like this idea https://www.youtube.com/watch?v=C22hQKE_32c . In my case instead of an image would be a row containing some pieces of information of a work order of my SAP table then changing the sequence. Do you know what I mean? I'm not sure if this solution that you gave would do that with the drag and drop problem. 

Solution

Ah, 

Sorry. You probably want this: https://www.outsystems.com/forge/component-overview/2254/drag-and-drop-mobile

Don't know if there is other compone t from Forge that allows it or if there is a 'native' method (don't think so). 

Hope this helps. 

Cheers 

Solution

Eduardo Jauch wrote:

Ah, 

Sorry. You probably want this: https://www.outsystems.com/forge/component-overview/2254/drag-and-drop-mobile

Don't know if there is other compone t from Forge that allows it or if there is a 'native' method (don't think so). 

Hope this helps. 

Cheers 


No problem. It's almost what I need. The only thing is different from my need is this uses 2 blocks and I need to use just 1 block, do you know if am I able to use just 1 block to achieve this or any way to do that?

Thank you so much! 

Hi, 

Don't know. But in the Web version it is possible to move the element in the same list. I think here is the same thing. 

Cheers 

Hi Eduardo Jauch,


I have done what I need using this Drag and Drop, but do you know any way to save the order that I sorted?


Thanks a lot!