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)
Related concepts
Syntax diagram for EGL functions
EGL reports overview
EGL report creation process overview
Related reference
addReportData()
addReportParameter()
EGL library ReportLib
exportReport()
fillReport()