Hello,
I need to create a Document Report similar to a sales Invoice report (e.g Report 206) whereby in the report header I will need to display Customer name/address etc. and the header needs to be dynamic in case the report is being generated for several invoices.
I would like to know if it is still advised to use the GetData/Set data function same as done in Report 206 or I can treat the header inside the report body.
Can someone please advise which is a best practice or standard recommended solution between these 2.
Thank you in advance.
Cheers.
0
Comments
If you can capture everything in one single List control in the Report Layout, you can do it all in the Body, except Page Number.
If you at a later stage realizes that you need have a header it is actual easy to do when you have everything lined up in the Body. It took me around 10 min the other day to add a Page header and introduce Code.GetData and Code.Set Data to this document report. I moved around 40 fields from the body to the header.
/Claus Lundstrøm
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Because I find it cumbersome to find out what is Code.GetData(22,1). I have to go to the SetData function, and copy and paste into a text editor, and separate out each line of code to find out that is Code.GetData(22,1).
I tried a report yesterday, and I really hated it. In my opinion, SetData and GetData is the single thing that made the RDLC report really inconvenient for NAV 2013.