Jump to content
Changes to the Jaspersoft community edition download ×

Pls help with dataSourceExpression


fatsy

Recommended Posts

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}+&quot]/AlternativeScenario/Step")

What I would like to know is how to declare the part([@title="+$F{title}+&quot]) 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.

 

Regards

Fatma

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...