How to remove one char from whole dataport?
chrisxx83
Member Posts: 54
Hi
when I make dataport, I would like to remove " sign from whole txt file.
Is it possible?
when I make dataport, I would like to remove " sign from whole txt file.
Is it possible?
0
Comments
-
You can use a replace after the TXT is generated. Do it with notepad.
You can always reopen the file and replace it by code.
You can also use OnAfterFormatField Trigger do do post processing on the text retrieved from the field.
But please explain you problem better.
Hope this helps!0 -
Use DELCHR on every field you are exporting. In the OnBeforeExport trigger add:
Field := DELCHR(Field, '=', '"');0 -
Assuming that you have " in your data and also assuming your FieldStartDelimeter and FieldEndDelimiter are " that it throws the import off.
Perhaps changing the delimeters to <None> will solve your problem (if of course this is the problem?)
Also, as Mattrax has said for Exporting, if you are importing you should import the data into variables where you can use that code to clean up the field and map it back to its Nav field.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 333 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
