export 2 tables with one dataport to an CSV file
Renko
Member Posts: 8
I have two tables and need information out both the tables.
the export file on this moment looks like this:
1,DB,Dick Beekman //this is table <CourseRegistrationHeader>
2,JR,Johan Rienks
Van Terp Kantoorinrichting,1 //this is table <CourseRegistrationLine>
Anton Geestig Adviezen,1
Koopmans Verzekeringen B.V.,1
Sound&Vision,2
Candoxy Canada Inc.,2
the layout i like to see is like this:
Van Terp Kantoorinrichting,1,DB,Dick Beekman
Anton Geestig Adviezen,1,DB,Dick Beekman
Koopmans Verzekeringen B.V.,1,DB,Dick Beekman
Sound&Vision,2,JR,Johan Rienks
Candoxy Canada Inc.,2,JR,Johan Rienks
table <CourseRegistrationHeader> has the following fields:
Enabled SourceExpr StartPos Width
Yes "No." 1 10
Yes TrainerCode 12 10
Yes "Trainer Name" 23 30
table <CourseRegistrationLine> has the following fields:
Enabled SourceExpr StartPos Width
Yes Name 12 30
Yes No 1 10
where "No." and No must be linked or something.
thanks in advance!
the export file on this moment looks like this:
1,DB,Dick Beekman //this is table <CourseRegistrationHeader>
2,JR,Johan Rienks
Van Terp Kantoorinrichting,1 //this is table <CourseRegistrationLine>
Anton Geestig Adviezen,1
Koopmans Verzekeringen B.V.,1
Sound&Vision,2
Candoxy Canada Inc.,2
the layout i like to see is like this:
Van Terp Kantoorinrichting,1,DB,Dick Beekman
Anton Geestig Adviezen,1,DB,Dick Beekman
Koopmans Verzekeringen B.V.,1,DB,Dick Beekman
Sound&Vision,2,JR,Johan Rienks
Candoxy Canada Inc.,2,JR,Johan Rienks
table <CourseRegistrationHeader> has the following fields:
Enabled SourceExpr StartPos Width
Yes "No." 1 10
Yes TrainerCode 12 10
Yes "Trainer Name" 23 30
table <CourseRegistrationLine> has the following fields:
Enabled SourceExpr StartPos Width
Yes Name 12 30
Yes No 1 10
where "No." and No must be linked or something.
thanks in advance!
0
Comments
-
Still, you can use Integer table for your dataitem and export just variables. You just needs to fill the variables with the values through C/AL code from both tables and you are done... :-) Without C/AL it is not possible...0
-
Can you give me an example of the C/AL code? I'm a newbie with all of this. I thought it would be possible with just 1 line of code :P0
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
