Skip to main content

CurrReport.NEWPAGE

There are a few different implementations applied during report conversion dependng on how CurrReport.NEWPAGE function is used.

CurrReport.NEWPAGE used with ā€žDataItemTableā€œ.ā€œField Nameā€œā€‹

If CurrReport.NEWPAGE function is used on section trigger and is excecuted depending on ā€žDataItemTableā€œ.ā€œField Nameā€œ value, new group by SRB_PageGroupNo with page break is created. SRB_PageGroupNo is integer type variable which is increased according to the same conditions as CurrReport.NEWPAGE function is executed in Classic Dynamics NAV report. Group by SRB_PageGroupNo is created as a parent group of DataItemTable body group (group by DataItemTable primary key).

  • Example. Conversion of CurrReport.NEWPAGE function.

    If there is Classic Dynamics NAV report with DataItems: currreport.newpage

    and CurrReport.NEWPAGE function used with ā€žDataItemTableā€œ.ā€œField Nameā€œ condition currreport.newpage

    during conversion there are two integer type variables added: currreport.newpage

    and code added on DataItemTable DataItemā€˜s OnPreDataItem() trigger,
    currreport.newpage

    also code added on DataItemTable DataItemā€˜s OnAfterGetReccord() trigger. currreport.newpage

    New column with SRB_PageGroupNo as Data Source created currreport.newpage

    and new group by SRB_PageGroupNo value created currreport.newpage

    with page break option Between each instance of a group selected. currreport.newpage

CurrReport.NEWPAGE used on OnAfterGetReccord trigger without ā€žDataItemTableā€œ.ā€œField Nameā€œā€‹

If function CurrReport.NEWPAGE is used in Classic Dynamics NAV report trigger without ā€žDataItemTableā€œ.ā€œField Nameā€œ condition, then during conversion there is new C/AL integer type variable SRB_PageGroupNo created and increased instead of CurrReport.NEWPAGE code. Also group with page break by SRB_PageGroupNo is created as a parent group of DataItemTable body group (group by DataItemTable primary key) where function CurrReport.NEWPAGE is used.

  • Example. Conversion of CurrReport.NEWPAGE function.

    If function CurrReport.NEWPAGE is used in some DataItem trigger, currreport.newpage

    then after conversion there is new C/AL global variable SRB_PageGroupNo created currreport.newpage

    and its value is increaced in the same place as function CurrReport.NEWPAGE was used. currreport.newpage

    New column with SRB_PageGroupNo as Data Source created currreport.newpage

    and new group by SRB_PageGroupNo value created currreport.newpage

    with page break option Between each instance of a group selected. currreport.newpage