NAV2013: How to print total invoice amount in footer

Luc_VanDyck
Member, Moderator, Administrator Posts: 3,633
On report 206, a Footer was added to print a bank transfer strip (translated from dutch "overschrijvingsstrook"). This Footer contains the bank details of the receiver (= the NAV company that created the invoice), along with a structured reference (such as "+++090/9337/55493+++") and the total invoice amount.
How do I print this invoice amount in the footer of a RDLC-report, knowing that this NAV company makes invoices with and invoices without VAT? How can I transfer the correct field from the invoice lines dataset to the Footer?
How do I print this invoice amount in the footer of a RDLC-report, knowing that this NAV company makes invoices with and invoices without VAT? How can I transfer the correct field from the invoice lines dataset to the Footer?
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
0
Answers
-
Use Code.GetData or ReportItems!, this way you have the right value printed in your Footer.
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
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 :-)0 -
The needed fields are not displayed in the Expression window after I type =ReportItems! as Expression value for a textbox in the footer, so I guess I'm stuck with Code.GetData? I presume I first need to use Code.SetDate somewhere? Where?
EDIT: I added + Chr(177) + Cstr(Last(Fields!TotalAmount.Value)) to the Expression of textbox CustAddr, and used =Code.GetData(56,1) as Expression of the textbox in the footer, but nothing gets printed.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
If ReportItems! does not work, then Code.SET/GETdata won't work either I guess.
Can you make a screenprint from the field that you want to transfer?0 -
-
In order to use ReportItems! the cell you want to move to the footer needs to have name or you need to point to the technical name Visual Studio gives it.
Then you can use it like this.0 -
Mark Brummel wrote:In order to use ReportItems! the cell you want to move to the footer needs to have name or you need to point to the technical name Visual Studio gives it.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Glad it works.
Another option than iif is to add the business logic in C/AL and add the field hidden to the body. This keeps your business logic in one place rather than partly in NAV, partly in VS.
Whatevery works for you off course.0 -
I ended up with 2 textbox controls placed on top of each other, and using an expression to toggle the Visibility.
Thx all for the hints. This is a great forum ;-)No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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