frblusso Posted September 5, 2006 Share Posted September 5, 2006 hello i have succeded to generate a pdf, with the jasperreports1.2.0/demo/samples/xmldatsource inside my web application.the problem is that i do not succeed to preview the result with ireport1.2.0. I have this message when i run a preview from the main report :WARNÂÂJRXPathQueryExecuterÂÂ(<init>,Â68ÂÂ)Â-ÂTheÂsuppliedÂorg.w3c.dom.DocumentÂobjectÂisÂnull. and the pdf genrated shows only the data from the main datasource (/Northwind/Customers) and nothings for the second one (xpath =/Northwind/Orders[CustomerID=$P{CustomerID}]). In the java code i had to set the XML_DATA_DOCUMENT to pass the data to the subreport, but how can i do it inside ireport? i have another question, when i search inside the Ireport forum, i obtain response from all forums (jasper report, archives,...) is it possible to restrict to the current forum which i use? or at least , sort the list by forum?regards Françoise Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted September 5, 2006 Share Posted September 5, 2006 How did you have defined the datasource to fill the report? size=300]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/xmlds.png You should check the radio "Use the report XPath expression ... " GiulioPost edited by: giulio, at: 2006/09/05 09:08 Link to comment Share on other sites More sharing options...
frblusso Posted September 5, 2006 Author Share Posted September 5, 2006 in fact , i haven't the choice in ireport 1.2.0 : when i define the datasource, i have to write the path in the field select expression : so i define one datasource for the main report and one for the subreport, each one with a different expression. regards, Françoise Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted September 5, 2006 Share Posted September 5, 2006 The problem is that in this way the XPath query inside the report will be ignored. Giulio Link to comment Share on other sites More sharing options...
frblusso Posted September 5, 2006 Author Share Posted September 5, 2006 so what is the solution? may i have to migrate to the latest version of ireport to have the correct interface of connection properties? Françoise Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted September 5, 2006 Share Posted September 5, 2006 I strongly suggest it. 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