| Session-based reporting |  |
| Most reports in ERP 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. For details, refer to the Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US). ERP LN also supports Report Viewer enabled reports. When printed, these reports are displayed in the ERP 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. The following sections describe how to set up session-based reporting and how to print session-based reports. To set up session-based reporting Step 1. Convert the reports to XML report designs To convert the reports to XML report designs, complete the following steps: Start the Enable Reports for RPT Design (ttadv3241m000) session. Enter the required information and click Convert. For details, refer to the session help. Note The generated report designs are stored in the report sources folder and have a ".rptdesign" filename extension. 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. For details, refer to To create session-based reports in the Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US). 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. For details, refer to the Infor ERP LN Development Tools 8.x Developer's Guide (U8883 US). Step 2. Create a Report Viewer device To print session-based reports, you need a device that sends the report output to the ERP LN Report Viewer. To create a Report Viewer device, complete the following steps: Start the Device Data (ttaad3500m000) session. Add a device with the following 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 To run session-based reports To print a session-based report to the ERP LN Report Viewer, complete the following steps: Start Web UI and log onto your ERP LN server. Start the print session to which the report is linked. Enter the required selection ranges and print options, and click Print. The Select Device (ttstpsplopen ) session starts. Select a Report Viewer device and click Continue. Note All business logic 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 ERP 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. For details, refer to To use the Report Viewer. |