About forms 10g for calling report
Dear Sir ,
I have create a procedure to call reports . i have given 2 parameters , 1 parameter is date another parameter is a 'where condition'. but i run the form it will not call the report because
space is not allow in where condition , but you know if i replace the space by _ then it would not be meaning full , please suggest me.
procedure
--==========
PROCEDURE run_report(mperiod char,pmwhere char)
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_stat VARCHAR2 (40);
compname VARCHAR2(100):='Alltex Industries Ltd.';
CADDR VARCHAR2(100):='Ariabo, Rupgonj, Narayanganj';
v_compname VARCHAR2 (100);
v_CADDR VARCHAR2 (100);
V_pmwhere VARCHAR2(100);
BEGIN
SELECT REPLACE (compname, ' ', '_')
INTO v_compname
FROM DUAL;
SELECT REPLACE (CADDR, ' ', '_')
INTO v_CADDR
FROM DUAL;
repid := FIND_REPORT_OBJECT ('ATTENDANCE_INOUTTIME_IKEA_C');
SET_REPORT_OBJECT_PROPERTY (repid, report_execution_mode, batch);
SET_REPORT_OBJECT_PROPERTY (repid, report_comm_mode, synchronous);
SET_REPORT_OBJECT_PROPERTY (repid, report_destype, CACHE);
SET_REPORT_OBJECT_PROPERTY (repid, report_desformat, 'pdf');
SET_REPORT_OBJECT_PROPERTY (repid, report_server, 'rep_server');
-- SET_REPORT_OBJECT_PROPERTY (repid, report_server, 'rep_apps1_asbiforms');
SET_REPORT_OBJECT_PROPERTY (repid,
report_other,
' MPERIOD='
|| mperiod
||' CADDR='
|| V_CADDR
|| ' PMWHERE='
|| pmwhere
-- ||
||' paramform=yes'
v_rep := RUN_REPORT_OBJECT (repid); ----- Check status
rep_stat := REPORT_OBJECT_STATUS (v_rep);
WHILE rep_stat <> 'FINISHED'
LOOP
rep_stat := REPORT_OBJECT_STATUS (v_rep);
END LOOP;
--- end Check status
-- WEB.SHOW_DOCUMENT('http://apps1.sfdw.org:7779/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_apps1_asbiforms','_blank');
web.show_document ( 'http://localhost:8889/reports/rwservlet/getjobid'
|| SUBSTR (v_rep, INSTR (v_rep, '_', -1) + 1)
|| '?'
|| 'server=rep_server',
'_blank'
END;
solve by own.
Similar Messages
-
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 -
Using the Query Partitioning Technique for calling reports from forms.
Hello everyone,
I am having problems using the Query partitioning technique which does not work (??) on the web environment. It seems like you are currently using it. However, I'm not sure whether you have tried this on the web environment. Anyway, see if you can help me please.
I am populating a record group using data from a form and then pass it as a data parameter to report.
I use the following codes:
Add_Parameter(list_id,'Q_1',DATA_PARAMETER,rg_name); /* rg_name is my record group */
repid := find_report_object('myrep');
v_rep := RUN_REPORT_OBJECT(repid, list_id); /* list_id is my parameter list */
In client-server mode, I set the report destination type to preview and it works fine. Data from the record group are displayed in the report.
To run it on the web environment, I use the following properties:
Report destination type: cache
Report server: repserver
I get no output and the Reports Queue Manager shows the following:
Description:
Name: /test/pfs/kn/rep/kn211rp0.rdf
Owner: dev6
Destination: Cache Only
Destination Name:
Status:
Current status: [Repserver] Terminated with Error
REP-0076: Internal failure in product integration.
Thank you again for a reply
Kind Regards
Yogeeraj Degambur
PS. I am working on the HP-UX environment. Versions: Dev6i patch 5a, Oracle 8.0.5hello,
check the whitepaper "Oracle9iAS Forms Services 6i and Reports Integration" which can be found on otn.oracle.com/products/forms
regards,
the oracle reports team -
Form hangs while calling Report
Hi, I am converting some Forms/reports from 6i to 10g.
The form I am testing is calling a report repeatedly using the following code:
rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
<<open_files>>
OPEN files;
<<get_next_file>>
FETCH files INTO file_name;
IF files%NOTFOUND
THEN
CLOSE files;
RETURN;
END IF;
:FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
SYNCHRONIZE;
IF :TYPE = 'PDF'
THEN
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
END IF;
IF :TYPE = 'HTML'
THEN
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
END IF;
report := Run_Report_Object(rep_id);
GOTO get_next_file;
When REPORT_DESFORMAT is set to HTML, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to PDF the form hang after creating 10 or 11 .pdf documents!!!
Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
Regards
YvesI tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
Yves -
How to suppress extra form feed for character report printing using ORARRP?
Dear All,
We are using Oracle Application Server 10g (10.1.2.0.2) on Windows 2003 Server and most of our client PC's are Windows XP Professional machines. We are migrating our existing oracle application from 2-tier architecture to 3-tier architecture (6i to 10g). We have installed ORARRP utility for remote direct printing and to a limited extent we are successfull in getting the things work out for our system users, However, we are facing a problem using the ORARRP utility for which we are not able to find a solution till date.
We have configured ORARRP utility on every user's PC and the printing of bitmap reports is working well. However, while printing CHARACTER reports using ORARRP utility, after the report gets printed, an EXTRA FORM FEED is issued by ORARRP to the printer and because of this the printer stationary skips one extra page and advances to the next page. Please note that this EXTRA FORM FEED happens only while printing a CHARACTER REPORT.
Has anyone come across such a problem using ORARRP ? How can we avoid this extra FORM FEED from CHARACTER REPORT printing using ORARRP ? Is there any other tool which supports remote direct printing just like ORARRP?
I shall be highly obliged if anyone could reply to my queries ASAP.
Regards,
KrishnaKumar SPlease help ! I tried the "send_form_feed" and "postscript_dos_print" parameters without success. The extra form feed is always there. Thanks.
-
Netscape 7 replaces form window when calling reports
Netscape 7.0, unlike Netscape 4.7 does not handle forms application that calls on Reports to display Report preview in PDF.
When our forms call reports to display a report to the user in the browser, the window on which the form screen is presented is replaced by the window which brings up adobe reader to display the report.
IE 5.5, Netscape 4.7 work fine.
Is there a configuration which must be set in Netscape or in the forms code to direct the browser to open a separate window to receive reports output?Lawrence,
try calling it
web.show_document('<URL'>,_blank);
This should do it. In Forms9i this built-in is able to call out to javascript, giving you even more control over the window you use it in.
Frank -
Overwrite .fmx in Forms 10g for Production
Forms 6 to Forms 10g migration:
In production environment, how can we deploy new version of application's fmx file over existing one of the same name without causing any downtime?
The client machines' OS is Windows whereas the server machine's OS is HP-UX RISC. It is reported to me that overwriting a .fmx file will cause the connected clients to crash. However, customer has the requirement to keep system up when replacing particular .fmx application modules in production time.
GeoffreyWell, the original question was a bit vague. I know you can have 6i and 10g running at the same time, but you do have to switch between the two environments (it's a different URL to the 6i or 10g server). I.e. you cannot have a 6i fmx file replaced with a 10g fmx without the user noticing anything.
It could be that the original poster just means "we have upgraded our forms 6i to 10g and we want to be able to quickly patch the upgraded 10g forms without the user noticing anything". I guess that is a more likely situation than a gradual upgrade from 6i to 10g. -
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 -
Integration problem between oracle forms 10g and oracle report 10g
Hi!
I've got any error message "Unable to connect to the report server "server name"" when a oracle report is run using run_report_object in the oracle form under oracle form developer 10g. Please advise any settings are required in order to run the report. Thank you very much.
Best Regards
PingaThe report server is running as the report can be run via URL in the brower. However, it prompts out the error when it is called by oracle form using the run_report_object.
-
Intergration between Oracle Forms 10g and Oracle Reports 10g
Hi!
I've got any error message "Unable to connect to the report server "server name"" when a oracle report is run using run_report_object in the oracle form under oracle form developer 10g. But, the report can be run via URL in brower. Please advise any settings are required in order to run the report. Thank you very much.
Best Regards
PingaThe report server is running as the report can be run via URL in the brower. However, it prompts out the error when it is called by oracle form using the run_report_object.
-
Frm-41213 SO: Linux 64bits,Oracle Forms 10g Integration With Reports
Oracle Forms [32 bits] Versión 10.1.2.0.2 with Reports Fails. The Report Server Is Up, the file test.rdf its executed ok. but when a button have the next code. all its wrong.... helpme...
PROCEDURE REPORT IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
BEGIN
repid := find_report_object('mireport');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_serverias_home_middle');
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://miserver.dominio.com:7778/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_serverias_home_middle');
ELSE
message('Error when running report');
END IF;
END;
REPORTS_CLASSPATH and REPORTS_PATH seting Ok.
the next ist the default.env.
ORACLE_HOME=/oracle/products/middle
FORMS_PATH=/oracle/misaplications/modu01/lib:/oracle/misaplicationes/modu02/menus:/oracle/misaplicationes/modu01/images:/oracle/misaplicationes/modu01/icons:/oracle/misaplicationes/modu01/submod01/source:/oracle/misaplicationes/modu01/submod02/source:/oracle/misaplitaciones/modu01/submod03/source:/oracle/misaplitaciones/modu01/submod04/source:/oracle/misaplicationes/modu01/submod05/source:/oracle/misaplicaciones/modu01/submod07/source:/oracle/products10g/middle/forms
WEBUTIL_CONFIG=/oracle/products10g/middle/forms/server/webutil.cfg
LD_ASSUME_KERNEL=2.4.21-4.EL
CLASSPATH=/oracle/products10g/middle/forms/java/imagenes.jar:/oracle/products10g/middle/forms/webutil/frmwebutil.jar:/oracle/products10g/middle/forms/webutil/jacob.jar:/oracle/products10g/middle/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/oracle/products10g/middle/jlib/repository.jar:/oracle/products10g/middle/jlib/ldapjclnt10.jar:/oracle/products10g/middle/jlib/debugger.jar:/oracle/products10g/middle/jlib/ewt3.jar:/oracle/products10g/middle/jlib/share.jar:/oracle/products10g/middle/jlib/utj.jar:/oracle/products10g/middle/jlib/zrclient.jar:/oracle/products10g/middle/reports/jlib/rwrun.jar:/oracle/products10g/middle/forms/java/frmwebutil.jar:/oracle/products10g/middle/forms/java/frmall.jar
REPORTS_CLASSPATH=/oracle/products10g/middle/jlib/zrclient.jar:/oracle/products10g/middle/reports/jlib/rwrun.jar
#FORMS_TRACE_PATH=<FORMS_ORACLE_HOME>/forms/server
the next ist the reports.sh.
ORACLE_HOME=/oracle/products10g/middle; export ORACLE_HOME
PATH=$ORACLE_HOME/jdk/bin:$ORACLE_HOME/bin:${PATH}; export PATH
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
## TWO_TASK=< two task name >; export TWO_TASK
## ORACLE_SID=< ORACLE SID >; export ORACLE_SID
## setting for Reports Runtime
RW=$ORACLE_HOME/reports; export RW
REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:/oracle/aplicaciones/sioper/geo/reports:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
REPORTS_TMP=/tmp; export REPORTS_TMP
REPORTS_NO_DUMMY_PRINTER=TRUE; export REPORTS_NO_DUMMY_PRINTER
REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar; export REPORTS_TAGLIB_URI
REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar; export REPORTS_CLASSPATH
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG
## Icon variable for Solaris platform
TK_ICON=$ORACLE_HOME/reports/plugins/resource; export TK_ICON
#REPORTS_DEFAULT_DISPLAY=NO; export REPORTS_DEFAULT_DISPLAYI thought I did, using batch=yes option. However, when running:
$ rwserver.sh server=repsrv
the pop-up window shows "Report Server is starting up". It does not change to "Report Server is ready".
Thanks -
Data Over flow in Reports 10g for the report U.S Sales Tax Report
Hi,
we are running the "U.S Sales Tax Report" in which we are facing the data overflow as an issue. Do any body have an idea how to fix this type of issue.
Thank you,
BODJust to save time for others who have the same requirement , use below, fill the structure with sales order and other details. Leave the posnr blank if you need document flow , else fill the posnr if it is item level.
CALL DIALOG 'RV_DOCUMENT_FLOW'
EXPORTING
VBCO6 FROM VBCO6
MAKT-MAKTX FROM SPACE
KNA1-KUNNR FROM kunnr2000
KNA1-NAME1 FROM name
MAKT-MATNR FROM SPACE
IVKORG FROM VKORG
IVTWEG FROM VTWEG.
No custom screen required, no tree control required, no coding required except that you need to call this at right place in your module pool/ report etc. SAP internally uses this for display in SAPMV45A.
Hope it helps.
Regards/Ajay -
Calling Crystal Reports XI from Forms 10g
Any one succeed in calling Crystal Reports XI from Forms 10g,
or using Import Java Class in Forms 10g
to call Crystal Reports XI
or any other method to invoke crystal Reports XI from FORMS
share your Knowledge to OTN
please provide me the steps,documents to [email protected]
Message was edited by:
user501763Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun -
Batch procedure in Forms 10g, calling rdf and send by mail
Hi all,
I need your advice regarding my task: i have a table with invoices of some clients. I have created a report in Oracle Reports 10g R2, so to have a pdf with all the data from this table.
I have created a form in Forms 10g R2, displaying in a screen one field, where the user can choose the date of invoice. Then i will query by that date all my invoices in that table, and then i want to create a procedure in Forms, so that for every line in that table with the invoice date just chosen i will run HOST(rwrun ... all my parameters).
My questions:
1. I need to read some more about how to create a custom xml so to pass to my rwrun, and depending on the records fetched in my cursors in Forms 10g, i will pass a xml variable to my reports, so i will get the data from Forms 10g in the report created in Oracle Reports 10g. Is there any way that i can grep the errors? I need to create some insertions based on succes on failure, how can i accomplish this?
2. Is the above described scenario way to complicated to loop throuh a cursor, create a pdf, and mail the pdf until the cursor is totally fetched? Do you recommend me a simpler way to accomplish this task?
Thank you so much,
Michael.Hello,
I have a report with all my clients, with their email addresses in the same report. Each client as unique account number or invoice number.
So i want to burst and distribute each invoice to the corresponding client:
1. I have set REPEAT ON: INVOICE in oracle reports.
2. From Oracle Reports, i click on Distribution list, and in the DESNAME i type email_address (which is the column from the table with the invoices).
3. Then, File >> Distribute. Says: distribution completed succesfully, but nothing happens.
Question:
1. Where am i mistaking?
2. Is there any log activity file that i could see what the application is doing, step by step?
Thank you,
Michael -
URGENT: Report parameter form set to yes in calling report from menu
I have write this code for calling report from menu module. But where i put the code
PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
DECLARE
pl_id ParamList;
repid REPORT_OBJECT;
v_rep varchar2(100);
v_server VARCHAR2(100);
rep_status varchar2(100);
v_host VARCHAR2(100);
BEGIN
select rep_server into v_server from reports_data;
select machine into v_host from reports_data;
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
repid := find_report_object('REPORTOBJ');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('Running');
END LOOP;
IF rep_status = 'FINISHED' or rep_status is NULL THEN
WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
ELSE
null;
END IF;
END;Jeneesh,
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
'paramform=YES
what about this variable ?
P_VAR1 = ........');
Maybe you are looking for
-
How do I get my volume bar back on iPhone 4?
My volume bar is missing from my iPhone 4 and this seems to be the reason the audio won't work when I try to play music. However, when I play a ringtone the audio is fine. I put my iPhone in the Bose speaker dock and the volume bar comes back, but on
-
Update from ios 4.1.2 to ios7
I would like to update my iTouch to 7 but don't see how?
-
After resetting Safari, I wanted to use preview images for cover flow and checked the dialog box accordingly. I get preview images in top site, but my cover flow images are blank generic documents. Shouldn't cover flow show a website icon or page pre
-
Chase Online Fraudulent e-mail
Warning: I received a fraudulent e-mail regarding a Chase Online Upgrade. They try to suck you into going to a fraudulent "Secure Message Center" where they ask for your Id/password/ and also to confirm your e-mail address. URL for the fraudulent si
-
Mac OS X Lion seems to have reversed my default scrolling direction.
Just installed Lion, so far so good, except that scrolling has reversed directions - that is to say twin-finger scrolling in an upwards direction causes a downward scroll on the page and vice versa; twin-finger scrolling in an leftward direction caus