Jump to content
Changes to the Jaspersoft community edition download ×

preview with subreport and xmldatasource


frblusso

Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...