View Report

felix
Member Posts: 2
Good morning !!
I have a problem with view report.
I developed a report to do the total amount monthly but there is a problem because I need of a individual total for every month.
Currently the view report is how following reported:
MONTH
TOTAL
september
0.01
september
0.02
september
0.01
october
0.07
october
0.08
I used the following instruction in "Table.Body - OnPreSection() "
CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY
= "Table".FIELDNO("Date");
but the result is not just because I would the view in this way :
Month
Total
september
0,04
october
0,15
Thanks a lot and sorry for my bad english.
Regards. ](*,)
I have a problem with view report.
I developed a report to do the total amount monthly but there is a problem because I need of a individual total for every month.
Currently the view report is how following reported:
MONTH
TOTAL
september
0.01
september
0.02
september
0.01
october
0.07
october
0.08
I used the following instruction in "Table.Body - OnPreSection() "
CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY
= "Table".FIELDNO("Date");
but the result is not just because I would the view in this way :
Month
Total
september
0,04
october
0,15
Thanks a lot and sorry for my bad english.
Regards. ](*,)
0
Comments
-
Thanks for posting in the forum!
As I mentioned in the pm I don't am much of a reporting guy but I think I would try use the date table as dataitem for this.0 -
You need to add a groupfooter section and add
CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY
= "Table".FIELDNO("Date");
Add in section the text for month and amount,
and in property of that table set the option totalgroupfieldsby Date0 -
!Warning! You cannot do grouping based on Date field if you want group by months without more C/AL code! Because it will call the groupfooter for each date! You need another mechanism how to call the footer. For example mentioned Date table as master dataitem...
Another solution is to add month no. into your table...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