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

Injecting Jasper parameters into field specifications


dablick

Recommended Posts

I want to have shared (template) JRXML files that work for a variety of XML datasources.

The only thing I know of that might prevent this is that the field specifications would be slightly different.

For one XML file the XPATH for a name field might be:

          person/name/last

For another XML file the XPATH might be:

          contact/last_name

Ideally I could pass the XPATH in as a parameter and have the following inside a fieldDescription tag

            $P{XPATH_FOR_NAME}

But Jasper doesn't seem to support the use of parameters in tags.

Is the some way for me to inject the field specification into my JRXML templates?

Link to comment
Share on other sites

  • Replies 0
  • 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...