| Session-based reporting (OP)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. For details, see Infor LN Development Tools Development Guide. LN also
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. The
following sections describe how to set up session-based reporting and how to
print session-based reports. Step 1. Convert the reports to XML report designs- Start the Enable Reports for RPT Design (ttadv3241m000) session.
Specify the required information and click Convert. For details, see 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, 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. For details, see the Infor LN Development Tools Development Guide.
Step 2. Create a Report Viewer deviceTo print session-based reports, a device is required that
sends the report output to the LN Report Viewer. To create a Report Viewer device: - Start the Device Data (ttaad3500m000) session.
- 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
Step 3. To run session-based reportsTo print a session-based report to the LN Report
Viewer: - Start Web UI and log onto your LN server.
- Start the print session to which the report is
linked.
- Specify 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 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, see To use the Report Viewer (OP).
| |