Question : Oracle Forms- RUN_REPORT_OBJECT

I am converting several ORacle Forms 6i to run reports using the RUN_REPORT_OBJECT.

All my forms run one report and pass parameters to it. Do I need to create a procedure in the database which is called by each form?

My Form called F1, calls Report R1 and passes 3 parameters to it(P1,P2 andP3). Can someone provide me an example of how to run the report?

I can't find any manuals or documentation anywhere to show me how this is done so your help is greatly appreciated.



Answer : Oracle Forms- RUN_REPORT_OBJECT

For converting Forms6i to Forms10g you can use a Forms Migration Assistant which is a part of Developer 9i/10g.
For passing parameter to report you create a parameter form:

declare
  p_list paramlist;
  meno_p_listu varchar2(50) := 'print';
begin
  p_list := get_parameter_list(meno_p_listu);
  if not id_null(p_list) then
    destroy_parameter_list(p_list);
  end if;
  p_list := create_parameter_list(meno_p_listu);

 add_parameter(p_list,'PARAMFORM',text_parameter,'NO');
 add_parameter(p_list,'ID',text_parameter,your_parameter1));
---
end;

Here is a good documentation with examples:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
Random Solutions  
 
programming4us programming4us