Jump to content
Changes to the Jaspersoft community edition download ×

JDBC Report SQL using URL params for columns and values

Go to solution Solved by hozawa,

Recommended Posts


So I got a Report working utilising parameters. 

Said parameters are used in the reports sql query e.g

SELECT * FROM table WHERE paramter_column = $P{url_parameter1}

Now, does anyone know if it is possible to also utilise a paramter in subsitute of a hard coded sql query column in the form of paramter_column. E.g

SELECT * FROM table WHERE $P{url_parameter1} = $P{url_parameter2}

Would make the report I am trying to make a alot more dynamic and adapatable, one template to suit multiple report types instead of having several report tamplates hard coded. So far when i try the above, the report throws an error. 

Any help appreciated. 



Link to comment
Share on other sites

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