In the wizard I’m working on, I currently have the start form creating a list of selected lines via a single field with mode=“tree” which is nice.
But I would like to be able to rearrange the order of these records for treatment (much like invoice lines on the invoice form)…
Is there a simple recipe (or example) to enable this drag-n-drop functionality?
In the doc I find only these mentions:
It is a tree if there is a field_childs defined and this tree will have drag and drop activated if the field_childs and the parent field are defined in the view.
and
sequence: The name of the field that is used for sorting. This field must be an integer and it will be updated to match the new sort order when the user uses Drag and Drop on list rows.
So do I need to create a specific view for this field (?) or is this something that can be inlined in my view form xml?