Jump to content
Changes to the Jaspersoft community edition download ×

Parameter in XPath Query


adcooney
Go to solution Solved by Giulio Toffoli,

Recommended Posts

Hi,

If I have a parameter - $P{year} = "2009", is it possible to use the parameter inside a field XPath query, such that I could do something like:

/data[year=$P{year}] and then the $P{year} would get replaced by the String value of $P{year} creating my query /data[year=2009]

 

Or if there is an alternative solution (without hard-coding the value).

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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