Reports integrated in Forms.
I am using 10gAS
Report integrated in forms are not working
If i open the browser and give the below url, i get message "successfully run". The same in form is not working.
Browser URL- is working
'http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver'
Forms10g Code - not working
DECLARE
rep_url varchar2(3000);
BEGIN
rep_url:='http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver' ;
WEB.SHOW_DOCUMENT(rep_url,'_blank');
END;
What can be the problem ?.
This is just a guess, but it could be that the double backslash \\ is escaped somehow.
You should put your report in the directory that is indicated by the reports_path environment variable, and skip the path in the url.
I see after posting that the double backslash \\ is also escaped in this forum ;-)
Edited by: InoL on Dec 8, 2009 11:02 AM
Similar Messages
-
Report integration to forms in 10g IDS
Hi
My package was created using D2K 6.0 version. I donot have access to 6i. Converted the same in 9i first. The proceeded to 10g. While converting forms there were no problems. But reports is a different story. If i compile and run the rdf file in report builder, the paper layout works fine. But if i run the same from the forms it doesnt work.
Here are the settings...
* I have replaced run_product with run_report_object
* there reports are in the same folder as the forms. (I have created a sub folder under <oracle_home>/forms90 and forms works fine)
* the reports DONOT have web layouts, there are only paper layouts
* my report server is named rep_srv
* at first the message i got was "unable to run report"
* at this time the servlet was not showing any details
* I restarted the report server from command prompt using rwserver server=<name>
Since then the message changed.
* report server is up and running.
from the "http://localhost:80/reports/rwservlet/showenv?server=rep_srv" works fine and shows all variables.
* still i get the message: "unable to connect to the report server rep_srv" when i run a report from the form.
Now i am stumped.
Are there any settings that i have to change?
Do i have to change or mention paths for reports?Thanks.
I somehow sorted the issue... The thing is (or was) that the "SCREEN" option doesnt work in forms.
But now i got a new set of problems...
a]
If i select printer, the system sends the print to the default printer of the SERVER!!!.
1) How do i send the print to the user's client machine?
2) How do i allow the user to select the printer? Local or Network. Since D2KWUTIL is not there I cannot use SELECT_PRINTER. How do i give my client this option?
b]
The print to file option works fine...but again stores the file on the server. How do i get it to work for the client?
Thanks,
Hema -
Web Util & Report integration to gather.
Hello all
I have configured webutil and report integration in Developer suite 9i.
and it is working very fine.
now I am upgrading it to 10g.
I have configured web util and it is working fine.
and now I am getting problem to integration for "reports" as follows.
FRM-41213 Unable connect to the report server cyan.
I have developed one form for testing the report integration with form.
but when i am running this form with default configuration of formsweb.cfg then
it is working fine as follows.
http://chirag:8889/forms90/f90servlet?form=c:\temp\chirag&userid=cyan/cyan@cyan
when i am running this form using web util configuration then i am getting
the abouve error.
http://chirag:8889/forms90/f90servlet?config=cyan
but my application in Ds9i have used both webutil and report integration
so i have to find out the same thing in DS 10g.
Following are the code of report integration.
DECLARE
mreport_other varchar2(4000);
BEGIN
set_report_object_property('CYAN',REPORT_DESFORMAT,:CONTROL_BLK.REPORT_DESFORMAT);
mreport_other := 'p_report_title="'||:control_blk.report_title||'" ';
mreport_other := 'p_user_name="'||'CHIRAG'||'" '||mreport_other;
DECLARE
report_status varchar2(30);
rep_id REPORT_OBJECT;
v_rep varchar2(100);
mreport_file varchar2(200) := 'C:\CYAN'||:control_blk.report_path;
BEGIN
rep_id := FIND_REPORT_OBJECT('cyan');
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_SERVER,'cyan');
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_FILENAME,mreport_file);
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,mreport_other);
v_rep := RUN_REPORT_OBJECT(rep_id);
report_status := report_object_status(v_rep);
if Report_Status = 'FINISHED' then
WEB.SHOW_DOCUMENT('http://'||'chirag:8889'||'/reports/rwservlet/getjobid' || substr(v_rep, length('cyan') + 2, length(v_rep)) || '?server=' ||'cyan');
end if;
END;
END;
formsweb.cfg as follows
[cyan]
BaseHTML=c:\oracle\cyan\server\webutiljini.htm
BaseHTMLJinitiator= c:\oracle\cyan\server\webutiljini.htm
baseHTMLjpi=basejpi.htm
BaseHTMLie=baseie.htm
lookAndFeel=oracle
envFile=C:\oracle\cyan\server\webutil.env
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
separateFrame=True
pageTitle=Cyan Ltd
form=C:\cyan\admin\security\forms\cyan_logon.fmx
otherparams=cyan_home=c:\cyan
userid=cyan/cyan@cyan
width=800
height=566
buffer_records=NO
debug_messages=NO
array=YES
query_only=NO
quiet=NO
RENDER=YES
logo=webpage
webutil.env as follows
ORACLE_HOME=C:\oracle\OraDS10g
FORMS90_PATH=C:\cyan\admin\global\forms;C:\cyan\payroll\forms;C:\oracle\cyan\forms
CLASSPATH=c:\oracle\cyan\lib\webutil.jar;c:\oracle\OraDS10g\jlib\debugger.jar;
c:\oracle\OraDS10g\jlib\ewt3.jar;c:\oracle\OraDS10g\jlib\share.jar;
c:\oracle\OraDS10g\jlib\utj90.jar;c:\oracle\OraDS10g\jdk\jre\lib\rt.jar
WEBUTIL_CONFIG=c:\oracle\cyan\server\webutil.cfg
Please assist me to solve this problem
from
Chirag Patel
NairobiHi,
I remember that in 9i we had a problem that required both the Reports and the WebUtil java libraries to be in teh Forms classpath in the default.env. This however should have been fixed in Forms 10g.
For what it is worth, can you try
- In the registry variable "REPORTS_CLASSPATH", add the path of the jar file that will be used by webutil (webutil.jar basically)
- In the default.env file, add the Reports jar (see REPORTS_CLASSPATH for values)files to the classpath of Forms
Frank -
HELP! Form-Report integration problem!
Hi all, I have a problem in integrating report in dev10i. I used to use Dev6i and have no problem in using run_report_object in 6i. I have posted this in Report for few days but haven't got response.
I got the REP-0503 You did not specify the name of the report and FRM-40738 Argument 1 to builtin Report_Object_Status can not be null. The report run OK in report builder and I create the paper only layout. Also, I save the report as *.rdf and create a report object in form that point to this *.rdf file.
This is my PL/SQL code:
PROCEDURE P_PRINT_REPORT_OBJ(vc_reportoj Varchar2, vc_reportserver Varchar2, vc_runformat Varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
vjob_id VARCHAR2(100);
BEGIN
v_report_id := FIND_REPORT_OBJECT(vc_reportoj);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESFORMAT, vc_runformat);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_SERVER, vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, XXX='||:XXX.XXX||' paramform=no');
vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
ELSE
message('Report failed with error message '||vc_rep_status);
END IF;
END;
What gives? Do I miss something here? Do I have to set up other thing??? Also what is the name of report server in Dev10i? I am under impression that this is not needed so I put blank '' when I call this procedure in WHEN-BUTTON-PRESSED trigger like this:
P_PRINT_REPORT_OBJ('myreportobj','','HTML');Hi all, I created simple report from 1 table and save it as *.rdf. I then make a simple form consisting 1 block and a button that have WHEN-BUTTON-PRESSED trigger that call P_PRINT_REPORT_OBJ. I create a report object in the form that point to my *.rdf report file and name the object MYREPORT. This time it gives Rep-0110 Can not open file '%n~<intangible character>' and REP-1170 Error while opening or saving a document. After that other message popup with REP-0110. It seems that FIND_REPORT_OBJECT could not find the file at all/giving the wrong filename as argument. Do I have crooked installation? I have tried it on 2 diff machine running XP2. Is this because of Win XP2? I have admin privilage user account for winXP2. Please help, this is not making a sense at all. I have no problem in Dev6i.
PROCEDURE P_PRINT_REPORT_OBJ IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100);
BEGIN
v_report_id := FIND_REPORT_OBJECT('MYREPORT');
vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
END; -
Report 9i parameter form problem, is it a bug?
Hi all,
I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
The same problem occurs:
- in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
- if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
REP-52007: Parameter form format error.
java.lang.IllegalStateException: Response is already committed!
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
- ThanksHi Frank,
There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
- it is rather lengthy and confusing, may not be practical .
- it only applies to Forms and Reports 6i.
However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
<form method=post action="http://hostname:port/cgi/rwci60.exe?">
2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
<input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
Tho. -
How to Show BI report in adf form ?
How to show bi Report in adf form ?
(i dont show dashboard in adf formHi,
check this : http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
there are some other helpful links as well:
http://brendenanstey.blogspot.com/2007/01/adf-faces-and-xml-publisher-success.html
http://technology.amis.nl/blog/2296/building-a-report-in-xml-publisher
http://technology.amis.nl/blog/1597/xml-publisher-display-input-parameter-sqllims
~Abhijit -
How to print BIP reports from Oracle Forms?
Hi all,
I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
Any idea/suggestions how we can go about this?
Thanks in advance for your time.
YahyaYahya,
via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
Regards
Rainer -
FRM-41214: Unable ro run report while calling a report from a form in 9iDS
Am in the process of migrating from Developer 6i client/server to Developer 9iDS on Windows 2000.
I have read through the various postings on this issue & have made changes accordingly. I also referred to the white paper on the Forms/Reports integration.
As I am trying to do a prototype, am compiling my forms/reports on my local machine & not on the apps. server.
I installed a report server on my local machine as,
rwserver -install 9irep
I have defined this as a NT service and it is up & running & so is my OC4J instance.
I have defined a reports object in my Form Builder & set Report Server=9irep,
Destype=Cache,
Execution mode=runtime
Communication_mode=synchronous.
I also removed the /security tag from the <report server>.conf file as suggested in the white paper. Also set the single sign-on to NO for the reports service.
I have replaced my run_product with the run_report_object built-in as follows.
Declare
report_id REPORT_OBJECT;
report_status VARCHAR2(255);
rep_job_id VARCHAR2(255);
Begin
report_id := FIND_REPORT_OBJECT('KS'); --Created in form under node "Reports"
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,'C:\Kalpana\9i_Prototype\ISSMDLCUST.rdf');
rep_job_id := RUN_REPORT_OBJECT(report_id);
report_status := REPORT_OBJECT_STATUS(rep_job_id);
WHILE report_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
report_status := REPORT_OBJECT_STATUS(rep_job_id);
END LOOP;
message(report_status); pause;
IF report_status='FINISHED' THEN
Web.Show_Document('http://houwdisndgd01:8888/reports/server/getjobid='
||rep_job_id||'?server=ks');
END IF;
End;
I get an error message "FRM 41214: Unable to run report" right after the call to run_report_object.
Can someone please tell me where am going wrong with my run_report_object built-in? (I also need help writing my web.show document to point it to my local machine/folders).
Thanks
KalpanaHow I have implemented the same and works
Local OC4J is running.
I established a reports server "repserver90" as a service.
I created a report named "C:\TMP\TMP\test_report.rdf"
I created a form with a Reports object with properties:
Name: "EMP"
Filename: "C:\TMP\TMP\test_report.rdf"
Execution mode "Batch"
Communication mode "Sychronous"
Report Destination Type "Cache"
Report Destination Format "HTML"
Report Server "repserver90"
I call the report with the procedure:
PROCEDURE TEST_REPORT IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('EMP');
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,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
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
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://localhost:8888/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
END;
Minas -
How to call Reports in oracle forms 10g
Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
FaziludeenHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
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_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
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;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
Hi all,
Can anybody please enlighten me about the Report object in the object navigator of Forms 6i. Why that object is present and in what way we can use it effectively.
Thanks in advance
KrishnaThis object exisits so you can easly integrate oracle report's reports into your form and run them using the new run_report_object builtin.
You can learn more about oracle reports on otn.oracle.com/products/reports
and you can also read more on the reports and forms integration in that site. -
Run report 9i from form builder 9i
Dear all,
I build report from report builder 9i.
How to run this report in form builder 9i.
Best regards,
Jansen Hutagalung.Jansen,
I really like short questions, but yours missing the point. What do you mean by running Reports from Forms builder? Do you mean how to run it from a Forms application started from Forms builder? There is a Whitepaper in teh collateral section of otn.oracle.com/products/forms that immediately makes you an expert in Forms/Reports integration
Frank -
Calling a report from a form on web deployed forms application
OS: AIX: Developer 6i, patch 3
I have a form that calls a report. The report works fine on
client server. But on the web, using reports server, I get
"FRM-41214: Unable to run report".
Any help will be highly appreciated.
Please email me: [email protected]hello,
check out our product-area on OTN
http://otn.oracle.com/products/reports
there you find a whitepaper on integration between forms and
reports on the web.
regards,
the oracle reports team --pw -
Calling Reports 10g from Forms 10g without an app server
Hi
I have Forms 10g, and for development/testing purposes I am able to run a form in my local machine using the standalone OC4J. I needn't to deploy the form to test it.
I can do the same with Reports 10g -- run a report in my local machine without an app server.
However, I could not manage to call a Report from a Form that way, without an app server. It does not seem possible -- is it? Is there a way to set this up using the standalone OC4J or something like that?
Thanks
Luis
Message was edited by:
Luis CabralHi
Sorry for the late reply.
Here's how you start the report server from windows XP machine.
1. Choose a unique name for the report server. Eg. <your_pc_name>_repserver
2. As the report server runs in its own process, it can be started by the following command, accessible from the \ bin directory of the
Oracle Developer Suite or Oracle Application Server 10g installation.
rwserver –install <server_name> . It is now treated as a windows service and hence you can stop/start or restart from the services menu.
3. If you want specific settings for your report server, look for the <rep_server_name>.conf file under <orahome>/reports/conf directory, after starting the server from above command. This file is created by oracle automatically, once the rep server gets started.
For more info on this, please refer to white papers on the Forms and reports integration, found on the otn->Forms.
Hope this helps
Suma -
Hi Expert,
I want to call a report from a form.My problem scenario like, a user is login to his account and there is a option called ADMIT CARD(Push Button).Now when he pressed the button a report will generate.I want that when he pressed the button the user id of the user will passed to the report and the report will generate corresponding to his details which was stored in the database.This scenario is like any online admit card.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN
Message was edited by:
user630863Thanks for replying.
Actually I am a beginner.I think that I have to use RUN_REPORT_OBJECT built-in.But I cannot understand the parameterlist.Can u plz give me any example or code then I am very thankful.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN -
Hi All,
I tried to call a report from a form (using this form as a parameter form)but unfortunately it is not working out for me. I used the run_product built in.
Could someone examine my code and tell me what is wrong?
DECLARE
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('OPEN');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('OPEN');
Add_Parameter(pl_id,'P_BUNIT',TEXT_PARAMETER, :BLOCK3.BUNIT);
Add_Parameter(pl_id,'P_AGRMT',TEXT_PARAMETER,:BLOCK3.AGRMT);
add_parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');
add_parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
run_product(REPORTS, 'APRIL11', SYNCHRONOUS,RUNTIME,
FILESYSTEM, pl_id, NULL);
END;
nullOlan,
Your code looks good, and it should work.
Maybe you should check your report to make sure it is under oralce report path, user-defined parameters in the report are same name, type,lengh as in the form parameters, and correct system parameters.
good luck.
Jingning
Maybe you are looking for
-
How many times should I run the APPLE TEST HARDRIVE/DRIVE on my macbook?
how many times should I run the APPLE TEST HARDRIVE/DRIVE on my macbook?
-
Need information on SolarisWBEM Services
I need the following information about the Solaris WBEM Services. 1. Is Solaris WBEM Services supported now and how to use the same? 2. Features supported by Solaris WBEM Services? For example, list of providers are supported by the same. Please prov
-
I am very new to collections and I am having an issue creating my first collection. When I execute the following code I get ORA-00900 invalid sql. apex_collection.create_collection_from_query ('TEST', 'select * from apex_collections', 'NO'); Any gu
-
Screen shows dim 'charged' icon - ipod doesn't sleep properly
I am having the same issue as described in the thread below and see no answer there. I can fully charge my ipod and it plays, etc. fine. When I try to put it to sleep, it goes black for a second and the comes back to dim with the "charged" icon on th
-
Hi, I have a Date/Time parameter which i am passing from crystal reports to crystal Xcelsius. I am using Remedy DB which internally stores the date as seconds from 1/1/99 until current date. In crystal reports, the date is getting displayed, but in x