Hi,
I have a report with datetime parameter which is required to be optional (there should be an option not to
select this parameter which would cause in not narrowing result of this report by this parameter).
I used datetime parameter
@daTo (to
have the calendar control for selecting date) and check on "Allow Null" value. Here is default Value.
I've also tried to set DefaultValue expression was "=Nothing".
IN my query of data set, here is the part I use the parameter @daTo
... Where (@daTo IS NULL OR TRUNC(@daTo) >= TRUNC(pe.start_time) ....
But when I run the report, I got below error:
ORA-00932: inconsistent datatypes: expected DATE got NUMBER
I think it @daTo value actually not null so it try to TRunc the value
I don't know how to set null value default in my report. Any idea for help, please?
Thank you