gombs Posted February 2, 2007 Share Posted February 2, 2007 Hi guys, I have posted in iReport forum, but I think its a generally problem from Jasperreports. I have an XML-Datasource in a Jasperreport it works fine, but when I inserted this report to an other report as an subreport it was empty and I get a warning: 1286293 [mv_atos_part subreport filler] WARN query.JRXPathQueryExecuter - The supplied org.w3c.dom.Document object is null. The parentreport has the same Datasource and the normally fields are corect filled. Greets Link to comment Share on other sites More sharing options...
Teodor Danciu Posted February 2, 2007 Share Posted February 2, 2007 Hi, When you embed the report as a subreport into another master report, make sure that you pass the XML document as a parameter to the subreport.I assume you use the PARAMETER_XML_DATA_DOCUMENT parameter so you should make sure you pass this to the subreport using a <subreportParameter> tag. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
gombs Posted February 3, 2007 Author Share Posted February 3, 2007 thank you for trying to help me.I use this parameter: $P{REPORT_CONNECTION} This is the default, when I insert the subreport with iReport. With XML_DATA_Document as Subreport datasource expression it doesnt works, too. Maybe you can show me a very small example, that works, it will say more than 1000 words, I hope you can spend a few minute, I am very hopelessly. :silly: Link to comment Share on other sites More sharing options...
fero2 Posted February 6, 2007 Share Posted February 6, 2007 I solved it. In subreport properties. U need to choose "Use data source expression". And then put inside $P{REPORT_DATA_SOURCE} or what ever u want. When u choose "Use connection expression" it is not working. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now