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

How change the subreport's query


gaetan_prulhiere

Recommended Posts

Hello

I would like to change the field in the select of my subreport's query..

For example, in the query : select max(field) from myTable, i would like to have a parameter $P{MAX_MIN} to choose the maximum or the minimum like that :

select $P{MAX_MIN} from myTable where  $P{MAX_MIN} = 'max(field)' or 'min(field)'.

Can I do that or something like that ?

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