ikaaki Posted June 16, 2008 Share Posted June 16, 2008 Hi, I'm using xml file as datasource. A.jrxml is the parent report and B.jrxml is the subreport. I left blank for the parameters map expression, $P{REPORT_CONNECTION} for Connection/Data source Expression, and add two subreport parameters. But I don't know how to pass the parameters in the subreport. There are some documents for the subreport, but they always take SQL query as examples.In the case of SQL query, we use "select * from xxx where abc=$P{Name_Parameter}".But for the xml datasource, anyone knows how to write an expression for passing parameters?I think it will be something like ($F{id}==$P{id})?$F{refs_id}:"N/A" Thanks in avance.Regards, Link to comment Share on other sites More sharing options...
ikaaki Posted June 17, 2008 Author Share Posted June 17, 2008 Anyone could help?S'il vous plait. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted June 17, 2008 Share Posted June 17, 2008 Hi, The /demo/samples/xmldatasource folder in the JR distribution package contains a sample with an XML data source and subreports. I think it is what you are looking for. Thanks,Teodor 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