Typeconversion and dataports
Kisu
Member Posts: 381
Heyas, I came up with a problem and not sure its possible to overide 
I'm making a dataport which has some fields I'd need to export but I also would need to combine a code type field and Option type field like:
Code | Option
12345 | 1
Exported:
Code+Option
123451
Is it possible to make? I'm not so familiar with Navisions datatype conversions
I'm making a dataport which has some fields I'd need to export but I also would need to combine a code type field and Option type field like:
Code | Option
12345 | 1
Exported:
Code+Option
123451
Is it possible to make? I'm not so familiar with Navisions datatype conversions
K.S.
0
Comments
-
why on earth would you like to combine two fields into one and break 1st normalization form requirement ? If the system that imports data does not have two separate fields then still your should keep two separate fields in your exported file and then let the importing system to combine them.
If however they insisted on combined version then you can do it by defining a variable in dataport and setting it as dataitem's dataport field
then in that dataitem's OnBeforeExportRecord() you can set a value for your "virtual" field0 -
Eugene wrote:why on earth would you like to combine two fields into one and break 1st normalization form requirement ? If the system that imports data does not have two separate fields then still your should keep two separate fields in your exported file and then let the importing system to combine them.
If however they insisted on combined version then you can do it by defining a variable in dataport and setting it as dataitem's dataport field
then in that dataitem's OnBeforeExportRecord() you can set a value for your "virtual" field
I'm not sure how theyr program works, my boss just gave me the schema how'd they need the information for the export file and the last colum they have they'd need a line of code (numbers) which consist work 5 numbers that 12345 and add to that the type of payment like 1 means normal work and 2 for over work. ex. 123451 or 123452.K.S.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
- 322 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