csv issue
ricky76
Posts: 204
When exporting a csv i want to wrap each field in double quotes. I also want each field to be seperated by a comma. All the information should therfore just be in the first cell. If i concatenate the string with a + ',' it takes this as the field seperator. Is there any way i can achieve what i need to?
0
Comments
-
Set FieldStartDelimiter and FieldEndDelimiter both to <">.
Set FieldSeparator to ,
The above settings used in one of my dataports give the result as required.
Regards,
Gerrit0 -
Sorry i never made it clear i am using a report and not a dataport. Is it possible in a report?0
-
Hi,
I am supposing that you are using the WRITE statement so maybe you could do thisWRITE('""' + FieldA +'","' +...... + '""');
Notice the 2 Double quotes at the beginning and the end.
Hope this helps
Albert0 -
Thanks for your help but this has not worked.0
-
Hi,
Ok just checked again should be wriiten like thisWRITE('"""A"",""M"",""100.00"""'); or WRITE('"""' + fieldA + '"",""' + fieldB + '"""');
3 double quotes to start and end and 2 on each side of the comma to join
Albert0 -
That has worked. Thank you very much for your assistance it is most appreciated.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions