Jump to content
We've recently updated our Privacy Statement, available here ×

Variables and parameters in Xpath expressions


rafaga

Recommended Posts

Hi everyone, i was wondering if it's posible to use JasperReports variables and parameters inside Xpath expressions (for fields) if I use XML datasources. An example:

Description of $F{Name}:

Person[iD=$V{ID}]/Name

or

Person[iD=$P{ID}]/Name

I've tried the last two with no sucess.

Maybe using variables and parameters in SQL queries is related, however i don't know how to do this either.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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