Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

What does the following code in report does?

(0) ShareShare
ReportReport
Posted on by 2

CurrReport.CREATETOTALS(StartingExpectedQty,IncreaseExpectedQty,DecreaseExpectedQty,
StartingInvoicedQty,IncreaseInvoicedQty,DecreaseInvoicedQty);

The code is in the Inventory Valuation report on Item-OnPreDataItem trigger which is a standard report.

*This post is locked for comments

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: What does the following code in report does?

    As you are using 2016 version, it might not be of your interest, as this function is not supported on client report definition (RDLC) report layouts. In most cases, when you create a layout suggestion for a Classic report layout that uses the CREATETOTALS function, a SUM expression is created instead and no action is required.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: What does the following code in report does?

    Hey,

    CREATETOTALS simply do the totalling of the variable. All are decimal fields.

    CurrReport.CREATETOTALS(StartingExpectedQty,IncreaseExpectedQty,DecreaseExpectedQty,
    StartingInvoicedQty,IncreaseInvoicedQty,DecreaseInvoicedQty);

    Here in the report it will do the net sum of all the variables which has been passed with comma separator. 

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: What does the following code in report does?

    It just maintains totals for those variables so that when you use those in the Group or Footer section it will display the totals, just like SUM function in RDLC.

    msdn.microsoft.com/.../dd301337.aspx

  • Suggested answer
    Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: What does the following code in report does?

    Hi

    If you are using NAV version 2013 or above , The Currreport.createtotals is an obsolete function, in 2009 or below versions this code used to calculate totals in classic report.

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: What does the following code in report does?

    CREATETOTALS function keeps Totals for the vaiables or fields mentioned which further can used to put on the Report Footer.

     

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: What does the following code in report does?

    Check this link for understanding the function details

    msdn.microsoft.com/.../dd301337(v=nav.90).aspx

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans