Call Oracle Reports from Forms ver 9i or 10g
Hi,
Can somebody guide me, how to call Oracle Reports from the Oracle form 9i,
Run_product is no more available into 9i & 10g, Run_report_object is not working with out put type "Screen" or "preview".
What is the best way to call the reports from the form ??? pls help...
Thanks in avdance.
Jitesh ([email protected])
You can use RUN_REPORT_OBJECT with CACHE type, and WEB.SHOW_DOCUMENT to view the document on the screen.
In the Forms help you should find examples.
If you have access to Metalink, have a look at Note:207396.1.
Similar Messages
-
How to call a report from form in developer suite 10g
i want to call report from a form that is developed in Builder 10g. Reprot is also built in Reports Builder 10g. I now want to run report through form.Please give me any solution.
I am finding that this document is unhelpful also with respect to running a form which calls the report in the testing environment of Oracle Developer Suite. I have Googled for forms integration with reporting and most refer to this document, but it does not help.
I have download and used the "run_report_object_doc" procedure they provided, along with a supporting function. And used that.
This document indicates that if the sever is not specified then it will use the in-process server. This does not happen. When I do not specify the server I get the notorious "FRM-41211: Integration error: SSL failure running another product." I suspected that the in-process server is not getting called.
When I look through the rwservlet.properties file I find that the servlet is configured with in=process "yes". I have since changed this file so that a server is actually named. I called it "local".
This time a local.conf file is created, not a rep_local.conf file as indicated in the documentation. Anyhow when I try the form again I get the same FRM-41211 message.
Alternatively, I have change the report invocation parameters to supply a server name "local". This time I no longer get the FRM-41211 message. I get the error FRM-41214: Unable to run report.
When I use the servlet to get information, I get (can anyone see any setting that is a problem?):
http://localhost:8889/reports/rwservlet/showenv?server=local
OracleAS Reports Services - Servlet Environment Variables Return to Top
KeyMapFile C:\DevSuiteHome_1\reports\conf\cgicmd.dat
DBAUTH C:\DevSuiteHome_1\reports\templates\rwdbauth.htm
SYSAUTH C:\DevSuiteHome_1\reports\templates\rwsysauth.htm
server local
DIAGNOSTIC yes
traceopts undefined
ERRORTEMPLATE C:\DevSuiteHome_1\reports\templates\rwerror.htm
SERVER_IN_PROCESS yes
COOKIEEXPIRE 30
ENCRYPTIONKEY reports9i
DIAGHEADTAGS undefined
DIAGBODYTAGS undefined
HELPURL undefined
RELOAD_KEYMAP NO
IMAGEURL http://localhost:8889/reports/rwservlet
SINGLESIGNON yes
OracleAS Reports Services - Server and Engine Environment Variables Return to Top
PATH C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\CAisd\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\ZipGenius 6\;c:\Program Files\CA\SharedComponents\ScanEngine;C:\PROGRA~1\CA\ETRUST~2;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\PROGRA~1\CA\SHARED~1\CAM\bin;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft Office\Office10;C:\Program Files\CA\DSM\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\DevSuiteHome_1\jdk\jre\bin
DISPLAY
LD_LIBRARY_PATH
ORACLE_HOME C:\DevSuiteHome_1
TNS_ADMIN
NLS_LANG AMERICAN_AMERICA.WE8MSWIN1252
USER_NLS_LANG
RW C:\DevSuiteHome_1\reports
REPORTS_PATH C:\DevSuiteHome_1\repadm61\srw;C:\DevSuiteHome_1\cgenr61\admin\crretc;C:\DevSuiteHome_1\cgenr61\admin;C:\DevSuiteHome_1\reports\templates;C:\DevSuiteHome_1\reports\samples\demo;C:\DevSuiteHome_1\reports\integ;C:\DevSuiteHome_1\reports\printers;
REPORTS_TMP C:\Temp
REPORTS_TAGLIB_URI /WEB-INF/lib/reports_tld.jar
java.class.path C:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;C:\DevSuiteHome_1\reports\jlib\rwrun.jar;C:\DevSuiteHome_1\jlib\zrclient.jar
sourceDir
tempDir
useDataCache
ignoreDataParameter -
Call oracle reports from MENU in oracle ebs
is it possible in oracle ERP EBS R12
how to call oracle reports from menu [any screen] in oracle ebs erp r12??
please helpyou may do a few things from menus and by adding buttons, but this is not really standard.
You may add button on the form or web page that after a certain action or event. You'll have to do personalization / extension and everything is present in oracle for normal report submission.
Why this is not done thru normal submission ? -
How to call oracle reports from ADF application.
Hi
I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
Dario -
Hi,
I want to call a report from Form 6i at run time. And I write the following code in When Buttton Press trigger . when I press the button it will gives no response.
declare
x report_object;
y varchar2(100);
begin
x:=find_report_object('billform');
y:=run_report_object(x);
end;
for more information , path of my report is: C:\REP\billform.rdf
please send me the solution of this problem
E_mail: [email protected]
Shahzadhi,
now i am using the following code in when button press trigger. if u give me ur e_mail address i will send u FMB and RDF files used for Scott/tiger EMP table for the sample.
declare
repo_Para ParamList;
BEGIN
repo_Para:=Get_Parameter_List('Report_para');
IF not Id_null(repo_Para) THEN
destroy_parameter_list(repo_para);
end if;
repo_Para:=Create_Parameter_List('Report_para');
Add_Parameter(Repo_para,'PARAMFORM',TEXT_PARAMETER,'No');
Add_Parameter(Repo_para,'MAXIMIZE',TEXT_PARAMETER,'Yes');
Add_Parameter(Repo_para,'BDATE',TEXT_PARAMETER,:BLOCK3.a_dptno);
Add_Parameter(Repo_para,'EDATE',TEXT_PARAMETER,:BLOCK3.b_dptno);
RUN_PRODUCT(REPORTS,'c:\apu\DDATE.rep', SYNCHRONOUS,
runtime, FILESYSTEM,Repo_para,NULL);
end;
BDATE & EDATE are two user parameters created in report.
when i press the button in form pass parameters the report will be called but no data will be display but when i directly run reprot from report buider and pass same values of BDATE & EDATE it will show data.
please give me ur e mail address or help me for this problem
best regards,
shahzad -
CALLING A REPORT FROM FORMS (PROBLEM)
MY PROBLEM IS THE NEXT:
I CREATED A MASTER-DETAIL REPORT CALLING 'ASUNTOS'WITH THE NEXT QUERY:
SELECT ABOGADOS.APELLIDO_P,ABOGADOS.APELLIDO_M,ABOGADOS.NOMBRES,
ASUNTOS.EXP_INT,ASUNTOS.MATERIA,ASUNTOS.GERENCIA,
ASUNTOS.EMPRESA,ASUNTOS.RECLAMA,ASUNTOS.PESOS,
ASUNTOS.DOLARES
FROM ABOGADOS,ASUNTOS
WHERE ABOGADOS.FICHA = ASUNTOS.F_ABOG
AND ASUNTOS.F_ABOG = :ABOGADO ;
-- ABOGADO = PARAMETER.
THIS REPORT WORKS FINE THE PROBLEM IS WHEN I TRY CALL THIS REPORT FROM FORM I'VE USE A BUTTON(WHEN_BUTTON_PRESSED) WITH THE NEXT CODE:
DECLARE
LISTA PARAMLIST := GET_PARAMETER_LIST('ABOG');
BEGIN
IF ID_NULL(LISTA) THEN
LISTA := CREATE_PARAMETER_LIST('ABOG');
ADD_PARAMETER(LISTA,'DESTYPE',TEXT_PARAMETER,'PRINTER');
ADD_PARAMETER(LISTA,'DESNAME',TEXT_PARAMETER,'LPT2');
ADD_PARAMETER(LISTA,'ABOGADO',TEXT_PARAMETER,TO_CHAR(:ASUNTOS.F_ABOG));
-- ADD_PARAMETER(LISTA,'PARAMFORM',TEXT_PARAMETER,'YES');
END IF;
RUN_PRODUCT(REPORTS,'ASUNTOS',SYNCHRONOUS,RUNTIME,FILESYSTEM,LISTA,NULL);
END;
BUT THE REPORT NOTHING DISPLAY.
THERE ARE SOMETHING WRONG WITH THE CODE IN THE BUTTONRoberto,
Does your report work when it is not called from Forms?
try the following:
[TOOLS_HOME]\BIN\RWRUN60 module=ASUNTOS destype=screen userid=<username>/<password>@<tns> ABOGADO=<some_valid_code>
where TOOLS_HOME is the directory where Reports is installed.
I can see nothing wrong with your code.
Maybe some error in the query?
Also, I would check for the existence of multiple ASUNTOS report definitions. Maybe Forms is calling an older one.
Hope this helps,
Pedro das Neves
([email protected]) -
Calling a report from forms with a paramter form
Hello,
How do you call a report from forms and get it to display the parameter form. Where you can then call the report using this parameter form. I have been using paramform=yes. but it simply runs the form.
I saw on a a thread ages ago that this was a sample of this available for download. Is this true?
thanksHere is my code sorry about posting twice. Please note that the parameter list has been created as described.
report_id := find_report_object('MENU_REPORT_NODE');
Tool_Env.Getvar('ReportsServer', reports_server);
Tool_Env.Getvar('ReportsFolder', reports_folder);
dest_file := reports_folder || :global.username || '\' || rep_name || '.pdf';
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_FILENAME, rep_name);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, reports_server);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS); -- wait for the report to finish
-- SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESNAME, dest_file);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_OTHER, 'paramform=yes' || ' ' || 'mode=bitmap');
report_job := run_report_object(report_id); -
Regarding tutorial of how to call Oracle Reports from APEX
Hi,
I'm trying to call Oracle Reports from APEX using this tutorial.
http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
How can I create the workspace based on OE schema?Hello Shohei,
I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
Or reference the same url from a button placed on the HTML region
(you can create a package that would create the whole URL and returns it as a string, easier for scalability)
Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
Erwin -
How to call Oracle Reports from APEX
Dear All,
I am new to APEX. My first job assignment is "calling oracle reports from apex".
Can any one help me on this? Is there any online examples / tutorials from OTN site?
TIA.Hi Joe,
the how-to is still valid for APEX 3.0. Calling an Oracle Report from APEX is still the same, it's basically the URL you build for the report call and Oracle Reports hasn't changed that format.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
Calling a Report from Form in 10g
Hi all,
I am very new to Oracle Form builder, I wana to call a report from a Form.
we are using Oracle 10g Developer suit.
Can any body please help me regarding on this?
Regards
Tanmaya Pradhan(Tam)..or
Take a look at
Re: Run Report10g Through form 10g -
How to Check the report is Finished while calling a report from Forms 6i
Dear All,
I am Calling a report from oracle forms 6i, after runing report in " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"
I need to copy the pdf to store it in another place once the report is generated.
My Problem is : that i want ot Check first the report has generated after " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);" is executed ? How to check the report is generated ot not?
As i tried to use the below procedure after "Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"" but his does not work... nothing happens
{code}
PROCEDURE FPC_COPY_REPORT (p_report_name varchar2) IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
lv_id varchar2(1000);
BEGIN
repid := find_report_object('AMTP_995.RDF');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
else
message('Error when running report.'); message('Error when running report.');
end if;
END;
{code}
Any Helpactually My code is this:
declare
ln_alert number;
pl_id ParamList;
lv_report_name varchar2(10000);
lv_path varchar2 (100) := 'C:\';
lv_shared_path varchar2(1000);
lv_copy_file varchar2(10000);
cursor cr_dir_path IS
select v_dir_path
from md_directory
where v_dir_code ='SHR';
lv_file_name varchar2(1000);
BEGIN
open cr_dir_path;
fetch cr_dir_path into lv_shared_path;
close cr_dir_path;
lv_report_name := lv_path||:fn_cntl.nb_ref_no||'_M08600000_'||to_char(sysdate,'YYYYMMDD-HHmmss')||'.pdf';
if ffn_check_fields THEN
pl_id := Get_Parameter_List('LAI');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('LAI');
if :fn_cntl.nb_report_name ='MMAT_REPORT'
then
if :fn_cntl.nb_report_desc ='EXPORT'
then
Add_Parameter(pl_id, 'PARAMFORM',TEXT_PARAMETER, 'NO');
Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER,'File');
Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, lv_report_name);
Add_Parameter(pl_id, 'DESFORMAT',TEXT_PARAMETER,'PDF');
Add_Parameter(pl_id, 'p_mat_no',TEXT_PARAMETER, :fn_cntl.nb_mat_no);
Add_Parameter(pl_id, 'p_ref_no', TEXT_PARAMETER, :fn_cntl.nb_ref_no);
Add_Parameter(pl_id, 'p_verified_by',TEXT_PARAMETER, user);
Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);
DECLARE
repid REPORT_OBJECT; v_rep VARCHAR2(100); rep_status varchar2(20);BEGIN
/* REP_OBJ= REPORT OBJECT CREATED UNDER REPORT NODE AT FORM */
repid := find_report_object('MMAT_REPORT'); v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed'); message('Report Completed');
--copy_report_object_output(v_rep,'c:\local.pdf');
-- host('netscape c:\tlocal.pdf');
else message('Error when running report.');
message('Error when running report.');
end if;
END;
end if;
end if;
if :fn_cntl.nb_report_desc ='EXPORT'
then
error_handler('This report will be Storde in ' ||lv_report_name||' and '||lv_shared_path|| ' Location',3);
lv_copy_file :='copy '||' "'||lv_report_name||'" "'||lv_shared_path||'"';
host(lv_copy_file,no_screen);
error_handler('Report Has been Generated Sucessfully.',3);
end if;
end if;
END;I will try first the another solution you have replied perviously... and will let you no the results... thanks a lot... -
Problem in running oracle report from form 10g Version 10.1.2.0.2
Hi All,
I am facing problem while running the report from forms 10g getting FRM-41219
For this i am using the following procedure :
PROCEDURE RUN_REPORT IS
L_RUN_TEXT VARCHAR2 (2000);
L_USRID VARCHAR2 (100);
L_PASSWD VARCHAR2 (100);
L_DESNAME VARCHAR2 (100);
FILE_OUT_PUT VARCHAR2(200);
REP_STATUS VARCHAR2(20);
REP_NAME VARCHAR2(50);
PL_ID PARAMLIST;
REP_URL VARCHAR2(2000);
V_REP VARCHAR2(200);
BEGIN
display_me('RUN_REPORT');
-- CALL THE FOLLOWING FUNCTION, IN WHICH USER CAN WRITE HIS OWN CODE.
-- THE PROCEDURE CAN BE MADE LOCAL TO THE SPECIFIC FORM AND WRITE THE CODE.
-- IT SHOULD RETURN 'Y', IF YOU WANT TO PROCEED WITH THIS RUN_REPORT
-- PROCEDURE.
IF NVL (RUN_REPORT1, 'Y') = 'N' THEN
RETURN;
END IF;
COMMIT_FORM;
IF (GET_APPLICATION_PROPERTY (OPERATING_SYSTEM)) = 'UNIX' THEN
L_DESNAME := 'LP';
ELSE
L_DESNAME := NAME_IN ('REPORT_TITLE.F_FILE_NAME');
display_me(L_DESNAME);
END IF ;
/* SETTING THE REPORT OBJECT PROPERTIES */
/* G_PRAM1 IS THE NAME OF REPORT ****/
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_SERVER,'172.18.76.34');
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_FILENAME,:GLOBAL.G_PARAM1||'.REP');
display_me(':GLOBAL.G_PARAM1 '||:GLOBAL.G_PARAM1);
PL_ID := GET_PARAMETER_LIST ('REP_PARA');
IF NOT ID_NULL (PL_ID) THEN
DESTROY_PARAMETER_LIST ('REP_PARA');
END IF;
PL_ID := CREATE_PARAMETER_LIST('REP_PARA');
ADD_PARAMETER (PL_ID, 'DESTYPE' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.RAG_DESTINATION') );
ADD_PARAMETER (PL_ID, 'DESNAME' , TEXT_PARAMETER, L_DESNAME);
ADD_PARAMETER (PL_ID, 'COPIES' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.F_NO_COPY') );
ADD_PARAMETER (PL_ID, 'ORIENTATION', TEXT_PARAMETER, 'LANDSCAPE');
ADD_PARAMETER (PL_ID, 'MODE' , TEXT_PARAMETER, 'BITMAP');
ADD_PARAMETER (PL_ID, 'PARAMFORM' , TEXT_PARAMETER, 'NO');
ADD_PARAMETER (PL_ID, 'PARAM' , TEXT_PARAMETER, NAME_IN ('IBP_REPORT_PARAMETER.F_REP_SEQ') );
ADD_PARAMETER (PL_ID, 'P_COMP_CODE' ,TEXT_PARAMETER,:GLOBAL.G_COMP_CODE);
display_me(':GLOBAL.G_COMP_CODE '||:GLOBAL.G_COMP_CODE);
REP_NAME := :GLOBAL.G_PARAM1||'.REP';
display_me('REP_NAME'||REP_NAME);
V_REP := RUN_REPORT_OBJECT('REPOBJ');
display_me('V_REP '||V_REP);
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
display_me('REP_STATUS'||REP_STATUS);
WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
END LOOP;
IF REP_STATUS = 'FINISHED' THEN
REP_URL:='/REPORTS/RWSERVLET/GETJOBID'||SUBSTR(V_REP,INSTR(V_REP,'_',-1)+1)||'?'||'SERVER=172.18.76.34';
display_me('REP_URL '||REP_URL);
WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
ELSE
MESSAGE('ERROR WHEN RUNNING REPORT');
END IF;
END;
Which is called on a button , can any body share there idea to help out
Warm Regards
AshutoshYes, I have replace the userid with scott/tiger@orcl with i6menu/i6menu@vbs and also replace the OAS server's name as you have suggested.
declare
REP_URL varchar2(2000);
begin
REP_URL:= '/reports/rwservlet?userid=i6menu/i6menu@vbs&report=testrep_10g.rdf&desformat=pdf&destype=cache¶mform=no';
WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
end;
I had the 2nd code also but both r not working on my machine ......... !!
I have made the following setting on my machine:
1. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->FORMS_PATH ->
Values is : D:\vision_soft\VSS\exe
2. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->REPORTS_PATH ->
Values is : D:\vision_soft\VSS\exe
3. Entry made in the DevSuiteHome_1\forms\server ->default.env
FORMS_PATH=D:\vision_soft\VSS\exe
4. Entry made in the DevSuiteHome_1\reports\confr ->rwservlet.properties
#SERVER= rep10
As my forms is working well & but the report are not able to call.
Could you please let me know is there is any other mandatory setting required for the report 10g.
Regards,
Ashutosh -
Simplest Way 2 Call a report from Forms 10g
Hello,
i am using Oracle 10g & tools 10g too,
What i am trying to do is to call a report from a form...
So one friend told me 2 use a library exists in Folder Forms90 called " rp2rro"on the installed developer10g tools,i am using the following code :
============================================
Begin
PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
IF NOT ID_NULL(PARAM_ID) THEN
DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
END IF;
PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
ADD_PARAMETER(PARAM_ID,'P_DATA_TYPE',TEXT_PARAMETER,:PERIOD_MONTH);
ADD_PARAMETER(PARAM_ID,'P_MATERIAL_CODE',TEXT_PARAMETER,:MATERIAL_DESC);
ADD_PARAMETER(PARAM_ID,'P_DATE_FROM',TEXT_PARAMETER,:DATE_FROM);
ADD_PARAMETER(PARAM_ID,'P_DATE_TO',TEXT_PARAMETER,:DATE_TO);
ADD_PARAMETER(PARAM_ID,'MONTH_ID',TEXT_PARAMETER,:MONTH_ID);
ADD_PARAMETER(PARAM_ID,'FIN_YEAR_CODE',TEXT_PARAMETER,:FIN_YEAR_CODE);
rp2rro.rp2rro_run_product(REPORTS,'Report_name',SYNCHRONOUS, RUNTIME, FILESYSTEM, PARAM_ID, NULL);
END;
The problem is that i am receiving many errors as:
frm-41219:Can't find report invalid id
frm-47023:No such parameter named rp2rroDesformat exist in form my_form_name
frm-40105:Unable 2 resolve reference to item parameter.rp2rrodesformat
can any kind guy help me pls it's urgent i have no time 2 even read a document 4 it pls help me..!!??
Regards,
Abdetu..Hi Abdetu,
Here is a procedure and simple call of the procedure witch Iam using successfully now.
PROCEDURE INVOKE_REPORT
url_and_server in VARCHAR2,
file_name in VARCHAR2,
des_type in NUMBER,
des_name in VARCHAR2,
des_format in VARCHAR2,
param_list in PARAMLIST
IS
l_report_id REPORT_OBJECT := FIND_REPORT_OBJECT('QMSREP');
l_report_job_id VARCHAR2(100);
l_userid VARCHAR2(200) := GET_APPLICATION_PROPERTY(USERNAME) || '/' ||
GET_APPLICATION_PROPERTY(PASSWORD) || '@' ||
GET_APPLICATION_PROPERTY(CONNECT_STRING);
l_report_url VARCHAR2(200) := substr(url_and_server, 0, instr(url_and_server, ',') - 1);
l_report_server VARCHAR2(100) := substr(url_and_server, instr(url_and_server, ',') + 1);
l_vcStatus VARCHAR2(100);
l_vcJob VARCHAR2(100);
BEGIN
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_COMM_MODE, ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_SERVER, l_report_server);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_FILENAME, lower(file_name));
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESTYPE, des_type);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESNAME, des_name);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESFORMAT, des_format);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_OTHER, 'paramform=no userid='||l_userid);
-- invoke the report (currently we don't use the returned ID)
l_report_job_id := RUN_REPORT_OBJECT(l_report_id, param_list);
l_vcstatus := Report_Object_Status(l_report_job_id);
l_vcJob := substr(l_report_job_id, instr(l_report_job_id ,'_', 1 , 3 ) + 1);
WHILE l_vcstatus in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
l_vcstatus := Report_Object_Status(l_report_job_id);
END LOOP ;
if l_vcStatus = 'FINISHED' then
Web.Show_Document('http://'||l_report_url||'/reports/rwservlet/getjobid'||l_vcJob||'?server='||l_report_server,'_blank');
else
message('Failed - Status was :'||l_vcStatus);
end if;
END;
INVOKE_REPORT ('172.198.1.1:7777,rep_SRV'
,'MYREP.RDF'
,cache
,'htmlcss'
,l_par_list_id
hope this helps,
Alireza -
Calling oracle reports from java applications
Hi:
I was wondering if anyone can tell me how to invoke an oracle report from a java application.yes it is possible. There is a cgi script called viewreport.cgi. Have the jsp page call it (GET or POST method) and place the user parameters inside the form.
-
Hello
i have a problem with calling a report from a form.
i use the following statement in the when-button-pressed trigger:
Run_Product(REPORTS, report.rdf',ASYNCHRONOUS, RUNTIME,FILESYSTEM, '', null);
in the reports background engine i get the error
REP-0110: Unable to open file 'report.rdf'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file 'report.rdf'.
End report report [Mon Nov 25 12:30:40 2002].
the file report.rdf is in the same folder as the form calling it
where is the problem
thanks
MarjanHi Marjan,
The problem seems to be that the report is not in a directory
listed in the reports60_path. Add the directory into your reports60_path
and check if it solves the problem.
Best Regards
Chandra Mohan
Maybe you are looking for
-
My iphone 4S will not find my printer for printing from my iphone why can anyone help please
My I phone 4s is switched on to e print but cannot find tany air printers on any Apple devices that I have
-
DI Server with SQL Server 2008
Hello. In the company where I work we develop an application that uses B1WS. In the development environment had the following characteristics: SAP Business One 2007 SP01, PL 09 SQL Server 2005 Developer Edition Windows XP Professional SP 3 SAP Busine
-
Difference between execution mode of Print preview and Print for Output
Hello, Can anybody tell the difference between execution mode of print preview and print for an output (For eg. PO output or Invoice)?. I am trying to download some documents linked to Purchase order to desktop. The code is written in the same driver
-
Dear Adobe, i'm getting furious when i'm bombarded with new options and messages that i should hurry uprading to CC when the CS 6 release is still buggy. Illustrator CS 6 is nearly inusable. When i double click on a vector smart object Layer Icon in
-
Wifi question for Iphone 4.
When I am home, I am connected to my house wifi. When I am not at home, how can I get wifi when im not at home?!