Error in report using multiple table

hasancheema
Member Posts: 6
Hello,
I am a beginner programmer in NAV. I am developing a report which shows the Purchase Order lines. Also i am showing the Warehouse receipt number from another table for those lines which are already received.
A strange thing happens when i run the report it shows the first record with empty receipt number and slides down the record to another row. Please see attached and help me out of this.
Regards,
I am a beginner programmer in NAV. I am developing a report which shows the Purchase Order lines. Also i am showing the Warehouse receipt number from another table for those lines which are already received.
A strange thing happens when i run the report it shows the first record with empty receipt number and slides down the record to another row. Please see attached and help me out of this.
Regards,
0
Comments
-
can you show us the code you used to get the new value & what trigger you put it on?0
-
As Savatage wrote, the problem is in bad design of the report. You need to think about the process flow of the report. You are filling the displayed variable after it was displayed. Thus you see the value "shifted" by one record...0
-
There is no code involved in this. However there are three tables like this
Purchase Header
Purchase Lines
Posted Whse. Receipt Line
The link between first two is the PO Number and the link between second and third also is PO Number.
In report designer i have a header and purchase line body in which i have placed a field from the third table. NO CODE AT ALL just simple displaying.0 -
Donot forget that nested dataitems are processed after the body sections of parent is already displayed... thus if you use data from nested dataitem in parent body section, you will see data from previous loop, thus the wrong one...0
-
I did a workaround and it seems to be working. I created a flowfield on the second table and looked up the value from the third table and it seems to be working fine.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
- 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