Skip to main content

CurrReport.SHOWOUTPUT

There are two ways of how CurrReport.SHOWUTPUT function is implemented durring the conversion. The value of CurrReport.SHOWOUTPUT is transfered to the proper row visibility in RDLC format report layout or all the code from section trigger is added to new function, where CurrReport.SHOWOUTPUT is changed to new boolean type variable and after that used in proper row visibility in RDLC format report layout.

  • Example 1. Function‘s CurrReport.SHOWUTPUT conversion to row visibility.

    If function CurrReport.SHOWUTPUT is used in OnPreSection() trigger, currreport.showoutput

    during the conversion there is column with function‘s CurrReport.SHOWOUTPUT parameter as Data Source created in Report Dataset Designer
    currreport.showoutput

    and used as row visibility expression.
    currreport.showoutput

  • Example 2. Function‘s CurrReport.SHOWUTPUT conversion to C/AL variable.

    If function CurrReport.SHOWUTPUT is used in OnPreSection() trigger, currreport.showoutput

    during the conversion there is C/AL global variable and function created (in this case boolean variable SRB_Integer_Body1_Visible and function Integer_Body1_OnPreSection()). currreport.showoutput currreport.showoutput

    Code from OnPreSection() trigger is transfered to C/AL function and CurrReport.SHOWOUTPUT function replaced with boolean type variable. currreport.showoutput

    There is column with boolean variable as Data Source created in Report Dataset Designer currreport.showoutput

    and used in Report Layout Designer as row visibility expression. currreport.showoutput


The main cases when CurrReport.SHOWUTPUT is replaced with boolean variable:

  • Section trigger contains more code than just CurrReport.SHOWOUTPUT function used.
  • More than one CurrReport.SHOWUTPUT used in one section trigger.
  • CurrReport.SHOWUTPUT used in both same section triggers (OnPreSection() and OnPostSection()).
  • If symbols :: used in CurrReport.SHOWUTPUT function. This is frequently used with option type variables (for example, CurrReport.SHOWOUTPUT(„Account Type“ = „Account Type“::Posting)).
  • If some C/AL function is used in CurrReport.SHOWOUTPUT function (for example, GETFILTERS), except CurrReport.PAGENO.