getDataSource()

getDataSource(), unlike other functions in ReportLib, is a Java™ method rather than an EGL function. You may call it only from within a JasperReports design file. getDataSource() retrieves previously stored ReportData in form of a JRDataSource object. You may then pass this data source to a subreport.

  ReportLib.getDataSource(dataID STRING in)
  returns (data_source JRDataSource)
dataID
A name assigned to a ReportData record during an invocation of ReportLib.addReportData()
data_source
A reference to an object of type JRDataSource
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.