Hello.
I am trying to run a report that filters on a Start Date and End Date. Ideally, if no start/end date is provided I would calculate a date range. If prompt values are provided, I would use those.
Something like:
[date] is between
if (?p_Start_Date? is null) then (SYS_DATE() - 4 months) else ( ?p_Start_Date?)
and
if (?p_End_Date? is null) then (SYS_DATE() - 1 months) else ( ?p_End_Date?)
However,
If I make the prompt optional, and I don't provide prompt values then the filter is not applied.
If I make the prompt required, then the "default" calculated dates aren't used and schedule the report to run once a quarter.
The idea is to send users a report every three months with the last quarter's data or let them run the report manually for any time period they want.
Maybe my approach is bad?
------------------------------
Gerard Ruppert
------------------------------