Plz help in calling reports from Form in browser
Hi!
I am using 9iAS(1.0.2.2.1) + 8.1.7 database on the same machine with Win NT4.When i invoke report from my system's main form(oracle form6i) using parameter list as Run_Product(reports,'..\iReports\glrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null); against a when-button-pressed trigger error raised
"Error:0110 Unable to open the report '..\iReports\glrxx13.rep"
"Error:...Error while opening or saving a ducument '..\iReports\glrxx13.rep".
My Reports are in folder "iReports" which i put in the 9iAS's report60 folder & also in the report60 folder too. I dont know more about virtual dirves mapping & environment variables setting i.e what & where these should be put.
Kindly help!
Many thanks
Hi
It is probable that you should configure the route of your reports the the file 6iserver located in
<ORACLE HOME>\806\CONF.
Example: 6iServer
SetEnvIf Request_URI "rwcgi60" ORACLE_HOME=D:\ORACLE\806
SetEnvIf Request_URI "rwcgi60" RW60=E:\reports\
Similar Messages
-
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
Hi All,
We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
But when we try to run reports from Forms 10g it throws error which is given below.
We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
URL
http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
ERROR
REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
I will really appreciate your help.
Thanks
SandyHello,
You are mixing 2 separators in the URL : & and +
Use only one separator in the URL :
Example :
http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
Regards -
Calling Report From Form To Many Destinations
Hi
I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?what about adding a drop-down-list near your report-button where you can choose the destination?
when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too. -
Call report from form 10g (10.1.2.0.2)
hi
i using win 2003 and db 10g and dev10g ( 10.1.2.0.2)
and i want to call report from my form as following code :
DECLARE
dir varchar2(200);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
dir:=co$win.get_current_directory ;
repid := find_report_object('CGNV$OFG_REPORT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,dir||'\rep.jsp');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,runtime);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rws');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
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;
IF rep_status = 'FINISHED' --or rep_status is null
THEN
WEB.SHOW_DOCUMENT('http://hamid:8889/reports/rwservlet/getjobid'||
substr(v_rep, instr(v_rep,'_',-1)+1)||'?server=rws','_blank');
ELSE
message(ER_RP);
END IF;
END;
but i get error :
frm-41213: unable to connect to the report server rws
plz help mehi
i using win 2003 and db 10g and dev10g ( 10.1.2.0.2)
and i want to call report from my form as following code :
DECLARE
dir varchar2(200);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
dir:=co$win.get_current_directory ;
repid := find_report_object('CGNV$OFG_REPORT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,dir||'\rep.jsp');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,runtime);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rws');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
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;
IF rep_status = 'FINISHED' --or rep_status is null
THEN
WEB.SHOW_DOCUMENT('http://hamid:8889/reports/rwservlet/getjobid'||
substr(v_rep, instr(v_rep,'_',-1)+1)||'?server=rws','_blank');
ELSE
message(ER_RP);
END IF;
END;
but i get error :
frm-41213: unable to connect to the report server rws
plz help me -
Calling report from form. Need PDF output
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
ThanksThanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
win_api_environment.read_registry must be declared. Is there some package I need to attach?
Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
Thanks
The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
IS
vcServerApp varchar2(40);
vcServerTag varchar2(600);
vcCommand varchar2(2000);
iArgPos pls_integer;
dummy NUMBER;
BEGIN
-- 1 get the Server App for .PDF files
vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
-- 2 get the executable
vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
vcServerApp||'\SHELL\OPEN\COMMAND';
vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
-- 3 Sort out how to specify the Filename
iArgPos:= instr(vcCommand,'%1');
if iArgPos = 0 then --no substitution Var on the command line
vcCommand := vcCommand||' '||vFile;
else
vcCommand := substr(vcCommand,1,(iArgPos-1))||
vFile||substr(vcCommand,(iArgPos+2));
end if;
-- 4 Run using Winexec (or Host if preferred).
win_api_shell.winexec(vcCommand);
EXCEPTION
when no_data_found then
abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
END;
Chad
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
Thanks -
FRM-41219 - Cannot able to call reports from form generated in Designer
Hi
I'm trying to call a report from form whit a button generated in Designer 10.1.2.0.2
But I'm getting error : FRM-41219 Invalid report id
I'm tying with a menu but I'm getting the same error.
Please help meNote 1056653.6
FRM-41219 Cannot Find Report: Invalid ID
Problem Description:
You are getting error: FRM-41219 Cannot Find Report: Invalid ID
Problem Explanation:
The code is using find_report_object and passing a report name to the function.
The statements are as follows:
DECLARE
repid REPORT_OBJECT;
BEGIN
repid := FIND_REPORT_OBJECT('report1');
END;
Solution Explanation:
The error message frm-41219 is a new error code which corresponds to the
Oracle Developer forms/report integration.
This message essentially means that the report cannot be found. Specifying the
correct name of a report object found in the forms object navigator (not the
actual name of the rdf file) usually resolves the problem. -
Getting rep-3002 when calling report from form on web
i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.
Hello,
If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
Regards,
The Oracle Reports Team --skw -
Calling report from forms :- need to disable file menu in report previewer
Hi all,
I am using report 6i and forms 6i
I am invoking report from forms
if report_status='N' then I want to disable the file menu in report previewer
Is it possible to disable and enable file menu in report previewer
Please help
Thanks
:8}i got way
-
Calling report from form in Web environment
Hi,
We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
a) Is there any other way to call report from a form other than web.show_document?
b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
Any reply would be appreciated..Thanks1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
Darshan Desai
[email protected]
null -
Parameter form display while calling reports from form
Dear All,
I am running reports from form using run_report_object. I do not want to see parameter form while running the report. How do I do that.
Thanks in Advance
Gaurav ShahHi, try to set paramform=NO in your parameter list
Daniel -
here is the scenario
i connect to a oracle 9i server from home. i use winxp and 9i Developer to create database applications. when i need to run forms i have to start an OCJ4 Instance, i have a problem though....
i need to run a report from a form and have tried the following methods:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('rptRequest');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
v_rep := RUN_REPORT_OBJECT(repid);*/
END;
this results in REP-0503 "You did not specify the name of a report"
i have also tried:
WEB.SHOW_DOCUMENT('http://localhost:8888/reports/server=repSRV&report=rptRequest.rdf&desformat=pdf&userid=user/pass@ORASERV¶mform=no');
but this display page cannot be found.
Where is the report server i should be pointing to?
thanks for your helpMichael,
the default Reports Services is started by a request to the Reports Servlet "rwservlet". To run Reports from Forms I suggest to install the Reports Services as a separate process that can be controlled by a Windows Service
iDS Home\bin rwserver -install <Reports Services name you want to use>
This creates a Windows Service for you that starts/stope the Reports Server. In Forms you use set_report_object_property() built-in to set the Repors services name to teh one specifie when installing the Reports Services process. Alternatively you can set the name in teh Report node property palette.
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
This is not a valid option when running a report on Reports Services. Try destype CACHE and set the desformat to either HTML, HTMLCSS or PDF.
Read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf and 10 days no longer should be a problem.
Frank -
Plz help in calling of reports from Form in browser
Hi!
I am using 9iAS(1.0.2.2.1) + 8.1.7 database on the same machine with Win NT4.When i invoke report from my system's main form(oracle form6i) using parameter list as Run_Product(reports,'..\iReports\glrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null); against a when-button-pressed trigger error raised
"Error:0110 Unable to open the report '..\iReports\glrxx13.rep"
"Error:...Error while opening or saving a ducument '..\iReports\glrxx13.rep".
My Reports are in folder "iReports" which i put in the 9iAS's report60 folder & also in the report60 folder too. I dont know more about virtual dirves mapping & environment variables setting i.e what & where these should be put.
Kindly help!
Many thankshello,
their are only two ways of passing the report-name: only the name or the complete path (where path is the PHYSICAL path of the file).
the easiest way is, if you add all directories where you have RDFs in that you want to run, to the REPORTS60_PATH of your server environment. then you can simply use REPx.RDF and it will be run as long as it is somewhere along the reports path.
regards,
the oracle reports team -
Little help for calling report from a form
hi,
I AM NOT ABLE TO CALL THE REPORT WITH THE FOLLOWING CODE. PLEASE TELL ME WHERE I AM DOING WRONG! THANKS A LOT!!
It is Oracle 9i and Reports 6i.
-> I have a form with only one BUTTON.
-> I have a REPORT with only one USER PARAMETER 'P_1' which is a number.
-> I have only one query INSIDE the report. It is "SELECT * FROM EMP WHERE EMPNO = :P_1'
-> I added the report to form in the OBJECT NAVAVIGATOR of FORM and the NAME OF REPORT is 'REOPRT4'
here is the code on the form:
================================
When_button_pressed
DECLARE
vid report_object;
vname varchar2(100);
BEGIN
vid := find_report_object('Report4');
vname := run_report_object(vid);
END;
==================================
-> the FORM and REPORT are in "c:\helloworld" directory.
-> the error I am getting is 'internal pl/sql error'
-> I WANT THE USER TO ENTER THE RUNTIME PARAMETER FOR THE REPORT AT RUNTIME, so no need to worry about supplying the parameter through code!!!
Thank You very much. I appreciate your kind help!!I think that you have to add some code, see page 15 in this:
http://otn.oracle.com/products/forms/pdf/277282.pdf
Helena -
Calling Reports from Form on Web... Kindly help
Gurus!
I am using 9iAS(1.0.2.2.1) with 8.1.7 database on the same
machine with Win NT4.When i invoke report from the main from's
link using parameter list as
Run_Product
(reports,'..\iReports\glrxx13.rep',synchronous,RUNTIME,FILESYSTEM
,pl_id,null);
My Reports are in folder "iReports" which i put in the 9iAS's
report60 folder & also in the report60 folder but when called the
error raised:
"Error:0110 Unable to open the report '..\iReports\glrxx13.rep"
"Error:...Error while opening or saving a
ducument '..\iReports\glrxx13.rep".
I dont know more about virtual dirves & environment variables
setting i.e what & where these should be put.
Kindly help!
Many Many thanks!hi,
check out this link,
http://www.oracle.com/technology/products/forms/pdf/10g/frmwebshowdoc_rep.pdf
best luck,
Regard's,
Percy
Maybe you are looking for
-
Hello, first time posting a question! I have spent a good while trying to find an already posted answer to this, and looking on the wider web, hope i have not just missed it. I am using XP Pro SP3, LV 8.6. I am not very familiar with Windows command
-
How to create a pdf in Pages 5.5.2
I have Pages 5.5.2 and want to send out my documents in pdf. Seems simple: command P, and the 'Save as pdf, voila, pdf, SEND. But the recipients complain the documents are in an arcane format they cannot open. This is hurting my business. How do I cr
-
How to Make Sent and Deleted Messages Get Saved in the Folders of My Choice
On my iPhone, under Mailbox Behaviours, I can select specific mailboxes on the server where the Sent, Deleted and Draft messages will be saved. However, I could not find this feature in Mac OS 10.6.2's Mail application; instead, these mails are saved
-
Strange drop shadow on menu when build
i am importing a psd file into dvdsp for a menu. the text from the psd, only at the bottom of the menu, is creating a funny gray drop shadow when i build the project. it doesnt appear when i simulate the project and none of the other text in the psd
-
How to disable the parameter ??
hai.. my parameter is like this:- PARAMETERS: S_ORG LIKE S706-VKORG default '1234'. Now i want to disable this parameter such that the user should not change the default value. plz help me.