Home » Developer & Programmer » Forms » Run the Report in oracle froms 10g error (oracle froms10g)
Run the Report in oracle froms 10g error [message #464382] Wed, 07 July 2010 11:33 Go to next message
kvkpraveen
Messages: 20
Registered: June 2010
Location: Bangalore
Junior Member
Hi All,

i tried to run the report via oracle froms 10g in BUTTON CLICK. But i got the error like "FRM-41219 : CANNONT FIND REPORT:INVALID ID". I did the Following code.


DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver01');
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'PARAMFORM=NO P_DOC_NR='||:TBL_DOCUMENTS.DOC_PK);
repid := find_report_object('REPORT128');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
rep_status := report_object_status(v_rep);
END LOOP;

Cheers!
Praveen.K
Re: Run the Report in oracle froms 10g error [message #464506 is a reply to message #464382] Thu, 08 July 2010 04:04 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I would have thought that this line:
repid := find_report_object('REPORT128'); 

Should come first.
Re: Run the Report in oracle froms 10g error [message #464559 is a reply to message #464506] Thu, 08 July 2010 07:15 Go to previous messageGo to next message
kvkpraveen
Messages: 20
Registered: June 2010
Location: Bangalore
Junior Member
Hi,

I tried this as per your suggestion but i am getting this error

"FRM-40738 : Argument 1 to builtin RUN_REPORT_OBJECT cannot be null". Please give some suggestion

Cheers!
Praveen.K
Re: Run the Report in oracle froms 10g error [message #464562 is a reply to message #464559] Thu, 08 July 2010 07:19 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Then presumably find_report_object isn't finding the report - check the name and that it's in the right location.
Can you run other reports?
Re: Run the Report in oracle froms 10g error [message #465077 is a reply to message #464562] Mon, 12 July 2010 08:30 Go to previous messageGo to next message
kvkpraveen
Messages: 20
Registered: June 2010
Location: Bangalore
Junior Member
Hi

I checked everything but i am getting the same error. Please suggest me how to do.
Cheers!
Praveen.K
Re: Run the Report in oracle froms 10g error [message #465079 is a reply to message #464562] Mon, 12 July 2010 08:56 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
cookiemonster wrote on Thu, 08 July 2010 13:19

Can you run other reports?

Re: Run the Report in oracle froms 10g error [message #465446 is a reply to message #465079] Wed, 14 July 2010 03:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Lose the loop and use 'web.show_document'.

David
Re: Run the Report in oracle froms 10g error [message #465829 is a reply to message #465446] Thu, 15 July 2010 12:44 Go to previous messageGo to next message
kvkpraveen
Messages: 20
Registered: June 2010
Location: Bangalore
Junior Member
Hi

How to use Web.show Document pls any example or could you provide any sample code to run the report in oracle forms10g and I need to change anything in Registry...


Cheers!
Praveen.k
Re: Run the Report in oracle froms 10g error [message #465965 is a reply to message #465829] Fri, 16 July 2010 02:42 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Search this forum for 'web.show_document'. For some of my original threads look at the really old ones.

David
Previous Topic: How to Open html in Form?
Next Topic: open an excel sheet from PL/SQL program
Goto Forum:
  


Current Time: Fri Sep 20 06:27:35 CDT 2024