How to group a report from a variable value in navision
Lalaka
Member Posts: 32
Hi!
I want to group a report from variable value. Is there anyone who knows how to do it.
This is my task.
I have created a report using the Prod. Order Line table and I have extracted the Volume field from the Item using GET, this I have assigned it to a variable GTextVolume. These volume values contains volumes of the specified items (750,350,150 etc...).
Now when the report is running I want to group the reports records from this field, GTextVolume.
Ex:
150
Is this possible? How do I specify a key?
I want to group a report from variable value. Is there anyone who knows how to do it.
This is my task.
I have created a report using the Prod. Order Line table and I have extracted the Volume field from the Item using GET, this I have assigned it to a variable GTextVolume. These volume values contains volumes of the specified items (750,350,150 etc...).
Now when the report is running I want to group the reports records from this field, GTextVolume.
Ex:
150
-
ProdOr1
ProdOr2
ProdOr3
ProdOr4
ProdOr5
-
ProdOr6
ProdOr7
ProdOr8
ProdOr9
ProdOr10
Is this possible? How do I specify a key?
Have a Nice Day!
0
Comments
-
Hint : Use the integer dataitem.Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0 -
Take a Temporary Record variable and using Integer DataItem and group the data.
Check the report 113.0 -
dans wrote:Hint : Use the integer dataitem.
Thanks.. I have googled a lot and have not found any way to figure out how to use the integer table. I read once that it is used for looping. But at this instance how do you make use of it.
Do you tie the Volume variable to the Integer data item and loop?
I cannot understand how I should go with this. I started working with Navision only in January.
Have a Nice Day!0 -
Check the 113 Report - DataItem Integer - Code on OnPreDataItem() and OnAfterGetRecord().
See Below.
Integer - OnPreDataItem()
ValueEntryBuffer.RESET;
SETRANGE(Number, 1, ValueEntryBuffer.COUNT);
Integer - OnAfterGetRecord()
IF Number = 1 THEN
ValueEntryBuffer.FIND('-')
ELSE
ValueEntryBuffer.NEXT;0 -
sameerar wrote:Check the 113 Report - DataItem Integer - Code on OnPreDataItem() and OnAfterGetRecord().
See Below.
Ok
Integer - OnPreDataItem()
ValueEntryBuffer.RESET;
SETRANGE(Number, 1, ValueEntryBuffer.COUNT);
We reset the VE variable and create a filter. What does this do? OK :)Sets the Number's range from 1 to the amount of records in VE.Integer - OnAfterGetRecord()
IF Number = 1 THEN
ValueEntryBuffer.FIND('-')
ELSE
ValueEntryBuffer.NEXT;
What do we do here? How do we do the calculation?Have a Nice Day!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions