To create report libraries

To create a report library, you must first create an initial report library on the LN server. Subsequently, you must complete the new library in the Infor LN Reporting Studio. For details, see the procedure steps.

Step 1. Create an initial report library

To create an initial report library:

  1. Start the Reports (ttadv3530m000) session. Make sure you select the proper development VRC as your current package VRC.
  2. Click New. A question "Start report generator?" is displayed.
  3. Click No. The Reports (ttadv3130s000) details session starts.
  4. Enter the module and report code and the description for the new report library. In the Report Type field, select "Report Library".
  5. Save the new report library and close the details session.

The initial report library is stored in the report sources folder and has a ".rptlibrary" filename extension.

Step 2. Transfer the report library to your client PC

Before you can edit a report library in Reporting Studio, you must transfer the report library to your client PC:

  • If SCM is not active, for example if LN runs on a Windows platform, you must export the report library before you can edit it.
  • If SCM is active, you must check out and export the report library before you can edit it.

To transfer a report library to your client PC:

  1. In the Reports (ttadv3530m000) session, take one of the following steps:
    • If SCM is active, select the report library and click Check-Out.
    • If SCM is not active, select the report library and, on the appropriate menu, click Export RPT file....
    The Export/import RPT file dialog appears.
  2. In the Export to field, enter the destination directory and file name. The default export destination is the ${BSE_TMP} directory on your client PC.
  3. Click Continue to transfer the report library.
Step 3. Edit the report library

Start Reporting Studio and open the report library. Enter the desired code in the library. You can, for example, define functions you want to share in multiple reports.

For details, refer to the Reporting Studio documentation.

Step 4. Upload the report library into the LN data dictionary

Once you have completed a report library, you must upload the report library into the data dictionary on the LN server:

  • If SCM is not active, you must import the report library on your LN server.
  • If SCM is active, you must import and check in the report library.

To upload a report library:

  1. Start the Reports (ttadv3530m000) session.
  2. Take one of the following steps:
    • If SCM is active, select the report library concerned and click Check-In.
    • If SCM is not active, select the report library concerned and, on the appropriate menu, click Import RPT file....
    The Export/import RPT file dialog appears.
  3. In the Import from field, enter the directory and file name of the exported/checked out report library on your client PC.
  4. Click Continue to import the report library.
  5. If SCM is active, a question "Do you want to check in this Report?" is displayed. Click Yes and enter a revision text to check in the report library.
To link a report library to a report design

To share the functionality in a report library, you can link the library to multiple report designs. For details, refer to the Reporting Studio documentation.

Example - code in a report design to link report libraries

The following code shows how the ChartDataFinal and GeneralFinal report libraries are linked to a report design.

<list-property name="libraries">
        <structure>
            <property name="fileName">ChartDataFinal.rptlibrary</property>
            <property name="namespace">ChartDataFinal</property>
        </structure>
        <structure>
            <property name="fileName">GeneralFinal.rptlibrary</property>
            <property name="namespace">GeneralFinal</property>
        </structure>
 </list-property>