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, ...
Suggested Answer

Reload tree in form

(0) ShareShare
ReportReport
Posted on by 87

Hello,

I have a form wich uses a a tree (class HierarchyTree). Is there any way to reload the tree when i modify some elements?  For example: moving some elements to one subgroup to another group.

I tried to "F5" and executeQuery all the datasources but the element doesnt dissapear from the tree. I have to close the form and open it again. Furthormere, in this form i have an action panel whith "create" and "delete" options which realoads the tree properly but i can't acces to the methods, so, I am not entirely sure what does Ax internally to fully reload the tree without closing the form.

Regards.

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Eisenberk,

    Try to override the "selectionChanged method of tree control. On overriding you will get the new item and old item on super call.

    On the class HierarchyTree" there is a method "selectionChanged. Try to call that method using new item and old item and see whether it works.

    Thanks,

    Girish S.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans