title: Dynamic querystring in JRXML
body: <p>I'm trying to build a report that would be smart enough to modify slightly its sql query based on an input parameter of some sort. </p>
  
  <p>For example if that special modifying parameter value is "1", it adds a field in the select and adds a group by clause to the query.</p>
  
  <p>I've looked into java expressions, but they don't seem to be supported in the queryString tag of the jrxml. Also tried to make a variable containing the java expression and use that variable in the queryString tag... That didn't work either! </p>
  
  <p>Right now I'm thinking of maybe have a stored procedure with all that logic and simply have the jrxml calling that stored procedure with the modifying input parameter, but the project I'm working on doesn't seem to have a whole lot of stored proc, so I'd like to see if there are other solutions before I go down that path.</p>
  
  <p>Thanks for your help.</p>
  
  <hr>
  
  <p>Thank you guys for your help, much apprieciated. However I found another way to go about it, and posted it for information: <a href="http://www.coderanch.com/t/435096/Other-Open-Source-Projects/RESOLVED-jasper-iReport-multi-reports" rel="nofollow noreferrer">here</a></p>