I try to run report with parameters from my form.
In my report i define four user parameter:
acc - number(25)
cur - char(3)
date1 - data ('DD.MM.RR')
date2 - data ('DD.MM.RR')
Trigger "when-mouse-click" PushButton in my form:
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
pl_id1 ParamList;
cr varchar2(3);
acc varchar2(20);
BEGIN
pl_id1 := Get_Parameter_List('vpv_list');
IF NOT Id_Null(pl_id1) THEN
Destroy_Parameter_List(pl_id1);
END IF;
go_block('PCR');
if substrpcr.ipcracc,6,3)=810 then
cr:='RUR';
else
cr:='USD';
end if;
pl_id1 := Create_Parameter_List('vpv_ex12');
acc:=cr.ipcracc;
Add_Parameter(pl_id1, 'ACC',TEXT_PARAMETER, acc);
Add_Parameter(pl_id1, 'CURR', TEXT_PARAMETER, cr);
Add_Parameter(pl_id1, 'DATE1', DATA_PARAMETER, to_datepcr.dpcrsdt,'DD.MM.RR'));
Add_Parameter(pl_id1, 'DATE2', DATA_PARAMETER, to_datepcr.dpcrfdt,'DD.MM.RR'));
Run_Product(REPORTS, 'vyp_par', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id1, NULL);
END;
but i get error: FRM-47012 Cannot add parameter DATE1 to Parameter List. Group 01-DEC-03 does not exist.
What i make wrong?
In my report i define four user parameter:
acc - number(25)
cur - char(3)
date1 - data ('DD.MM.RR')
date2 - data ('DD.MM.RR')
Trigger "when-mouse-click" PushButton in my form:
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
pl_id1 ParamList;
cr varchar2(3);
acc varchar2(20);
BEGIN
pl_id1 := Get_Parameter_List('vpv_list');
IF NOT Id_Null(pl_id1) THEN
Destroy_Parameter_List(pl_id1);
END IF;
go_block('PCR');
if substrpcr.ipcracc,6,3)=810 then
cr:='RUR';
else
cr:='USD';
end if;
pl_id1 := Create_Parameter_List('vpv_ex12');
acc:=cr.ipcracc;
Add_Parameter(pl_id1, 'ACC',TEXT_PARAMETER, acc);
Add_Parameter(pl_id1, 'CURR', TEXT_PARAMETER, cr);
Add_Parameter(pl_id1, 'DATE1', DATA_PARAMETER, to_datepcr.dpcrsdt,'DD.MM.RR'));
Add_Parameter(pl_id1, 'DATE2', DATA_PARAMETER, to_datepcr.dpcrfdt,'DD.MM.RR'));
Run_Product(REPORTS, 'vyp_par', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id1, NULL);
END;
but i get error: FRM-47012 Cannot add parameter DATE1 to Parameter List. Group 01-DEC-03 does not exist.
What i make wrong?