getDataSource()

When you generate a JasperReport handler, EGL also generates an internal Java™ method, getDataSource(). The method retrieves report data that you previously stored using the implicit addReportData() JasperReport handler function. EGL stores the data in an internal format; you must cast the object as a JRDataSource type when you pass it to a subreport. You can call getDataSource() only from within a JasperReports design file (.jrxml extension).

  getDataSource(dataID STRING in)
  returns (report_data)
dataID
A name you assigned to a ReportData record using addReportData()
data_source
A reference to a report data object, stored in an internal format. You must cast this reference as a JRDataSource type before the subreport can use it.

Syntax


Feedback