Import Textstring >150 characters in multiple comment lin

voyager99
Member Posts: 15
Hi to All,
i want to import a text file with comments to customers.
the textfile contains the customer no. and a comment field >150 characters.
how can i create multiple lines in den comments-table during the import ? ](*,)
thanks
voyager99
i want to import a text file with comments to customers.
the textfile contains the customer no. and a comment field >150 characters.
how can i create multiple lines in den comments-table during the import ? ](*,)
thanks
voyager99
0
Comments
-
Well, I had the same kind of problem recently with an access database. I had about 100 memo-fields to convert to multiple lines in Navision.
If you are familiar with VB.NET:
I took my WaldoNavPad, and I used the navpad-dll to write a seperate small program, which gave me a txt-file with the different lines. I just had to write the different SQL-statements, and the export/import only took a few hours.
If not familiar with VB.NET:
You can read it with a dataport into a 1024 variable, and write some code to divide it into seperate lines ... . Not sure this works, though...0 -
Hello there,
I had the same Problem with much longer texts, but I used XMLport.
So there is the possibility to set the text to bigtext.
Then I created some code to divide into seperate lines with search for a space to cut the line not in a word.
in XMLPort this works perfectly.regards,
Michael Schumacher
oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)0 -
create global variable in the dataport. add the global variable to the dataport fieids. on after import trigger parse the global virable and insert into the customer comment.0
-
It is also possible to use streaming. An example is in order:
flFile.Open('Filename');
flFile.CreateInstream(isInstream);
While Not (isInstream.EOS()) do
Begin
intCount := isInstream.Readtext(strContainer, 100)
// Do something with strContainer
End;
flFile.Close();
Note that the value '100' denote the length of strContainer.
This basic routine makes it possible to do anything with any text regardless of length.0
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