Export several dataports to one file

AST
Member Posts: 108
Hello,
It is possible to export several dataports to one file? I mean append lines of text at the end of existing file.
Pleas help, I really need this.
It is possible to export several dataports to one file? I mean append lines of text at the end of existing file.
Pleas help, I really need this.
0
Comments
-
I don't think it's possible.
What you can do is to make two files and write some procedure to merge them.0 -
Actually Adding Text at the end of an already existing text file IS POSSIBLE.
I haven't looked into it in depth, but We use Lanhams EDI module. And when I EXPORT a sales order to a text file, if I don't delete the previous text file then the two outputs are combined.
I think this happens in the Sales order Export Codeunit 14000354.
Possibly in the OpenEDIFile Trigger.
I believe it opens the file uses the Functions SEEK & TRUNC to find the file length & start writing at that point. There seems to be alot of
BegPos (Beginning Position) &
BeginFileLength going on :whistle:
Perhaps one of the Mega Gurus can look into the basics of how it is done - it would make a good tip n trick.0 -
If excel format helps then you can use the update functionality of export to excel as used in analysis by dimension. Here you can specify the excel file and the sheet number to transfer the data.CA Sandeep Singla
http://ssdynamics.co.in0 -
Try DOS feature type >> file.ext
1) export to first txt
2) export to second txt
3) append contents of second txt into first txttype second.txt >> first.txt
Result will be contents of first.txt plus second.txt in file first.txt.
If you'd like to add separator (new line), create i.e. NLCR.txt with single <LF><CR> and thentype nlcr.txt >> first.txt type second.txt >> first.txt
0 -
Another command prompt possibility is copying with "+". If you do:
copy file1.txt+file2.txt+file3.txt file4.txt
the three files will be concatenated into file4.txt. That way you only need on command line.Palle Due Larsen, Microsoft NAV
This posting is provided "AS IS" with no warranties, and confers no rights0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions