Hi,
In the old days, we can export table data to the csv file through dataport. By adding an extra data item on top and small changes, it will export the header line as well. Now in NAV 2009 RTC, we have to use xmlport. I tried to adding the text elements under the root element to export the header line, it gives me the following error:
Microsoft Dynamics NAV Classic
If root element has source type Text, then all other elements must be source type Table.
OK
Any idea to add the header line through xmlport?
Thanks,
xiaoer
1
Comments
Added a table node under the Root and above my actual data table node that I knew had a single record. I used General Ledger Setup.
Then I added a number of text elements under it equal to the number of actual data columns that I am exporting.
Finally, I set the values of each of these text elements to whatever I wanted my header value to be in the OnBeforePassVariable trigger.
I'm sure you are long.long past this issue, but I could not find the answer to this question when I searched earlier today.
Clemson, SC
My understanding is you want to export data including header using with xmlport. If yes please try with below code.
Best Regards,
Yukon
Anyone knows a possibility to get a header row without a blank line?
Sorry for late reply. Remove the "<NewLine>" on TableSeparator Properties of XML.
Regards,
Yukon