fatsy Posted August 6, 2007 Share Posted August 6, 2007 Hallo all, I have a question on how to declare dataSourceExpression in JRBeanCollectionDataSource.For example with Xml xpath I'll declare dataSourceExpression as following ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/UseCaseGroup/UseCaseGroup/UseCase[@title="+$F{title}+"]/AlternativeScenario/Step")What I would like to know is how to declare the part([@title="+$F{title}+"]) in JRXmlDataSource.I did declare my dataSourceExpression as following new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{RG}) but the problem is that it will only be displayed once not for all objects.I think when using for all title them all objects will be displayed as in xml. Help will be really apreciated.I stuck for days on this problem.Thanks in advance. RegardsFatma 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