Calling OWB from forms
hi,
i need help regarding calling OWB from Oracle Forms. i have a transformation routine written in java, which i'd be calling through forms and then switch to OWB. is there a way i can do that?
Regards,
Mehwish
Is your question how to call out to Java from Forms? You didn't say which version you are using, but from Forms 6i and up you can use the the Java Importer. This let's you create a PL/SQL wrapper around your Java so that you can refer to it from within Forms. At runtime, Forms will call out to Java for you.
Regards,
Robin.
Similar Messages
-
Calling report from form. Need PDF output
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
ThanksThanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
win_api_environment.read_registry must be declared. Is there some package I need to attach?
Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
Thanks
The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
IS
vcServerApp varchar2(40);
vcServerTag varchar2(600);
vcCommand varchar2(2000);
iArgPos pls_integer;
dummy NUMBER;
BEGIN
-- 1 get the Server App for .PDF files
vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
-- 2 get the executable
vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
vcServerApp||'\SHELL\OPEN\COMMAND';
vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
-- 3 Sort out how to specify the Filename
iArgPos:= instr(vcCommand,'%1');
if iArgPos = 0 then --no substitution Var on the command line
vcCommand := vcCommand||' '||vFile;
else
vcCommand := substr(vcCommand,1,(iArgPos-1))||
vFile||substr(vcCommand,(iArgPos+2));
end if;
-- 4 Run using Winexec (or Host if preferred).
win_api_shell.winexec(vcCommand);
EXCEPTION
when no_data_found then
abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
END;
Chad
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
Thanks -
Calling Report From Form To Many Destinations
Hi
I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?what about adding a drop-down-list near your report-button where you can choose the destination?
when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too. -
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
Hi All,
We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
But when we try to run reports from Forms 10g it throws error which is given below.
We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
URL
http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
ERROR
REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
I will really appreciate your help.
Thanks
SandyHello,
You are mixing 2 separators in the URL : & and +
Use only one separator in the URL :
Example :
http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
Regards -
Calling JSP from Forms and going back from JSP to Forms
Hi,
We are calling JSP from Forms 6i using show_document
I'd like to go back to tha calling Form from the JSP.
How can I construct the URL that would lead me back to the same Form and Forms session where the JSP was called from?
Thanks,
ArpadThanks Shay,
works for me too...
Now:
when I use the "Back" button of my IE to go back from JSP to the Forms session, it works for Jinitiator 1.1.8.19, but if I use Jinitiator 1.3 I got hung...
Any ideas how could I make it work from Jinit 1.3?
Thanks again/
Regards,
Arpad -
Calling report from FORM - error Invalid value of paramente 'P_YEAR'
Hi guys,
Could you please help me to figure out what is going wrong
with my form which run a report?
I am using Developer suite 10g.
when i run report from report application it run fine,
but when i call that report from a form it gives me error.
I have checked the datatype, checked the parameter value
that I assign from form is available in the report parameter value.
What else do i have to check in order to run this report
from the form.
Error Message from Report Queue Manager:
Invalid value for parameter 'P_YEAR'.
Your insight will be appreciated.Thank you for reply Denis,
Here is the code which run_report from form.
DECLARE
-- variables for running individual reports
report_filename VARCHAR2(40);
var_reportpath VARCHAR2(100);
report_otherparms VARCHAR2(200);
-- variables to keep track of successful reports in silent mode
rep_status VARCHAR2(40);
rep_req NUMBER := 0;
rep_count NUMBER := 0;
dummy NUMBER;
-- variables to load the report names and checkboxes into the parameter list
pl_id PARAMLIST;
plname VARCHAR2(20) := 'rpt_list';
-- variables to loop through the parameter list and run the reports
i NUMBER;
split_loc NUMBER;
param_value VARCHAR2(40);
checkbox_name VARCHAR2(40);
report_basename VARCHAR2(40);
svc_name VARCHAR2(4);
run_report BOOLEAN;
disp_exist BOOLEAN := get_current_service_count( :global.filename_prefix, 'DISP',
:reports_control.year_list, :reports_control.quarter_list,
:reports_control.group_list );
hosp_exist BOOLEAN := get_current_service_count( :global.filename_prefix, 'HOSPICE',
:reports_control.year_list, :reports_control.quarter_list,
:reports_control.group_list );
orth_exist BOOLEAN := get_current_service_count( :global.filename_prefix, 'O/P',
:reports_control.year_list, :reports_control.quarter_list,
:reports_control.group_list );
BEGIN
-- Are any reports selected?
IF BOXES_ARE_CHECKED(:System.Cursor_Block,'PRINT_NULL_REPORT') THEN
if not CHECKBOX_CHECKED('print_null_report') then
disp_exist := TRUE;
orth_exist := TRUE;
hosp_exist := TRUE;
end if;
-- Create Report Parameter Listing
pl_id := GET_PARAMETER_LIST(plname);
if NOT ID_NULL(pl_id) then
DESTROY_PARAMETER_LIST(pl_id);
end if;
pl_id := CREATE_PARAMETER_LIST(plname);
if ID_NULL(pl_id) then
GENERIC_ALERT('Error creating report listing');
RAISE Form_Trigger_Failure;
end if;
ADD_PARAMETER(pl_id,'id1', TEXT_PARAMETER,'cover_page_intro!INTRO');
ADD_PARAMETER(pl_id,'id2', TEXT_PARAMETER,'utilization_profile!ALLUTIL');
ADD_PARAMETER(pl_id,'id3', TEXT_PARAMETER,'utilization_summary!ALL_SUMMARY');
ADD_PARAMETER(pl_id,'id4', TEXT_PARAMETER,'hiv_profile!HIV_PROFILE');
ADD_PARAMETER(pl_id,'id5', TEXT_PARAMETER,'wound_care_profile!WOUND_CARE_PROF');
ADD_PARAMETER(pl_id,'id6', TEXT_PARAMETER,'top_10_diagnosis!TOP10DIAG');
ADD_PARAMETER(pl_id,'id7', TEXT_PARAMETER,'diagnosis_profile!DIAG_PROFILE');
ADD_PARAMETER(pl_id,'id8', TEXT_PARAMETER,'physician_profile!PHYS_PROFILE');
ADD_PARAMETER(pl_id,'id9', TEXT_PARAMETER,'physician_specialty!PHYS_SPECIALTY');
ADD_PARAMETER(pl_id,'id10',TEXT_PARAMETER,'discharge_profile!DISCHARGE_PROFILE');
ADD_PARAMETER(pl_id,'id11',TEXT_PARAMETER,'acute_care_discharge!ACUTE_DSCHRG');
ADD_PARAMETER(pl_id,'id12',TEXT_PARAMETER,'excessive_cost_patients!EXCESSIVE_COST');
ADD_PARAMETER(pl_id,'id13',TEXT_PARAMETER,'provider_profile!PROV_PROFILE');
ADD_PARAMETER(pl_id,'id14',TEXT_PARAMETER,'service_profile!SERVICE_PROFILE');
ADD_PARAMETER(pl_id,'id15',TEXT_PARAMETER,'age_gender_profile!AGE_GENDER_PROF');
ADD_PARAMETER(pl_id,'id16',TEXT_PARAMETER,'network_services!NETWORK_SERVICES');
ADD_PARAMETER(pl_id,'id17',TEXT_PARAMETER,'thh_section_header!THH_COVER');
ADD_PARAMETER(pl_id,'id18',TEXT_PARAMETER,'thh_utilization!THH_UTILIZATION');
ADD_PARAMETER(pl_id,'id19',TEXT_PARAMETER,'thh_service_profile!THH_SVC_PROF');
ADD_PARAMETER(pl_id,'id20',TEXT_PARAMETER,'hit_section_header!HIT_COVER');
ADD_PARAMETER(pl_id,'id21',TEXT_PARAMETER,'hit_utilization!HIT_UTILIZATION');
ADD_PARAMETER(pl_id,'id22',TEXT_PARAMETER,'hit_service_profile!HIT_SVC_PROF');
ADD_PARAMETER(pl_id,'id23',TEXT_PARAMETER,'hme_section_header!HME_COVER');
ADD_PARAMETER(pl_id,'id24',TEXT_PARAMETER,'hme_utilization!HME_UTILIZATION');
ADD_PARAMETER(pl_id,'id25',TEXT_PARAMETER,'hme_service_profile!HME_SVC_PROF');
ADD_PARAMETER(pl_id,'id26',TEXT_PARAMETER,'disp_section_header!DISP_COVER');
ADD_PARAMETER(pl_id,'id27',TEXT_PARAMETER,'disp_utilization!DISP_UTILIZATION');
ADD_PARAMETER(pl_id,'id28',TEXT_PARAMETER,'disp_service_profile!DISP_SVC_PROF');
ADD_PARAMETER(pl_id,'id29',TEXT_PARAMETER,'hosp_section_header!HOSP_COVER');
ADD_PARAMETER(pl_id,'id30',TEXT_PARAMETER,'hosp_utilization!HOSP_UTILIZATION');
ADD_PARAMETER(pl_id,'id31',TEXT_PARAMETER,'hosp_service_profile!HOSP_SVC_PROF');
ADD_PARAMETER(pl_id,'id32',TEXT_PARAMETER,'orth_section_header!ORTH_COVER');
ADD_PARAMETER(pl_id,'id33',TEXT_PARAMETER,'orth_utilization!ORTH_UTILIZATION');
ADD_PARAMETER(pl_id,'id34',TEXT_PARAMETER,'orth_service_profile!ORTH_SVC_PROF');
ADD_PARAMETER(pl_id,'id35',TEXT_PARAMETER,'encounter_detail!ENCOUNTER_DETAIL');
--- set up other parameters to send to generate_report
if :reports_control.output_choices = 'FILE' then
var_reportpath := :global.report_directory || :reports_control.year_list;
if :global.filename_suffix <> '_A10G' then
var_reportpath := var_reportpath || 'q' || :reports_control.quarter_list;
end if;
var_reportpath := var_reportpath || '_G' || :reports_control.group_list || '_';
else
var_reportpath := '';
end if;
report_otherparms := 'p_year='||:reports_control.year_list;
if :global.filename_suffix <> '_A10G' then
report_otherparms := report_otherparms || ' p_quarter='||:reports_control.quarter_list;
end if;
report_otherparms := report_otherparms || ' P_REPORTGROUPID='||:reports_control.group_list;
--- Check if reports are checked and submit to Reports Server
for i in 1..35 loop
GET_PARAMETER_ATTR(pl_id,'id'||i,dummy,param_value);
split_loc := instr(param_value,'!');
checkbox_name := substr(param_value,1,split_loc-1);
report_basename := substr(param_value,split_loc+1,length(param_value));
if CHECKBOX_CHECKED(checkbox_name) then
run_report := TRUE;
svc_name := substr(report_basename,1,4);
if svc_name = 'DISP' then
if not disp_exist then
run_report := FALSE;
end if;
elsif svc_name = 'ORTH' then
if not orth_exist then
run_report := FALSE;
end if;
elsif svc_name = 'HOSP' then
if not hosp_exist then
run_report := FALSE;
end if;
end if;
if run_report then
report_filename := :global.filename_prefix || report_basename || '_10G';---- :global.filename_prefix || report_basename || :global.filename_suffix;
GENERIC_ALERT(report_filename || ' ' || report_otherparms);
rep_status := GENERATE_REPORT(report_filename,:reports_control.output_choices,var_reportpath,report_otherparms);
rep_req := rep_req + 1;
if rep_status = 'FINISHED' then
rep_count := rep_count + 1;
end if;
end if;
end if;
end loop;
-- if we're in silent mode, display a completion message
if :reports_control.output_choices = 'FILE' and CHECKBOX_CHECKED('chk_silent') then
SET_ALERT_PROPERTY('REPORT_CREATED',alert_message_text,
'' || rep_count || ' of ' || rep_req || ' reports created successfully');
dummy := SHOW_ALERT('REPORT_CREATED');
end if;
ELSE
dummy := SHOW_ALERT('select_report');
END IF;
END; -
Getting rep-3002 when calling report from form on web
i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.
Hello,
If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
Regards,
The Oracle Reports Team --skw -
Run_Report_Object -- Calling report from Form
Hello:
Where can I find a technical notes on VALID combination of system parameters in calling report using run_report_object from FORMS in 10G?
Not sure what are valid values and combinations. Do we HAVE to pass a REPORT SERVER along with run_report_object? what formats are valid along with destype etc?
Thankshttp://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
-
Calling report from form with lexical parameter
hi
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(1000);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT( 'REPORT34' );
set_report_object_property(repid,report_other,'p_SEASON_YEAR='||:SALE_ORDER.SEASON_YEAR
||' &sort='||:sale_order.sort1);
--set_report_object_property(repid,report_other,'p_g_id =20');
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://127.0.0.1:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
PAUSE;
END;i had made a lexical parameter in reports the reports code is
SELECT s.season_year,sd.prod_id,P.PROD_NAME,sum(sd.total_qty)
FROM sale_order s,sale_order_detail sd,PRODUCT P,CUSTOMER_MASTER cm,CUSTOMER_DETAIL cd
where s.id=sd.id and P.PROD_ID=SD.PROD_ID AND s.season_year = :p_season_year
AND CD.CUST_ID=CM.CUST_ID AND CD.CUST_ID=S.CUST_ID AND CD.COUNTRY NOT LIKE 'SPA%' AND Sd.PROD_ID LIKE 'CA%'
group by s.season_year,sd.prod_id,P.PROD_NAME
&sortthanks and regards
vikasVikas,
So, is your code producing an error when your report is called? Also, it would be helpful to know your Forms and Reports versions. Is ":p_season_year" set up as a USER_PARAMETER (UP) in your report or is it a true lexical parameter (meaning you should reference it with '&' instead of ':')? If it is a UP, the typical way to pass a value to this UP from Forms is to use a ParamList object instead of the REPORT_OTHER parameter of the Set_Report_Object_Property built-in. For example:
DECLARE
pl_id ParamList;
pl_name VARCHAR2(10) := 'REPORT34';
v_rep VARCHAR2(1000);
rep_status VARCHAR2(20);
BEGIN
pl_id := Get_Parameter_List(pl_name);
IF id_null(pl_id) THEN
pl_id := Create_Parameter_List(pl_name);
END IF;
Add_Parameter(pl_id, 'P_SEASON_YEAR', TEXT_PARAMETER, :SALE_ORDER.SEASON_YEAR);
repid := FIND_REPORT_OBJECT( 'REPORT34' );
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
... rest of your code here ...
END;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Calling report from form in Web environment
Hi,
We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
a) Is there any other way to call report from a form other than web.show_document?
b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
Any reply would be appreciated..Thanks1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
Darshan Desai
[email protected]
null -
Calling report from form 4.5
Hi,
I am using Forms 4.5 and Reports 2.5. I've to call a report from the form.
Can anyone throw some light on this?
Thanks,
Barathi A CHi,
Thanks so much for u r response.
Actually i am trying to call a report developed in 2.5 from forms 4.5. I've used the following built-in
Run_Product(REPORTS, 'first_report', SYNCHRONOUS, RUNTIME,FILESYSTEM,NULL,NULL);
I am getting the following message at run time.
Starting report first_report [Fri Aug 08 10:44:15 2003] ...
REP-0110: Unable to open file 'first_report'.
REP-1070: Object store failure occurred.
REP-0110: Unable to open file 'first_report'.
End report first_report [Fri Aug 08 10:44:16 2003].
Pls do the needful.
Thanks,
Barathi A C -
Hello,
i'm trying to call a Report from a Form but i'm getting the error:
<b>Cannot Get Output of Job ID 91 you requested on Mon Feb 03 14:00:03 BRT 2003.
REP-56033: Job 91 does not exist<b/>
I'm using Reports Server 9i (9.0.2.3) and Forms Server 6i.
The PL/SQL to call the report is something like the following:
<b>declare
v_rep_id Report_Object;
v_rep_job_id Varchar2(200);
v_rep_status Varchar2(200);
begin
v_rep_id := Find_Report_Object('RPT_GENERICO');
Set_Report_Object_Property(v_rep_id, REPORT_FILENAME, 'plscvnd0013rpt');
v_rep_job_id := Run_Report_Object(v_rep_id, pLista_ID);
v_rep_status := Report_Object_Status(v_rep_job_id);
while v_rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
loop
v_rep_status := Report_Object_Status(v_rep_job_id);
end loop;
if v_rep_status = 'FINISHED' then
Web.Show_Document('http://reports.caarj.com.br:7779/reports/rwservlet/getjobid' ||
substr(v_rep_job_id, 18) || '?server=Rep.caarj.com.br');
end if;
end;
end if;
Destroy_Parameter_List(pLista_ID);
end;</b>
I've already commented out the <security> section, and uncommented the <compatible version="6i"> in <reports_server>.conf file. The rwproxy service is up and running on port 1949 and i'm using SIGLE_SIGN_ON=NO in rwservlet.properties file.
What could be wrong??
Regards,
Marcus Santos.Jermima,
To call Reports9i from Forms6i it needs to be configured for backward compatibility. this means that your Reports9i server must run as if it was a 6i server.
The following is from an unpublished paper I wrote on this topic:
Using Reports9i with Forms 6i
====================================================
To be able to call Reports9i Services from a Forms6i client, an extra Reports server process must be created. Oracle9iAS Reports Services knows of two kinds of Reports Server processes. The in-process server is started the first time that a Reports is requested from the Web by
the Reports Servlet rwservlet. This Reports Server process cannot be used with Forms using Run_Report_Object and therefore a separate Reports Server process must be started prior to using it.
This can be done by issuing he following command from the Oracle9iAS/bin directory rwserver <servername> batch=yes & (UNIX)or rwserver -install <service name> (WINDOWS)In both cases, the first time that the Reports Server starts, a Reports configuration file <servername>.conf (UNIX) or <service_name>.conf (WINDOWS) is created in the Oracle9iAS/reports/conf directory.
To use Reports9i Services form a Forms6i client, this file needs some editing:
The Reports Sevices configuration file gets created with the first start of the Oracle9iAS Reports Services. The configuration settings in this file determine the runtime behavior of the Reports Services.
Two changes need to be applied to this file to make Oracle9iAs Services work with Forms6i client-server applications. Make sure that the Reports Services process was stopped before opening the Reports Services configuration file, located in the Oracle9iAS/reports/conf directory, with a text editor. The Reports Services configuration file name does apply to the following naming convention.
Separate server process
<ServiceName>.conf
<server>
[1] <!--compatible version="6i"/-->
<cache class="oracle.reports.cache.RWCache">
<property name="cacheSize" value="50"/>
<!--property name="cacheDir" value="your cache directory"/-->
<!--property name="maxCacheFileNumber" value="max number of files"/-->
</cache>
[2] <security id="rwSec" class="oracle.reports.server.RWSecurity">
<property name="securityUserid" value="tyKAUY845QDO/2vyaGbQw …" confidential="yes" encrypted="yes"/>
</security>
</server>
Change the following entries in the Reports Services configuration file for the Oracle9iAS Reports Services to accept requests from Forms 6i
clients.
[1] Uncomment this line to make Reports9i Services run in 6i compatibility mode. After uncommenting this line it should look similar to this
<compatible version="6i"/>
[2] Remove the <security> </security> tag pair and their included content. This effectively disables the Reports Services access control,
which by default requires a system authentication to be provided by the user to before running a report.
If later you want to recover access control, then all you need to do is to stop the Reports Services, delete the configuration file and start it up
again. This leads to a new configuration file being created. Repeat step [1].
Configure the tnsnames.ora file on the client and the server
For the Forms6i client server application and the Oracle9i Reports Server to know each other, the tnsnames.ora file needs to be edited on
both sides. The tnsnames.ora file to use is located in the Forms6i_Home/net80/admin directory on the client and the
Oracle9iAS/network/admin directory on the server. Add the following entry to both files:
<report_server_name>.<domain>=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=<hostname of the Reports Server installation>)
(PORT=1950)
The following entry is an example for a Reports Server with the name RepSRV in a “world� domain. Note that the port number of the Reports
Services is defaulted to 1950.
RepSRV.world=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=<fnimphiu-lap.de.oacle.com)
(PORT=1950)
Rwservlet configuration file
=============================
Calling Oracle9iAS Reports Services from a Browser URL* accesse the reports servlet first, which then routes the request to the server
engine, The Reports servlet rwservlet is configured by a file named rwservlet.properties, located in the Oracle9iAS/reports/conf directory.
Open this file with a text editor and uncomment the following line by remiving the ‘#’ character in front of it.
# SINGLESIGNON=YES
Change the value of this varible to No, so that the whole entry reads
SINGLESIGNON=NO.
Restart the Oracle9i Application Server, restarting the Oracle process monitor service (OPM), for the changes to take effect.
From now on the Reports Services does not require users to provide their single sign-on login password when retrieving the Report output
from the Web, which is one option of getting a Report back to the client.
* Note that you call the Servlet for retrieving the Reports output through web.show_document -
Page fault error while calling reports from forms
dear friends.
when a report is called from forms, just before opening up of background engine the application gets hanged with page fault. One has to forcibly shut down the application before loggin again.
The error mesage generated from log file is
Fatal NI connect error 12203, connecting to:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80orcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=orcl)(CID=(PR OGRAM=C:\ORAWIN95\BIN\RWRBE60.EXE)(HOST=SOUMYADIP)(USER=Soumya))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 8.0.5.0.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.0.4.0.0 - Production
Time: 06-MAY-00 14:03:32
Tracing not turned on.
Tns error struct:
nr err code: 12203
TNS-12203: TNS:unable to connect to destination
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 102
TNS-00102: Keyword-Value binding operation error
nt secondary err code: 0
nt OS err code: 0
After closing if we run the report next time it runs, but after 3/4 attempts the above error again occurs.
Please Help
PrashantI'm getting this also. I thought it was
due to my use of DATA PARAMETER. I've
logged TARS on this and have yet to hear
back from Oracle.
Maybe if enough of us get the error Oracle
will give some guidance on this one. -
When calling report from forms, only html format report can show chinese characters
To all experts,
When I run report by calling run_report_object() in forms, only html format can show chinese characters. If I choose pdf format, garbage characters were shown instead of chinese characters. My settings on server are as follows:
NLS_LANG=TRADITIONAL CHINESE_HONG KONG.UTF8
FORMS60_REPFORMAT=PDF
Do you know why? I hope to print report in PDF format as PDF turned out to be more regular in format. Is there any additional settings required?
May experts here broaden my mind?
RichardYou have two different ways of generating Japanese PDF files from Reoprts. One is font aliasing and the other is font subsetting.
<font aliasing>
You will need to have the following entries in uiprint.txt (example).
[ PDF ]
.....JA16SJIS = "KozMinPro-Regular-Acro"
"MS UI Gothic".....JA16SJIS = "KozMinPro-Regular-Acro"
You may need to download and install Japanese Font Pack from Adobe's web site (if your Acrobat is non-Japanese version).
<font subsetting>
You will need to add C:\WINNT\Fonts (or wherever your TTF/TTC fonts are installed) to your REPORTS_PATH.
You will also need to have the following entries in uiprint.txt (example).
[ PDF:Subset ]
"Andale Duospace WT J" = "Aduoj.ttf"
"Albany WT J"="AlbanWTJ.ttf"
"MS UI Gothic" = "msgothic.ttc"
Maybe you are looking for
-
Live Migration with Different CPU versions on the hosts, win 2012R2 Datacenter
Hello This question have been asked in different forums but when I read the the thread's I feel that I get mixed answers. And most answers are dating from 2012 (Win 2008R2), I don't know if they are still correct in win 2012R2. So now I ask the quest
-
Display 4000 character string in Crystal Report Viewer using crystal reports XI
Hi, I am facing issue while displaying a field which is of 4000 character length with data type string. It is displaying first 100 characters correctly. After 100 chracters it is displaying junk characters. Please help me for solving this issue. Than
-
We no longer able to Accept Quotations - iw32
Hi we are following below Scenario We create a Notification u2192 and a Serviceorder u2192, to create a Quotation we useu2192 DP80 (billing request) The cosumer accept the Quote u2192 and you need to accept the Quote in SAP, it will automatically clo
-
How can i change my email to reset my security questions?
i dont recognize the email its asking me to send to containing my security questions to reset
-
Hi , I have a read only table in a jspx page. In case there is some error or there are no rows to display , I dont want to display the table. Just a label with some text. There is a emptyText which checks if there are "no rows yet" , but it displays