web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Add "Move Up"/"Move Down" Buttons to Move a Node to a Different Parent in EcoResCategory Form

(2) ShareShare
ReportReport
Posted on by 106

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.

This means reassigning the parent, not just reordering items within the same level.
 
My questions are:
Is there any standard functionality in the EcoResCategory form that supports this?
If not, what would be the best way to implement this behavior in X++?
Also, what’s the recommended way to update the underlying data (e.g., parent category reference) and refresh the tree control to reflect the change?
 
Any insights, sample code, or direction would be really helpful.

Thanks in advance!
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans