I have a question: how to set default value of the parameter i JasperReport's report? I have tried sth like this:
<parameter name="where" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA[1 = 1]]></defaultValueExpression>
</parameter>
and include this parameter to my queryString:
<queryString>
<![CDATA[SELECT *
FROM "TABLE"
where $P{where}]]>
</queryString>
But I have an error. I also tried to set this value in java, for instance 1.equals(1) but it still doesn't work. I have to set in this parameter a condition which is always true. How to do this?