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
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
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.
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?
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.
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
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.
André Arnaud de Cal...
293,280
Super User 2025 Season 1
Martin Dráb
232,046
Most Valuable Professional
nmaenpaa
101,156
Moderator