Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

NAV 2013 R3. Sales invoice report. GetData in header returns unexpected value. Multiple print.

Posted on by 2,983

NAV 2013 R2. Build 7.10.42610

From the posted sales invoice list, I print multiple invoices of the same customer at the same time, but I get this unexpected behaviour.

For example the first invoice has 5 pages, but the last page's header (GetData) displays the Invoice No. of the next Invoice.

It's strange, because if I put a field with "=Fields!No_SalesInvHdr.Value" in the body, it displays the correct Invoice No.

Screenshot:

InvoiceHeaderProblem.png

Any ideas on why this may be happening?

*This post is locked for comments

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: NAV 2013 R3. Sales invoice report. GetData in header returns unexpected value. Multiple print.

    Hi,

    There must be some condition due to which it is happening. But since your report body textbox gets the correct value of the sales invoice no, you can display the invoice no in the header in another way too.

    In your header where you want to display the value of the sales invoice no, put the following expression: ReportItems!<TextboxName>.Value where TextboxName should be the name of the textbox which has the sales invoice no. field value in your report body.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: NAV 2013 R3. Sales invoice report. GetData in header returns unexpected value. Multiple print.

    Check how it mapped in Standard Report No 205 Sales Invoice You will get an idea

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2013 R3. Sales invoice report. GetData in header returns unexpected value. Multiple print.

    Hello Ghetz,

    Can you try like this hide textbox in body part and in header write like this Reportitems!textbox.value (Textbox means name of the textbox hide in body section).

    Thank You

    Ramesh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans