NAV 2013 Reporting - Show own variables
Codingo
Member Posts: 8
Hello Community,
I have a problem with a total row in a report.
I just work for some training on a very simple report.
For this I created
- a table, called "Cars"
- a page (List), which is related to that table
- a report, which have to show a cars.
For my testing scenario, I created e simple records.
I added a tablix object into the body section of the report, where I placed my fields
- Manufacturer
- Model
- PS (or in english, HP)
- Color
In the last row, I want to show the total amount of hp. For this I added a global variable "g_decTotalPS".
Behind the "Cars - OnAfterGetRecord" trigger, I added the following code:
g_decTotalPS += Cars.PS;
I set the following dataitems into my report:
- Integer <Cars Header> (Indentation 0)
- Cars <Cars> (Indentation 1)
- Integer <Total> (Indentation 1)
Under the DataItem "Total" I set my global "g_decTotalPS".
When I set a messagebox behind the trigger "Total - On AfterGetRecord", I see that there is a value inside this variable.
But then I set the variable into my row inside the rdlc-report, it is still empty.
I put a static text ("Total PS") one cell before the TotalPS, in the same row. This value is visible when
I print the report. When I use the SUM method inside the rdlc report, it works pretty well.
But there have to be a possibility to print own variables.
I have no idea what I can do to fix this issue. Hope you can help me to solve it.
Here is a link where you can download my fob-file:
http://www.file-upload.net/download-818 ... e.zip.html
I have a problem with a total row in a report.
I just work for some training on a very simple report.
For this I created
- a table, called "Cars"
- a page (List), which is related to that table
- a report, which have to show a cars.
For my testing scenario, I created e simple records.
I added a tablix object into the body section of the report, where I placed my fields
- Manufacturer
- Model
- PS (or in english, HP)
- Color
In the last row, I want to show the total amount of hp. For this I added a global variable "g_decTotalPS".
Behind the "Cars - OnAfterGetRecord" trigger, I added the following code:
g_decTotalPS += Cars.PS;
I set the following dataitems into my report:
- Integer <Cars Header> (Indentation 0)
- Cars <Cars> (Indentation 1)
- Integer <Total> (Indentation 1)
Under the DataItem "Total" I set my global "g_decTotalPS".
When I set a messagebox behind the trigger "Total - On AfterGetRecord", I see that there is a value inside this variable.
But then I set the variable into my row inside the rdlc-report, it is still empty.
I put a static text ("Total PS") one cell before the TotalPS, in the same row. This value is visible when
I print the report. When I use the SUM method inside the rdlc report, it works pretty well.
But there have to be a possibility to print own variables.
I have no idea what I can do to fix this issue. Hope you can help me to solve it.
Here is a link where you can download my fob-file:
http://www.file-upload.net/download-818 ... e.zip.html
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