Ignore fields with the same value

supp85
Member Posts: 76
hello all,
I have added the sale invoice line as a data item indented under the TempCustLedgEntryLoop to the Aged acc report, so if an invoice is found to show the "Job No." on the invoice lines for that particular document and a few extra fields from the job table, as there can be several invoice lines with the same job no. the report will show all lines (detailing the same information several times), how do i get the report to ignore lines with the same job no.? (so if there are 3 invoice lines with the job no. Y and 1 line with X, then the report is to show only 2 lines Y & X.)
I hope it makes sense
I have added the sale invoice line as a data item indented under the TempCustLedgEntryLoop to the Aged acc report, so if an invoice is found to show the "Job No." on the invoice lines for that particular document and a few extra fields from the job table, as there can be several invoice lines with the same job no. the report will show all lines (detailing the same information several times), how do i get the report to ignore lines with the same job no.? (so if there are 3 invoice lines with the job no. Y and 1 line with X, then the report is to show only 2 lines Y & X.)
I hope it makes sense
0
Answers
-
You could add a variable to store the previous value and then on the OnPreSection trigger do:
CurrReport.SHOWOUTPUT(prevValue <> currValue). Initialize your value on the onAfterGetRecord and it is solved... You could also use a GroupHeader / GroupFooter to show your info and this will do it automatically for you... You'll need a key though that will support your logic. Otherwise you could use a temporary table to hold your unique lines...
So... there are plenty of ways for you to choose from...0 -
Thank you for your reply the SHOWOUTPUT worked great.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