Hi. Please can someone help with following:
I would like to pass the complete "WHERE statement" as a parameter to iReport 3.7 rather than each value for the statement parts.
The select statement is stored in the iReport itself.
The where statement options the user can choose are many, it's easier to build the where statement programatically and pass it to the report as a single parameter, so that I can ignore those not required rather than having to put default values that will include all values.
ie: rather than WHERE
fixproduct.prdid = fixlines.linprdid
and fixlines.linhedid = fixheader.hedid
and fixproduct.prdcode between $P{stkStart} and $P{stkStop}
would prefer
varWhereStatement = " fixproduct.prdcode between 'Item 1' and 'Item 6' "
WHERE
fixproduct.prdid = fixlines.linprdid
and fixlines.linhedid = fixheader.hedid
and $p{varWhereStatement}