I want to make a Report Definitions item in backoffice that will retrieve some columns. The query needs to be like this to retrieve what I need:
SELECT {a}, {b} , {c} FROM {model} WHERE {d} IS NULL AND {e} IS NULL
All values (a,b...e) are strings. I want to parametrize the {d} and {e} column, but I want to be able to search exactly the query I write before. I start to do something like:
SELECT {a}, {b}, {c} FROM {model} WHERE {d}=?dStatus AND {e}=?eStatus
, and dStatus and eStatus paramas was java.lang.String types, but this didn't work.
It's possible to make this flexibleSearch query with {d} and {e} columns parametrized to search for null values in Report Definitions?
Hi If you want to make a Report Definition parameterized it's Possible.
you can do it via the following steps.
Here baseStoreParam,orderStartDateParam,orderEndDateParam are parameter.
Note: based on the expected result value and type we need to define the position and type of that attribute in the
<attributes>
tag.