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, ...
Answered

Is is possible to convert Form tree control to tree node ?

(0) ShareShare
ReportReport
Posted on by

Hello Every one,

Is it possible to convert form tree control to tree node. so that I can use treenodetoxport method to get the o/p in xpo file. Any other approach to export content of tree control?

Thanks,

Phani

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,980 Most Valuable Professional on at

    It's impossible, because there are two completely different things.

    Form controls are used to display data and you can use things like DIXF to export data.

    .xpo files are used for code and metadata, therefore you could export the definition of your form, including things like the name and properties of your tree control, and code for populating the form, but not the data that might be loaded to the form at runtime. TreeNode class refers to element definitions in AOT; it has nothing to to do with the tree control used to visualize data.

  • Community Member Profile Picture
    on at

    Hi Martin,

    I am not looking for run time data. if tree has nodes like siblings I just want to export them to file including properties and methods. Kindly help if it can be done?

    Thanks,

    Phani

  • Martin Dráb Profile Picture
    237,980 Most Valuable Professional on at

    Sure, you can export a form (with all controls, values of modified properties and methods) to .xpo. But that's have nothing with converting the tree node control to a TreeNode instance.

  • Community Member Profile Picture
    on at

    yes, I can export a form but there are some discrepancies found like if we add a new data source that xpo file gives existing data sources as well in the file. how to figure it out?

  • Suggested answer
    Martin Dráb Profile Picture
    237,980 Most Valuable Professional on at

    All right, it seems that you originally asked a wrong question.

    You indeed get the whole object by default. If you want to export just your customization of a standard form, choose a particular layer to export from.

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... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans