Skiping first line in dataport

JK
Member Posts: 21
Hi Gurus,
When importing records from CSV file I need to skip first row (Collumn names).
So I tried to place CurrFile.Read(Variable) OnPreDataItem,
but the text lenght is more than 1024
](*,) :shock: ](*,)
Thanks in advance, 1
When importing records from CSV file I need to skip first row (Collumn names).
So I tried to place CurrFile.Read(Variable) OnPreDataItem,
but the text lenght is more than 1024
](*,) :shock: ](*,)
Thanks in advance, 1
0
Answers
-
0
-
Sorry, do not now how to delete .. in this forum0
-
I thought a variant was unlimited ??
Or is it also limited to 1024 :?:0 -
Variant, .. 1095 .. ,0
-
Add a dataitem of type integer to your dataport, as the first dataitem, and set the filter on number=10
-
Thanks a lot,
I have tried with integer, but it didnt work.
So i tried:
OnPreDataItem
CurrFile.SEEK(1395)
and it pointed to next line.
\:D/0 -
Good thinking!
For the integer option you need to change the recordseparator.0 -
right, forgot to mention that one
thanks Mark. Not the record separator, but the dataitem separator. By default the record separator is one <new line>, and the dataitem separator is two new lines. You need to change the dataitem separator to one new line, so it jumps to the next dataitem in the dataport.
0 -
Yes, the dataitem thing. :?
Not realy into dataports fortunalely0 -
Hmm ... tested ... doesn`t work integer option.
Have you tested on ver 4.00.
:-k0 -
JK wrote:Hi Gurus,
When importing records from CSV file I need to skip first row (Collumn names).
So I tried to place CurrFile.Read(Variable) OnPreDataItem,
but the text lenght is more than 1024
](*,) :shock: ](*,)
Thanks in advance, 1
Hello.
I found this : http://www.mibuso.com/howtoinfo.asp?FileID=8&Type=howto
It is for exporting, but it can give you an ideea what you should do.ovidiu
Best Regards0
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