This discussion is archived
9 Replies Latest reply: Aug 12, 2013 5:40 AM by O.Developer RSS

Calling Report from Forms -6I - Forms and Report

O.Developer Journeyer
Currently Being Moderated
I am calling simple emp report from form using emp table. Forms 6i and Reports 6i

I have a emp report with parameter :eno; (for a particular emp no)

I have form- with block emp In When button pressed i need to print payslip of employeee - number passing from form.- Please help me on this

code on -When Button Pressed :

Declare
     
pl_id ParamList;
BEGIN

pl_id := Get_Parameter_List('empdata');

IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;

pl_id := Create_Parameter_List('empdata');

Add_Parameter(pl_id,':eno',DATA_PARAMETER,:emp.empno);

Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');

Run_Product(REPORTS, 'd:\emp1', SYNCHRONOUS, RUNTIME,
FILESYSTEM, pl_id, NULL);
END;

-

Error while pressing button on runtime
while running pressing the button getting error :
frm-47012- could not add parameter :eno to parameter list empdata

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points