Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run reports from forms

Status
Not open for further replies.

vchen7

Programmer
Mar 15, 2004
17
PF
Hi,
I run reports from forms with something alike :
"
set_report_object_property(repid, REPORT_OTHER, param_string);
v_rep := RUN_REPORT_OBJECT(repid);
"

I call a reports from the forms, this reports call in Before-Report Trigger, a function in a library LIB-REP, attached to this reports.

When I run the forms it goes in error :
REP 1401 'beforereport' : fatal error
ORA 06508 PL/SQL : could not find program unit being called
Any help please?

Thanks a lot!!
Vincent

 
Hi sem,
I have found a solution.
In the forms running the reports, add the command-line parameter recursive_load=no as follows :

"
declare

repid REPORT_OBJECT;
v_rep varchar(100);
param_string varchar2(400):= null;
filename varchar2(15):= 'MY_REPORT';

begin

repid := find_report_object('REP');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, filename);
param_string := param_string||' PARAMFORM=NO ORACLE_SHUTDOWN=YES RECURSIVE_LOAD=NO';
set_report_object_property(repid, REPORT_OTHER, param_string);
v_rep := RUN_REPORT_OBJECT(repid);

end;
"

The default value of recursive_load is set to YES. In this case, "reports runtime tries to force a recompile instead of assuming all the PL/SQL references are valid" quoted from metalink.

Thanks for your interest,
Vincent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top