[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

IReport with Subreports and XML

Asked by awwdamn in Java Programming Language, Development Software, Page Layout / Desktop Publishing Software

Tags: IReport, XML, XPATH, subreport

I am using IReport 3.6.0. I have a main report and one subreport. The main report pulls the data from the XML file and displays it. The Subreport does this as well. Both reports use the same XML file with the XPath pointing to different places.
The subreports only purpose is to display comments (if any) under each of the listed fields generated in the main report.

The problem is that the main report never includes the data in the subreport.

the main report has the subreport with the expression
    $P{SUBREPORT_DIR} + "RelatedConceptSubReport.jasper"
and the datasource expression is
    $P{REPORT_CONNECTION}

the subreport jrxml file has the expression
    $P{SUBREPORT_DIR} + "RelatedConceptMaster.jasper"
and the same datasource expression.

I have created a parameter in each report with the same details
   COMMENTARY_NAME (with a value of) $F{commentaryName}

Do I need to do something else with the parameters that I have created?
[+][-]11/08/09 07:04 PM, ID: 25773158Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/10/09 06:05 AM, ID: 25785409Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 04:16 PM, ID: 25791412Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625