Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update link to go to OpenMRS Add-ons index instead

Table of Contents
outlinetrue
indent20px
stylenone
printablefalse

Overview

The purpose of this module is to allow users to generate Jasper Reports from the OpenMRS interface.

Installation

  1. Download the latest version from the OpenMRS module repository and add it to your OpenMRS application using the Administration->Manage Modules page.
  2. Go to the Administration->Manage Global Properties and configure the jasperReport.reportDirectory property to point to the directory on your server that the module can use to upload your reports to (you may have to manually create this directory).
    1. Ensure that Tomcat has permissions to read and write to this directory.
  3. You're done!

...

  • In the parent report, configure a parameter called SUBREPORT_DIR. This parameter is passed to the report from OpenMRS and points to the directory in which the report ZIP archive has been extracted to. Note that the path includes a file separator at the end. E.g.
Code Block

\# : "/usr/local/tomcat/OpenMRS/reports/13/"
\# : "c:\OpenMRS\reports\13\"
  • Add your Subreport to your report and configure the "Subreport Expression" on the "Subreport (Other)" tab of the Subreport properties dialog as follows (his tells your report where to find the Subreport file):
Code Block

\# : $P\{SUBREPORT_DIR\}\+ "subreport-filename.jasper"

...

Troubleshooting

  • Information
    I'm running Windows Vista but iReport 2.0 will not let me save the report file I created.

...