Why is it impossible to use a variable literally in a query? A parameter can be used this way with $P!{} syntax, why not make something like $V!{}? Thus I could assemble some parts of the query within the report itself, instead of messing with it outside the report. After all, what's the difference between a parameter and a variable in this respect? If I have a variable that only depends on paramters, then I should be able to use it in any place where a parameter fits. I was surprised to find out that it's not the case with JasperReports. I'm using JasperReports 1.2.2 by the way. Is there any chance of ever seeing such a feature?