NAV 2016 - Code on PostDataItem and RDLC report

rnjbng
Member Posts: 82
Hi Folks -
I have a RDLC report in Nav 2016 which has 2 dataitems
Location
Item ledger entry
Based on certain condition I doing calculation in Item ledger entry OnAfterGetRecord and and storing in a array and OnPostDataItem of Location dataitem I am arriving at the final values and putting them in variables.
I am trying to print those OnPostDataItem variables of Location dataitem in the RDLC visual studio on footer at the end of the report and it just does not print. When I run the debugger it calculates the values correctly.
Can't I print the variables used on OnPostDataitem of a dataitem or is there any other way this can be done.
Any help is highly appreciated.
Regards
RJ.
I have a RDLC report in Nav 2016 which has 2 dataitems
Location
Item ledger entry
Based on certain condition I doing calculation in Item ledger entry OnAfterGetRecord and and storing in a array and OnPostDataItem of Location dataitem I am arriving at the final values and putting them in variables.
I am trying to print those OnPostDataItem variables of Location dataitem in the RDLC visual studio on footer at the end of the report and it just does not print. When I run the debugger it calculates the values correctly.
Can't I print the variables used on OnPostDataitem of a dataitem or is there any other way this can be done.
Any help is highly appreciated.
Regards
RJ.
1
Answers
-
What You want to do a grouping per location? You only need to do grouping per location in the Report Designer. create 2 groups, the first group is the group header with grouping per location. and other groups are details. You only need to sum variable needed. you cannot show value from event OnPostDataitem on layout. OnPostDataitem events are commonly used for updating after looping data items such as changing the number of printed.0
-
Probably they will print if you do not print them in the *footer* but in the *body* of the report. You have to do some "dirty tricks" to move data from the body to the footer/header of the report, like is done in the invoice/order confirm/etc reports in standard NAV. You can find some good examples of how to create an invoice report on YouTube, the trick is explained there too.IF User.Loves('Edo') THEN ok() ELSE currReport.genSkip;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