RDCL Report: Header GetData fields only printed on last page

marcgerner
Member Posts: 6
Hi,
I'm having this issue with a copy of the 206 report using NAV 2013. I created a copy of the report to create my own Sales Invoice, but having this issue with the header.
I placed the CustAddr and some other fields in the header, using the SetData and GetData functions. Only all these fields are hidden and only printed on the last page of the report, instead of on all report pages. Though label-fields on the header are printed on all pages (expression for these field are like: =First(Fields!InvNoCaption.Value, "DataSet_Result")).
I took a look at the dataset and saw the CustAddr fields are set on all lines, so the problem has to be something with the layout.
Can someone help me on how to get the proper field values on all report pages instead of only the lastone?
Marc
I'm having this issue with a copy of the 206 report using NAV 2013. I created a copy of the report to create my own Sales Invoice, but having this issue with the header.
I placed the CustAddr and some other fields in the header, using the SetData and GetData functions. Only all these fields are hidden and only printed on the last page of the report, instead of on all report pages. Though label-fields on the header are printed on all pages (expression for these field are like: =First(Fields!InvNoCaption.Value, "DataSet_Result")).
I took a look at the dataset and saw the CustAddr fields are set on all lines, so the problem has to be something with the layout.
Can someone help me on how to get the proper field values on all report pages instead of only the lastone?
Marc
0
Comments
-
I think it's related where you put textboxes which perform "Code.SetData": ensure they are placed at the beginning of the list which they are included in.* Daniele Rebussi * | * Rebu NAV Diary *0
-
Hi Geordie,
Thanks for your reply! This seemed to be the solution. Can you explain why NAV needs the container field to be on the top left corner of the list?
Thanks again, this helped me a lot!
Marc0 -
Because output rendering is performed for every page in the following order:
- Body
- Header
- Footer
If Code.SetData is at the end of the body, report variables will be evaluated too late to be shown through GetData function in all pages before the last one.
Hope not say any inaccuracy :oops:* Daniele Rebussi * | * Rebu NAV Diary *0 -
Everything gets evaluated in the order like you might read a book. Left to Right, Top to Bottom. So as mentioned, if you have say a company logo picture box first, then the set data to the right or below that picture box, it will first render the picture box with a GetData that returns an empty value.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