
Hi everyone,
I'm working with the EcoResCategory form in D365FO, which displays a hierarchical category structure. I’ve been tasked with adding two buttons — Move Up and Move Down — that allow moving a selected node under a different parent, not just changing the order among siblings.
Use case:
Suppose I have Category A with children A1 and A2, and Category B with a child B1.
I want to be able to select A2 and move it so that it becomes a child of B — resulting in: B -> B1, A2.