Hello,
I am using iReport 3.5.2 to create a report using an XML data source. I followed the "Step by step" example from the "Sub-reports" section of "The Ultimate Guide to iReport", and I was able to get the example working with SQL. However, when I try to use an XML data source and XPath, the sub-report comes out blank in the master report's rendition (though it renders fine by itself).
What I am doing is fairly straight-forward:
- I create a master report
- I place a sub-report into it which passes a parameter with a value like "/Foo/Bar" (the XPath for the particular list of data I want in the sub-report)
- I place a field in the sub-report which references this XPath using $P{}
Again, I can render the sub-report alone and enter a parameter value like "/Foo/Bar" and the report will render as anticipated. I have tried removing XPath from the equation all together and simply creating a field with the parameter value, and still I get a blank page. This makes me suspect that something deeper than XML/XPath is wrong.
Thank you! Sean Purser-Haskell, Kewill PLC