Error executing reports from forms
Hi,
Iam trying to launch reports9i from forms9i,
Iam getting following error,
500 Internal Server Error
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at oracle.reports.rwclient.ServletCmdMgr.getJobId(ServletCmdMgr.java:3131)
at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1255)
at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92)
at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:278)
at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:915)
at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1398)
at oracle.reports.rwclient.RWClient.doGet(RWClient.java:349)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Can anyone help me in this regard,
Thanks and regards,
Avinash,
Pune.
India.
"Iam trying to launch reports9i from forms9i"
your forms version is 10g :-)
Similar Messages
-
Error calling Report from Form
Hi,
I'd like to call a report using a Form.
I have Oracle Form 10.1.2 in Oracle Database 10g.
I create a button and specify a PL/SQL in the when-button-pressed
declare
rep_id REPORT_OBJECT;
v_rep VARCHAR2(100);
begin
rep_id := FIND_REPORT_OBJECT('report9');
if not id_null(rep_id) then
v_rep := RUN_REPORT_OBJECT(rep_id);
else
message('report not available');
end if;
end;
but after I click the button in the form, it gives an error message in the status bar
(in the bottom of the form)
error : FRM-41211: Integration Error: SSL failure running another product
Any help would be grateful.
Thanks,
BuntoroI have tried your suggestion.
I create my own report server using rwserver server=repsrv.
Another java-based windows showed up. It shows that repsrv is ready.
I do the following:
1. Navigate to http://localhost:8889/reports/rwservlet using web browser.
It showed OracleAS Report Services - Servlet Command Help page.
But there is no other window popup.
2. Navigate to http://localhost:8889/reports/rwservlet?userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html¶mform=no&p_1=P1&p_1=P2
my schema is PRACTICE, password PRACTICE, and database instance MYDB
the report path = C:\FORM\MODULE1.JSP
The following error occured
REP-51002: Bind to Reports Server rep_<computer_name> failed
3. Finally,
http://localhost:8889/reports/rwservlet?server=REPSRV&userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html¶mform=no&p_1=P1&p_1=P2
The following error occured
REP-51002: Bind to Reports Server repsrv failed
I don't understand.
It seems that the Report Service is not recognized although the java-based window state that the Report Server (repsrv) is ready.
My questions:
1. Does it means that my report server is not running?
Or it is running but the browser didn't recognize it?
I use Internet Explorer 6 and Netscape 7, both of them showed the same error message.
2. I have read the PDF you've pointed out.
The paper said there is supposed to be 2 type of server, 'In process' and custom server.
Both of them will create a configuration file in /reports/conf in DevSuiteHomeDirectory.
I can see the custom report server's configuration file which I create using rwserver (repsrv.conf)
but I can't see the 'in process' server's configuration file (rep_<computer_name>.conf).
What am I supposed to do?
Many thanks,
Buntoro -
REP - 300 Error while executing report from Application
Hi,
I have report in Report Builder & for the same report form is there in Form Builder in which parameter page is designed. From application where I am calling report is internally calling form & in form Procedure Run Report is there which is calling report from Report Builder. Both report from builder & form form Builder are compiled . Also query is executing fine in Toad without error. Also all query fields are present in database.
But when I am trying to excute report from Application it is giving error as "REP - 300 Invalid Identifier " & it displays whole query.
Note - Report & it's Form are in ORACLE - 10g. Also the user through which I am executing report from application is ADMIN user , so it has executing permission.looks like error in parameters. check out the value of variable that you are passing through to report from form. Put a messages to see variable values before execute report.
-
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 -
FRM-92101 error while running report from form
HI All,
I am getting the form error FRM-92101 while running report from form menu.My code is given below:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT47');
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' THEN
WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
--Arifhi Arif
Please see this note on MOS/Metalink for some common causes of this error:
Known Causes of FRM-92101 Error In Forms [ID 604633.1]
thanks,
AMN -
When run report from form(6i) on the web,error FRM-921000
While I was trying to run report from form (6i)on the web,it will give me this error
message FRM-921000 and hang.
But when I try to call form using form,I do
not have the problem.
May I know ehat is the cause?
Anybody encounter this before?
Thanks
nullI am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
Thanks,
Jenny N.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
Dear Jenny,
I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
1. Install Oracle Reports Server
2. For WEB calls of reports use WEB.SHOW_DOCUMENT
3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
I hope this will help you.
Joseph Schwertner
<HR></BLOCKQUOTE>
null -
I need help!!!Can anyone tell me...
1)how to start a report from Forms?
---The report is already attached to Object Navigator
---I made a WHEN_PRESSED_BUTTON
and the Trigger for this button like this.....
DECLARE
rep_id REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
rep_id := find_report_object('StatusReport');
SET_REPORT_OBJECT_PROPERTY(rep_id,report_desformat,'PDF');
SET_REPORT_OBJECT_PROPERTY(rep_id,report_execution_mode,runtime);
SET_REPORT_OBJECT_PROPERTY(rep_id,report_comm_mode,synchronous);
SET_REPORT_OBJECT_PROPERTY(rep_id,report_destype,screen);
v_rep := RUN_REPORT_OBJECT(rep_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED'
then message('Report executed');
else message('Error! The Report can not be executed');
end if;
END;
Wenn I push the button I get....
<<<<Cannot find report: invalid ID>>>>>>
2)How to make a list as result of a select(for example
the result of-> select s_v_insert_date from status_values)In this list I have to use WHEN-MOUSE-DOUBLECLICK for defining a bindvariable before the report starts?
3) How to start from forms an sql script?
4) Is there a Forms Documentation?
many thanks,nonaThis forum is meant for discussions about OTN content/site and services.
Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
Product forums:
http://forums.oracle.com/forums/index.jsp?cat=9
Technology forums:
http://forums.oracle.com/forums/index.jsp?cat=10 -
Running reports from forms on the web
On forms and reports 6i we used the following code to run reports from forms.
We need to do the same on 9i forms and reports, we are running into problems.
Any help will be appreciated.
PROCEDURE web (inFileName VARCHAR2,
inRecordGroup RECORDGROUP) IS
outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
outReport VARCHAR2(200) := 'report='||inFileName;
outUserid VARCHAR2(200) :=
'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
outCount INTEGER;
error we are getting.
FRM-42017:Module name must be specified.S Hatch (guest) wrote:
: I'm thinking that you're going to have to install the Reports
: cartridge, create an entry in the keymap with any parameters
and
: call your report via the url.
: Dessislava Gantcheva (guest) wrote:
: : How do I call a report from a form on the web?
: : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
EE
: : with patch 1, Developer 6.0 with patch 1. Developer server
and
: : forms server work fine in a non-cartridge implementation,
but
: I
: : cannot run a report within a form. I just have no any info
how
: : to do this.
I have entries in my keymap file and I can call my reports via
the url, but I cannot run a report WITHIN a form. I mean to call
a report by clicking on a button of a form on the web. The
RUN_PRODUCT built-in does not work (at leas it seems like this)
If any one has expiriense with it, please, give me a hint.
Thanks
null -
Hi,
i called report from form with following and gives the
error
REP-0100 Unable to open the file
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
repid := FIND_REPORT_OBJECT('DUMMY_REPORT');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
Thanks.Hi,
this tells you that the Reports Server cannot find the physicale reports file. Please see
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
Frank -
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]) -
Printing a report from Forms 9i
Hi all
I have to print a report from Forms 9i, but I can't do it directly, I have to execute it with desname = preview and then I can print it.
I use the following sintax
RUN_REPORT_OBJECT_PROC(repid, v_server_name,'pdf',printer,v_path,v_report,'paramform=no'|| other parameter....,v_servlet)
where v_path is the name of the printer and run_report_object is a procedure to execute reports into forms
I try to set v_path with the printer name on my client and on the server.. but it doesn't find it...
Please help me,
Thanks in advance
AntonioHi all
have any one some information about ORARPP (Oracle Reports Remote Printing) ???
I should print directly, my desname should be a printer.... could any one help me???
Thanks in advance for your support...
Antonio -
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 -
hi,
I am having problems in running report from form.
I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
Name REPORT7
FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
Execution Mode Batch
Communication Mode Synchronous
Destination Type Cache
Report Server 9irep
and in when_button_pressed trigger
DECLARE
Report_Id REPORT_OBJECT;
Report_Job_Id VARCHAR2(20);
Report_Status VARCHAR2(80);
Report_Svr VARCHAR2(20);
BEGIN
Report_Id := FIND_REPORT_OBJECT('REPORT7');
Report_Svr := '9irep';
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
END LOOP;
IF Report_Status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
else
message ('report server failed with error message '||report_status);
END IF;
END;
i have installed report server with following command
rwserver -install 9irep
i have changed entry in rwservlet.properties like
SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
<!--security id="rwSec" class="oracle.reports.server.RWSecurity">
<property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
</security-->
i get the following error message when i run my form
frm-41214 Unable to run report
and then next message is
frm-41217 unable to get report job status
i debugged the report id and it is
9irep_0
returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
When I checked the Report Queue Manager
it is showing status like
(9irep)Terminated with error
and detail it shows is
Unable to connect to the specified database.
Now I am wondering what to do next.
any suggestions???????Hello,
From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
Thanks,
The Oracle Reports Team. -
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 -
Running a parameter report from form bulder
Hello,i was able to finally run a report from forms 9i,however when this report is a parameter report it doesn't work and i get an error.
Please tell me what to do and don't tell me to read the frm9isrw9i file because i already did and i am completely lost on it."....and i get an error." I've got my crystal ball out at the moment but I just can't seem to see the error message ;O))
Seriously, it helps us a lot if you can post the full error message.
Thanks
Grant
Maybe you are looking for
-
DB13, Error while backup
Hello I am trying to schedule Whole offline backup through DB13 in Solution Manager 4. The backup kicks off at the schedule time but ends with error with in seconds. When i go and check the background job in SM37, the Job DBA:ALLOFFLINE______@174008/
-
Converting non-additive to additive
Hi, I have a fact table which is derived from source data grouped by CA ,GL, and fy_period. I want to convert one of the measure, says PO, in this fact table to be additive and put it into a new column. That is, record with the same CA and GL will ha
-
Email web service example as an Adaptive Web Service Model
Hi All, I am using email web service example as an Adaptive Web Service Model in my Web DynPro application (The WSDL of the application that I use is: http://www.abysal.com/soap/AbysalEmail.wsdl). While loading the WSDL file I am getting following e
-
Exporting to external hard drive
What's the best way to transfer photos from my laptop to an external hard drive for permanent storage using Lightroom? Phyllis Bertke
-
Hi all, for the bank interface, the concerned bank given all file formats how company upload files. for this client decided to use three types of payments i.e. check, draft, electronic transfer. for this i created payment methods accordingly. after t