Package com.ptc.wbr.datasource
Class ReportTaskJRDataSource
java.lang.Object
net.sf.jasperreports.engine.data.JRAbstractTextDataSource
net.sf.jasperreports.engine.data.AbstractXmlDataSource<net.sf.jasperreports.engine.data.JRXmlDataSource>
net.sf.jasperreports.engine.data.JRXmlDataSource
com.ptc.wbr.datasource.ReportTaskJRDataSource
- All Implemented Interfaces:
WNCJRDataSource,net.sf.jasperreports.engine.data.HierarchicalDataSource<net.sf.jasperreports.engine.data.JRXmlDataSource>,net.sf.jasperreports.engine.data.RandomAccessDataSource,net.sf.jasperreports.engine.JRDataSource,net.sf.jasperreports.engine.JRRewindableDataSource
public class ReportTaskJRDataSource
extends net.sf.jasperreports.engine.data.JRXmlDataSource
implements WNCJRDataSource
This class provides the implementation for @JRDataSource interface of jasper library. It is used by
Jasper Engine to fill the report. This is Introduced to execute the "ReportTask" via WindchillJDBC instead of
anonymous URL.
This implementation should be used only for execution inside Method Server.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Constructor Summary
ConstructorsConstructorDescriptionReportTaskJRDataSource(String reportTaskName) This constructor can be used in JRXML for providing instance of JRDataSourceReportTaskJRDataSource(String reportTaskName, Map params) This constructor can be used in JRXML for providing instance of JRDataSource.ReportTaskJRDataSource(String reportTaskName, Map params, String selectXpathExpression) This constructor can be used in JRXML for providing instance of JRDataSource -
Method Summary
-
Constructor Details
-
ReportTaskJRDataSource
This constructor can be used in JRXML for providing instance of JRDataSource- Parameters:
reportTaskName- Name of the ReportTask used as datasource.- Throws:
Exception-
Supported API: true
-
ReportTaskJRDataSource
This constructor can be used in JRXML for providing instance of JRDataSource. Xpath expression "/dataset/data/row" will be followed while retrieving data.- Parameters:
reportTaskName- Name of the ReportTask used as datasource.params- Input Parameters/Criteria for ReportTask as a map.- Throws:
Exception-
Supported API: true
-
ReportTaskJRDataSource
public ReportTaskJRDataSource(String reportTaskName, Map params, String selectXpathExpression) throws Exception This constructor can be used in JRXML for providing instance of JRDataSource- Parameters:
reportTaskName- Name of the ReportTask used as datasource.params- Input Parameters/Criteria for ReportTask as a map.selectXpathExpression- XPath Expression to select data.- Throws:
Exception-
Supported API: true
-