use of TOTALSCAUSEDBY

Mrinmay
Member Posts: 74
Hi Exparts,
Actually i want to generate a report with three grouptotal field. The relations of the three fields is
First is field "Type"(Option:Resource,Item,GL Entry). Second field is "Resource Type"(Option: Person,Machine).
Third field is "Person Type"(Option: Permanent,Contract ).
These three fields are there as a secondary key in table.
In data item also i am sorting the table with these key.
Now in section i have put three group header. in first section i am putting "type",second one i am putting "resource type" & third one i am putting "person Type".
now i am putting below code accordingly:
In which groupHeader i am printing Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Type");
In which groupHeader i am printing Resource Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Resource Type");
In which groupHeader i am printing Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Person Type");
Actually the report sholud show like below
Permanent/Cotact(Header)
Body
group Total(Permanent/Cotact)
Mechine(Header)
Body
group Total(Mechine)
Item(Header)
Body
group Total(Item)
GL Account(Header)
Body
group Total(GL Account)
TOATL
Can any one help me how to get in proper headings.
thanks in advance...
Regards,
Mrinmay
Actually i want to generate a report with three grouptotal field. The relations of the three fields is
First is field "Type"(Option:Resource,Item,GL Entry). Second field is "Resource Type"(Option: Person,Machine).
Third field is "Person Type"(Option: Permanent,Contract ).
These three fields are there as a secondary key in table.
In data item also i am sorting the table with these key.
Now in section i have put three group header. in first section i am putting "type",second one i am putting "resource type" & third one i am putting "person Type".
now i am putting below code accordingly:
In which groupHeader i am printing Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Type");
In which groupHeader i am printing Resource Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Resource Type");
In which groupHeader i am printing Type, on presection of that i am writing:
CurrReport.SHOWOUTPUT(CurrReport.TOTALSCAUSEDBY=DataItem."Person Type");
Actually the report sholud show like below
Permanent/Cotact(Header)
Body
group Total(Permanent/Cotact)
Mechine(Header)
Body
group Total(Mechine)
Item(Header)
Body
group Total(Item)
GL Account(Header)
Body
group Total(GL Account)
TOATL
Can any one help me how to get in proper headings.
thanks in advance...
Regards,
Mrinmay
0
Comments
-
Hi,
Have you tried to analyse what Report Wizard does ? If you select grouping in Wizard it puts automatically some grouping code in group headers / footers.
Just have a look there - it should give you some ideas.
Regards,
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030
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