Skip to main content

Notifications

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.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Reload tree in form

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,081 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans