Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How CurrtReport.Break Will work in Nav2009 and Nav2015

Posted on by Microsoft Employee

Hi Experts,

Present I am doing Upgradation from Nav 2009 to Nav 2015 so here in Code Upgradation total code is fine 

but in some dataItems CurrtReport.Break; is Getting Problem.

I checked with the Debugger i Found if currentReport.break is occur its break and jump to OnPostDataitem in Nav2009, But It Comes Nav 2015 It jumps the hole Dataitem.


Integer - OnAfterGetRecord()
IF PostingDate = PostingDate::"Invoice Date" THEN
CurrReport.BREAK; 

here is above code is in OnAfterGetRecord() when debugger Came to Break it come out of Integer DataItem.

is there any problem in Break statement please suggest me.

Regards,

Ramesh.

*This post is locked for comments

  • AbduTeeyech Profile Picture
    AbduTeeyech 422 on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    Is it because that 'Break' function has to used only inside loop??( repeat ... until),

    Have you checked that?

  • Jatin Patel Profile Picture
    Jatin Patel 2,641 on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    Hi Ramesh,

    BREAK Function in NAV 2009 msdn.microsoft.com/.../dd354980(v=nav.60).aspx

    and in NAV 2015 msdn.microsoft.com/.../dd354980(v=nav.80).aspx

  • Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    Hi Ramesh

    Could you let us know CurrReport.BREAK used on which sections in NAV 2009?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    Hi Rajasekhar,

    Thanks for the Reply,i know how to give page breaks but this is CurrReport.Break this is a Statement in my code.

    i think in place of that Break better to use a Skip i will check it and Let me know

    Regards,

    Ramesh.

  • Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    Hi

    Refer the below link how to create page breaks in NAV 2013 or later versions

    www.archerpoint.com/.../microsoft-dynamics-nav-2013-creating-page-breaks-rtc-reports

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How CurrtReport.Break Will work in Nav2009 and Nav2015

    i got this problem in Report generation because the values Came from code.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans