Session-based reporting

Most reports in LN are 4GL reports. These reports consist of a layout part and, optionally, a report script. You can edit these report layouts in the classic report editor.

See the Infor LN Development Tools Development Guide.

LN supports Report Viewer enabled reports. When printed, these reports are displayed in the LN Report Viewer. Developers can edit these reports in the Reporting Studio Report Designer. The Report Designer offers various useful features to beautify the reports.

You can convert existing 4GL reports to Report Viewer enabled reports. These converted reports are called session-based reports. How to set up session-based reporting and how to print session-based reports is described later.

  1. Convert the reports to XML report designs
    1. Start the Enable Reports for RPT Design (ttadv3241m000) session.
    2. Specify the required information and click Convert .

      For details, see the session help.

    Note: 
    • .rptdesign file name extension. The generated report designs are stored in the report sources folder and have a
    • Developers can transfer the report designs to their client PCs and beautify the layout of the converted reports in the Reporting Studio. For example, developers can add a graph or a company logo to the report layout.

      See To create session-based reports in the Infor LN Development Tools Development Guide.

    • To change the structure of a session-based report, for example to add layouts, input fields, or labels, developers must use the classic report editor.

      See the Infor LN Development Tools Development Guide.

  2. Create a Report Viewer device

    To print session-based reports, a device is required that sends the report output to the LN Report Viewer.

    To create a Report Viewer device:

    1. Start the Device Data (ttaad3500m000) session.
    2. Add a device with these properties:
      • Device : RPT
      • Description : Report Viewer
      • Device Type : Rewrite File
      • Locale : <empty>
      • Intermediate File in XML Format : Yes
      • Driver : <empty>
      • Shell Command : <empty>
      • 4GL Program : <empty>
      • Argument : XML -RPT
      • Path : ${HOME}/rpt
  3. To run session-based reports

    To print a session-based report to the LN Report Viewer:

    1. Start Web UI and log onto your LN server.
    2. Start the print session to which the report is linked.
    3. Specify the required selection ranges and print options, and click Print. The Select Device (ttstpsplopen ) session starts.
    4. Select a Report Viewer device and click Continue .
      Note: 
      • All business logic that is defined in the session and the original 4GL report is executed. Therefore, the report can be part of the business process. For example, the report can perform transactions in the database or change the status of a record.

      • The LN Report Viewer only works with Web UI. Worktop users cannot print Report Viewer enabled reports.

      • From the Report Viewer, you can send a report to, among other things, a printer or a PDF file.