É isso que aparece no form de parâmetros:
where
campo1 = decode(0,0,campo1,0)
and campo2 between '01-JAN-08' and '30-JUL-08' PARAMFORM='NO' DESFORMAT='dflt' DESTYPE='Screen
V_WHERE := 'where campo1 = decode('||:campo1||',0,campo1,'||:campo1||')
and campo2 between '''||:data1||''' and '''||:data2||'';
pl_id := Get_Parameter_List('param_reporte');
IF NOT id_null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id := Create_Parameter_List('param_reporte');
Add_Parameter(pl_id,'P_WHERE',TEXT_PARAMETER, V_WHERE);
Add_Parameter(pl_id,'PARAMFORM', TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESFORMAT', TEXT_PARAMETER,'dflt');
Add_Parameter(pl_id,'DESTYPE', TEXT_PARAMETER,'Screen');
RUN_PRODUCT(REPORTS,ADM.DOMINIO||'\relatorio_dias_cor', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, '');