38
Views
4
Comments
[Sortable AF] AF Sorting elements inside and outside a block
sortable-af
Reactive icon
Forge asset by Greg Whitten
Application Type
Reactive

Is it possible to implement AF drag and drop with a list inside other list that is in a block?

E.g: I have a list of SECTIONS and inside that, I have other list with TASKs of that. Both are editable and working ok today. Now I need to implement the AF to permit that a task of list SECTION 3 can moved to SECTION 1. 

My screen with exemplo is atached. 


How can I do that with AF? 

NormalWindow.PNG
2024-07-31 14-04-13
Carlos Cardoso

Hi @Elaine Guimaraes  

How are the data coming? Do you have 3 different aggregates for each section like in the image?

If the tasks are all in the same entity and you have a section foreign Id, it could work. 

2023-06-17 23-16-53
Elaine Guimaraes

Hi Carlos,

I have one screen with one agregate for sections in a liste, inside this I have a block with another agregate with tasks. It is working to change, but not saving.

2024-07-31 14-04-13
Carlos Cardoso

So you have the Sortable AF in 2 different web blocks and it changing data?  

2023-06-17 23-16-53
Elaine Guimaraes

Correctly


1 screen with a list (sections)

   1 web block with another list inside first one (tasks of sections)

     --- the second list contains inputs changing tasks data

--- the first list contains input changing section name


It is working to sortable but I can't save.

-----------------------------------------

I have another viewer in swimline mode that is working with some issue:

1 screen with 2 web blocks.

block of sections (horizontal table)

block of tasks (vertical table)

The AF is working, but when I change a task from column section 1 to an empty column, I cannot add tasks to it.


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