Friday 9 February 2024

Tip: Connection Expression for Sub report for XmlDataSource in jasper reports

 In an XML data adapter report, when you call a sub report of same data adapter in master report, one can use below expression to establish connection. 

((net.sf.jasperreports.engine.data.JRXmlDataSource)

$P{REPORT_DATA_SOURCE}).subDataSource("/tags/employee")




No comments:

Post a Comment