Without knowing much about your code or system I would say you need a subreport to use 2 datasources. However if the data you need is in 2 separate databases then why not use a join sql statement?
The Query is
session.createQuery(from jasperReport.Project P,jasperReport.Coverage C where P.projectId = 1 and C.coverageId = 1)
Corresponding SQL Query:select project0_.PROJECT_ID as PROJECT1_1_0_, coverage1_.COVERAGE_ID as COVERAGE1_0_1_, project0_.PROJECT_NAME as PROJECT2_1_0_, coverage1_.COVERAGE_NAME as COVERAGE2_0_1_ from PROJECT project0_, COVERAGE coverage1_ where project0_.PROJECT_ID=1 and coverage1_.COVERAGE_ID=1
This returns two objects. Project and Coverage.
Project Attributes:projectId
projectName
Coverage Attributes:coverageId
coverageName
projectFk(Foreign key - project.projectId)
Now in the JRXML
<field name = "projectId" ...> is accepted
<field name = "coverageId"...> is showing error as undefined property
Is there any wat to call the attributes separately like
project.ProjectId
coverage.coverageId??