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

  • Suggested answer
    Martin Dráb Profile Picture
    232,046 Most Valuable Professional on at
    RE: Is is possible to convert Form tree control to tree node ?

    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.

  • Community Member Profile Picture
    on at
    RE: Is is possible to convert Form tree control to tree node ?

    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?

  • Martin Dráb Profile Picture
    232,046 Most Valuable Professional on at
    RE: Is is possible to convert Form tree control to tree node ?

    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
    RE: Is is possible to convert Form tree control to tree node ?

    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

  • Verified answer
    Martin Dráb Profile Picture
    232,046 Most Valuable Professional on at
    RE: Is is possible to convert Form tree control to tree node ?

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,046 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans