Printing other table report from current form

Kisu
Member Posts: 381
Hmm this came to me as a little hard task.
What would be the proper way to print a report that uses different table than the current form you are in?
The report should still have to be sorted with the "No." of the current form. The Rec's dont mach on the tables but the number does. :?
What would be the proper way to print a report that uses different table than the current form you are in?
The report should still have to be sorted with the "No." of the current form. The Rec's dont mach on the tables but the number does. :?
K.S.
0
Answers
-
Declare a variable for the 2nd record (recB)
then do:
recb.RESETT;
recB.SETCURRENTKEY(the key you want);
recB.SETRANGE("No.","No."); 'Or whatever the fields are...
..
...
..
and then either REPORT.RUN(recB...) or declare a variable for the report and pass the record and then run it......0 -
Ah I was on the right path. That solved it, thanks KapaK.S.0
-
You're welcome.0
-
Kisu wrote:Ah I was on the right path. That solved it, thanks Kapa0
-
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