LSPS documentation logo
LSPS Documentation
Functions

Reports

embeddedJasperReportUrl(module* : String, reportPath* : String, reportParameters : Map<String, Object>) : String

When using internal embedded simple Jasper Server: Produces a JasperReport Server URL which can be passed directly to the Browser Frame. The URL will display given report as HTML.

Parameters:

  • module
  • reportPath
  • reportParameters
jasperReportExport(module* : String, path* : String, format* : reports::ReportFormat, reportParameters : Map<String, Object>) : File

Runs given Jasper Report and produces a single file of the required type.

Parameters:

  • module
  • path
  • format
  • reportParameters Optional report parameters
jasperReportUrl(jasperServerUrl* : String, username : String, password : String, reportPath* : String, embedded* : Boolean, reportParameters : Map<String, Object>) : String

When using external Jasper Server: Produces a JasperReport Server URL which can be passed directly to the Browser Frame. The URL will display given report as HTML.

Parameters:

  • jasperServerUrl Jasper Server URL, for example http://localhost:8080/jasperserver/
  • username Optional Jasper Server username. Warning - the username is transmitted as a part of the URL - this is not secure!
  • password Optional Jasper Server password. Warning - the password is transmitted as a part of the URL - this is not secure!
  • reportPath The path to report, e.g. /reports/interactive/CustomersReport
  • embedded If false, a menu bar is displayed along with the report, which allows you to export the report as PDF
  • reportParameters Optional report parameters