display in the same line data from different tables?
gumwitka
Member Posts: 34
Hi,
in the report based on Purchase Line I need to display info from Vendor table (Vendor Name). I need to do that in section "Purchase Line Body" because I want to have it for every purchase line. Is it possible to display that in the same line? #-o
in the report based on Purchase Line I need to display info from Vendor table (Vendor Name). I need to do that in section "Purchase Line Body" because I want to have it for every purchase line. Is it possible to display that in the same line? #-o
0
Answers
-
It is rather easy. Just create a var=Vendor and then get the vendor for each line you are printing. Create a textbox on the section you want the info printed and set the source exp. equal the vendor.name.
Best regards,
Torben0 -
yes, but first you have to link those two tables.
I have already solved it this way:
RecVendor.SETCURRENTKEY("No.");
RecVendor.SETRANGE(RecVendor."No.","Purchase Line"."Buy-from Vendor No.");
IF RecVendor.FIND('-') THEN
VendorName := RecVendor.Name;
Thanks for your help
Kasia0 -
make sure you clear the VendorName
VendorName := ''; RecVendor.SETCURRENTKEY("No."); RecVendor.SETRANGE(RecVendor."No.","Purchase Line"."Buy-from Vendor No."); IF RecVendor.FIND('-') THEN VendorName := RecVendor.Name;0 -
You could do it the easy way by adding vendor name as a flowfield to the line tableDavid Machanick
http://mibuso.com/blogs/davidmachanick/0 -
that is not a good solution. One of the goals when you make modification is to keep the modification as small and simple as possible. Also to think about it from upgrade perspective. You don't want to modify a table just for one report. Now you have two objects modified instead of one.0
-
Great thanks!0
-
I agree with ara3n.
You must think about performance as well. Creating flowfields just to print on reports will result in a jungle of flowfields, which is bad for performance on log terms... .
I know it is much easier to implement (even a customer with Report designer and table designer granules can do it), but it's a bad idea ... .0
Categories
- All Categories
- 73 General
- 73 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
- 117 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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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

