fatsy Posted March 27, 2007 Share Posted March 27, 2007 Hallo,I have master report which has a variable declared in it.The subreport ist using its own data expression i.e (net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/UseCaseGroup/UseCaseGroup/UseCase[@id=$V{ID}]/MainScenario/Step")]]But unfortunately the subreport part is blank.So my question did I not correctly my XPath or what i'm I supposed to do to make them visible. Any help or suggestion will be very appreciatesThanks in advanceYourFatsy Link to comment Share on other sites More sharing options...
lucianc Posted March 27, 2007 Share Posted March 27, 2007 You need something likeCode:<dataSourceExpression> ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("/UseCaseGroup/UseCaseGroup/UseCase[@id='" + $V{ID} + "']/MainScenario/Step"«»)</dataSourceExpression> HTH,Lucian Link to comment Share on other sites More sharing options...
fatsy Posted March 28, 2007 Author Share Posted March 28, 2007 Hallo,It worked.Thanks alot for your help YoursFatsy 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