web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How CurrtReport.Break Will work in Nav2009 and Nav2015

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

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

  • Rajasekhar@MS Profile Picture
    5,569 on at

    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
    on at

    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
    5,569 on at

    Hi Ramesh

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

  • Jatin Patel Profile Picture
    2,641 on at

    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

  • AbduTeeyech Profile Picture
    428 on at

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

    Have you checked that?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans