Distinct data in a Navision report

xina_man
Member Posts: 116
Hi there!
Is it possible to disctinct data in a report??? I Want to make a report that shows the customers that we've shipped itens on a certain date, but when I have more than one shipment in a day it repeats the customer in the report.
Can I disctinct data in the report and show the costumer only once?
Many thanks
Is it possible to disctinct data in a report??? I Want to make a report that shows the customers that we've shipped itens on a certain date, but when I have more than one shipment in a day it repeats the customer in the report.
Can I disctinct data in the report and show the costumer only once?
Many thanks
0
Answers
-
by distinct i assume you mean GROUP.
Why not Group by Customer No?
How do you want it
Date
->Item
-->Customer
?0 -
By "Distinct" I mean that some data from a table must only appear once in the report an not many times.
I assume that group by is similar to sort by. What i realy need is to show only once the customer code even if there are many posted shipments.
Many Thanks0 -
xina_man wrote:By "Distinct" I mean that some data from a table must only appear once in the report an not many times.
I assume that group by is similar to sort by. What i realy need is to show only once the customer code even if there are many posted shipments.
Many Thanks
Group is nothing like sorting. Grouping is (As Harry said,) exactly what you need.David Singleton0 -
To group by a field first you have to sort by that field, so there is a connection.
You could put the data in a groupheader section and don't include a body section.
Maybe a more elegant way would be to have a Customer dataitem and indent the details from there. You could even get fancy and include a body section, but only when the user wants to print detail.0 -
DenSter wrote:You could even get fancy and include a body section, but only when the user wants to print detail.
Adding to the fancy part......
(Simple Fancy Lession1)
Create A Variable called "PrintDetail" type Boolean
View->Sections
On the "Body" add codeOnPreSection() CurrReport.SHOWOUTPUT(PrintDetail);
View->request form
add a checkbox sourceexp = PrintDetail
the user can then see the body details or not depending on the request form.
(Simple Fancy Lesson2)
Adding a progress bar
Variables:
Window Dialog
TotalRec Integer
CurRec IntegerOnPreDataItem() Window.OPEN('Processing @1@@@@@@@@'); TotalRec := COUNT;
OnAfterGetRecord() CurRec := CurRec + 1; Window.UPDATE(1,ROUND(CurRec / TotalRec * 10000,1));
OnPostDataItem() Window.CLOSE;
(Simple fancy lesson3)
Adding Message & Annoying beepOnPostReport() Message(All Done! Boyeee!); BEEP(1000, 300);
But Seriously : Understanding Grouping will take you to a whole new level of reporting.0 -
You can find many examples of what you are looking for in the other reports. For example an aging report. Prints 1 customer and all the open entries - you can pick detail or not.
there are many reports that are already done and you can use them as a templates for your reports and learn from them.0 -
Grouping is also explained in detail on the development manual on the product CD.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book-1
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