gaetan_prulhiere Posted May 26, 2014 Share Posted May 26, 2014 HelloI 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 More sharing options...
mbmorgan Posted May 29, 2014 Share Posted May 29, 2014 Hi, I previously posted an answer, but for some reason it is not showing.It sounds like you want to implement a conditional query. Here is a link to a very helpful video explaining how to do just that:http://community.jaspersoft.com/blog/how-implement-conditional-query-ireport-using-sample-database-sample-includedGood Luck,M.B.Morgan Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now