1) create P_from_date and P_to_date are user bind parameters
2) Create LP_WHERE_CLS lexical parameter.
3) Write below code in the After Parameter Form Trigger
If :p_from_date is not Null
and :p_to_date is null then
LP_WHERE_CLS : 'AND inv.invoice_date :p_from_date'
elsif :p_to_date is not null and
:p_from_date is null then
LP_WHERE_CLS : 'AND inv.invoice_date :p_to_date'
elsif :p_to_date is not null
and :p_from_date is not null
LP_WHERE_CLS : 'AND inv.invoice_date Between :p_from_date AND :p_to_date '
end if;
This solution may help user more