When i try to execute a report from forms10g i found the errore id not ....

i have a button in a form that run on forms10g that tri to execute a report in the web :
the trigger is this
**** when i try to execute the button the error is that the is impossibile to find the "report ID"???
there is a easist solution to execute a report from a form button ????
thank's !
DECLARE
report_id Report_Object;
BEGIN
report_id:= find_report_object('imm_print_01');
PROCEDURE RUN_REPORT_OBJECT_LIST(report_id , 'repSRV' , 'pdf');
END;
the procedure run_report_object_list is the follow :
PROCEDURE RUN_REPORT_OBJECT_LIST(report_id REPORT_OBJECT, reportserver
varchar2,
runformat varchar2) IS
report_job_id VARCHAR2(100);
vc_rep_status VARCHAR2(20);
paramlist_id ParamList;
paramlist_name VARCHAR2(10):=’tmplist’;
BEGIN
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,
SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,
reportserver);
paramlist_id:= get_parameter_list(paramlist_name);
IF NOT id_null(paramlist_id) THEN
destroy_parameter_list(paramlist_id);
END IF;
paramlist_id:=create_parameter_list(paramlist_name);
add_parameter(paramlist_id,’DESTYPE’,TEXT_PARAMETER,’CACHE’);
add_parameter(paramlist_id,’PARAMFORM’,TEXT_PARAMETER,’NO’);
add_parameter(paramlist_id,’desformat’,TEXT_PARAMETER,
runformat );
report_job_id:=RUN_REPORT_OBJECT(report_id,paramlist_id);
END;

Please see that in your form you have created a "report object" with the same name ie "imm_print_01" . This is done using Forms builder in object navigator
(For forms-reports intg pls see "forms reports integration whitepaper" (link below)
[    All Docs for all versions    ]
http://otn.oracle.com/documentation/reports.html
[     Publishing reports to web  - 10G  ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[   Building reports  - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[   Forms Reports Integration whitepaper  9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
---------------------------------------------------------------------------------

Similar Messages

Maybe you are looking for