Silly Report question!

nverma
Member Posts: 396
Hey yall,
I have a quick question regarding a report I am working on. Please find the enclosed attachment to see all the dataitems in the report.
A Customer No. in the Cust. Ledger Entries dataitem can have more than one ledger entry and each ledger entry can have a unique cost center code. Based on the Cost Center Code, a unqiue Shortcut Dimension 4 code (region code) is assigned. I want to group all the similar region codes in the Cust. Leger Entry dataitem.
Most of the Customer No. in the customer dataitem do not have a Cost Center Code. Therefore, they dont have a Shortcut Dimension 4 Code and thats why I cant use GroupTotalFields on the Customer Dataitem.
The user wants an option where he could group all the Region codes. Thus, I created an option called "Group all Regions" in the option tab of the report. If that option is checked off, then it should group the fields according to "Shortcut dimension 4 code" in Cust. Leger Entries.
Is it possible to do it??? I create a groupheader and groupfooter for cust. leger entries.
But nothing seems to happen. Any idea what I could be doing wrong or how I can fix this (implement this option for the user)? It just seems to show me all the entries based on the customer dataitem it doesnt seem to sort/group them by region code.
I have a quick question regarding a report I am working on. Please find the enclosed attachment to see all the dataitems in the report.
A Customer No. in the Cust. Ledger Entries dataitem can have more than one ledger entry and each ledger entry can have a unique cost center code. Based on the Cost Center Code, a unqiue Shortcut Dimension 4 code (region code) is assigned. I want to group all the similar region codes in the Cust. Leger Entry dataitem.
Most of the Customer No. in the customer dataitem do not have a Cost Center Code. Therefore, they dont have a Shortcut Dimension 4 Code and thats why I cant use GroupTotalFields on the Customer Dataitem.
The user wants an option where he could group all the Region codes. Thus, I created an option called "Group all Regions" in the option tab of the report. If that option is checked off, then it should group the fields according to "Shortcut dimension 4 code" in Cust. Leger Entries.
Is it possible to do it??? I create a groupheader and groupfooter for cust. leger entries.
But nothing seems to happen. Any idea what I could be doing wrong or how I can fix this (implement this option for the user)? It just seems to show me all the entries based on the customer dataitem it doesnt seem to sort/group them by region code.
0
Comments
-
The issue is that Shortcut Dimension 4 does not reside on the Cust. Ledger Entries - they are in the table Ledger Entry Dimensions. You would need to cylce through your Cust. Ledger Entries first, get the Shortcut Dimension 4 values from the Ledger Entry Dimensions. Then you could either use a temporary variable for the Cust. Ledger Entries and place the SD4 value in a field which is in an existing key. Then have an Integer data item where you would run through the temporary Cust. Ledger Entries in the order by SD4. The other option would be to build a set of array variables to store all the values you wanted, then run through the array in your Integer data item.Gerry Kistler
KCP Consultores0
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