How import more than 250 characteres in a dataport
DarkHorse
Member Posts: 389
Hello, I've an Access database with two "memo" fields. This fields are informed with text. I want to import this information to two text fields in a Navision table. For it I use a dataport. As you know the fileds text date type only let 250 characters, then, on import these fields the process stops and say that the field only let 250 characters.
Is there any way that, for example, only import 250 chacracters (and loose the rest) or you can think any other way to do this?.
Thanks in advance.
Is there any way that, for example, only import 250 chacracters (and loose the rest) or you can think any other way to do this?.
Thanks in advance.
0
Comments
-
If the memo fields doesn't exceed 1024 characters, you can import them into a global textvariable with length of 1024. Then you can use COPYSTR to split this variable into multiple fields.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Thanks for answer. Can you give me an examplo of COPYSTR please?. I suppose all this in dataport.
Thanks for help.0 -
recMyTable.MyField1 := COPYSTR(txtInputVar,1,250); recMyTable.MyField2 := COPYSTR(txtInputVar,251,250); recMyTable.MyField3 := COPYSTR(txtInputVar,501,250); recMyTable.MyField4 := COPYSTR(txtInputVar,751,250);
This will split a 1000-char variable into 4 table fields with length 250.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Perfect;I'll try it.
Thanks for help.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
