Carriage Return to end of Dataport

Rabe
Member Posts: 27
Hello Everybody,
Looking for some light at the end of the tunnel
.
Navison 2.6-D :
I am currently exporting data using a standard Navision dataport and then FTP the Data to another server. Client requested that the file should be appended to the original file (Which works like a bom :shock: ) The problem I'm facing is that navision does not add a carriage Return Character to the end of the created text file so that when you append to the original file the format is all wrong. (It adds the first line of the second text file to the last line of the first text file)
Thank you in Advance
Rabe Pienaar
Looking for some light at the end of the tunnel

Navison 2.6-D :
I am currently exporting data using a standard Navision dataport and then FTP the Data to another server. Client requested that the file should be appended to the original file (Which works like a bom :shock: ) The problem I'm facing is that navision does not add a carriage Return Character to the end of the created text file so that when you append to the original file the format is all wrong. (It adds the first line of the second text file to the last line of the first text file)
Thank you in Advance
Rabe Pienaar
0
Comments
-
Try this - works only with one DataItem:
Change the property DataItemSeparator from <NewLine><NewLine> to <NewLine>
Add two new Global Variables
Char13 Char
Text13 Text
Add a new DataItem - Integer - to the Dataport.
DataItemTableView: Number Const 1
Add Text13 as a DataportField
Code on OnPreDataItem
Char13 := 13;
Text13 := FORMAT(Char13);
You will now have a Carrige Return at the end of the file.0 -
Thank You Torben....
Just what I was looking for0
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