Multi grouping in the reports

ebrahma
Member Posts: 36
hi,
How to do multiple groupings in Navision reports ?
Ex:
Group 1: Zone
Group 2: State 1
Group 3: District 1
............Sales.................
Group 3: District 1 sales Total
Group 3: District 2
............Sales.................
Group 3: District 2 sales Total
Group 2: State 1 sales Total
Group 2: State 2
Group 3: District 4
............Sales.................
Group 3: District 4 sales Total
Group 3: District 5
............Sales.................
Group 3: District 5 sales Total
Group 2: State 2 Sales Total
Group 1: Zone total
How to do multiple groupings in Navision reports ?
Ex:
Group 1: Zone
Group 2: State 1
Group 3: District 1
............Sales.................
Group 3: District 1 sales Total
Group 3: District 2
............Sales.................
Group 3: District 2 sales Total
Group 2: State 1 sales Total
Group 2: State 2
Group 3: District 4
............Sales.................
Group 3: District 4 sales Total
Group 3: District 5
............Sales.................
Group 3: District 5 sales Total
Group 2: State 2 Sales Total
Group 1: Zone total
0
Comments
-
Hi!
Are you using one Table?
If so then you need to set the Current key to an appropiate key which contains the fields you want to group by.
You should also use dataitem property GroupTotalFields and fill it with the fields you want your records to be grouped by. Then you can control which groupfooter/header you need to print with code in the OnPreSection of the GroupFooter/Header Sections.
CurrReport.SHOWOUTPUT :=
CurrReport.TOTALSCAUSEDBY = "Record".FIELDNO(Zone);
Hope this will help.Answer the question and wait for the answer.0 -
Make sure the table has a key with all fields (you wanna group on) in it.
Then just run the report wizard and give the right answer to the right questions....
that should be enough!"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Thnaks for reply0
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