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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Running report from Forms

Status
Not open for further replies.

kazlen

Technical User
Jun 14, 2003
1
PL
I can't run a report file .rdf from Forms.
I added a report to Forms Object Navigator under Reports. My trigger code is:

declare
repid REPORT_OBJECT;
report VARCHAR2(100);
begin
repid := FIND_REPORT_OBJECT('REPORT1');
report:= RUN_REPORT_OBJECT(repid);
end;

The error message is:
"REP-0503 You did not specify the name of a report."

But I did! I set in the property palette of that report name field as REPORT1, filename field as D:\project\my_report.rdf

What is wrong? Anyone knows?
 
Did you check repid for null? Can you display debug message and check whether this file exists?

message(get_report_object_property(repid, REPORT_FILENAME));

BTW, do you execute it in client/server or web deployment?

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top