SRW.RUN_REPORT 10gR2 From Forms
Dear all,
I describe my situation :
I have an application Forms 9 installed in a server A.
I have a report server instance 9 running in server A.
I have a report server instance 10gR2 running in server B.
The report of the report instance of server A run succefuly when i run them from the Application Forms.
I want to run a report from the application Forms using SRW.RUN_REPORT_OBJECT in the server B . Haw can i precise to use report instance of the server B in RUN_REPORT_OBJECT.
It's possible to do that with SRW.RUN_REPORT_OBJECT ?
Should i pass the IP of the server or use tnsnames.ora ?
With rwservlet i can precise the IP of the Report Server in the URL Haw to do that with SRW.RUN_REPORT_OBJECT ?
Many thanks for your urgent help.
[ Forms Reports Integration whitepaper 9i/10g ]
see links below
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i/10g ]
9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
http://www.oracle.com/technology/products/forms/techlisting10g.html
---------------------------------------------------------------------------------
Similar Messages
-
SRW.RUN_REPORT_OBJECT 10gR2 from Forms
Dear all,
I describe my situation :
I have an application Forms 9 installed in a server A.
I have a report server instance 9 running in server A.
I have a report server instance 10gR2 running in server B.
The report of the report instance of server A run succefuly when i run them from the Application Forms.
I want to run a report from the application Forms using SRW.RUN_REPORT_OBJECT in the server B . Haw can i precise to use report instance of the server B in RUN_REPORT_OBJECT.
It's possible to do that with SRW.RUN_REPORT_OBJECT ?
Should i pass the IP of the server or use tnsnames.ora ?
With rwservlet i can precise the IP of the Report Server in the URL Haw to do that with SRW.RUN_REPORT_OBJECT ?
Many thanks for your urgent help.Hi Frank
Actually, today it looks like I was wrong. Now I CAN reproduce the problem - and now... the interesting part comes:
It doesn't seem to have anything at all to do with the number of reports in the "Past Jobs". Instead, this problem seems to occur each time, that I run the application in "DEBUG MODE" - you know, "?debug=yes". I have 2 machines - a test machine (T) and a development (D) machine. To clarify, here's what I did:
1. On T, I start up a WebForms session without "?debug=yes". The report runs correctly without any errors.
2. On T, I close the Forms session and start it again with the "?debug=yes" parameter.
3. On D, I connect to the debug session with the port number provided.
4. On T, I now try to run the same report as before. Now Forms fails with "FRM-41213 Unable to connect to the Report server rep_(servername)" and after that, as mentioned "REP-56033: Job 0 does not exist"
I have logged a TAR under "DENMARK AND ICELAND" with ID 2507245.995, if you want to assist the support analyst. -
FRM-92101-Did any one migrate to 10GR2 from Forms 6 generated by Designer 6
I am using designer 6 PLLs . We are migrating to 10GR2; Recompiled all plls in 10GR2 and it is throughing FRM92101 for all Tabbed forms. Upon debugging it is breaking at the OFGTAB.pll.
Any help is appreciated!
Thanks.oops!!
Kindly excuse me i totally missed the error code.
Did you compare designer plls for 10GR2 designer?
It is possible that some procedures/packages are obsolete.
I would recommend to use 10g Designer plls.
Cheers
AT -
Forms 6i & SRW.Run_Report does not work on 10g client
Hello Sir/Madam,
I'm using 10g client with Forms & Reports 6i.
FORMS 6i error => for some reason this combination is prompting FRM-10102 & FRM-40039 errors
Attempted so far => attached the library, complied, it compiles ok, but somehow loses the library file at runtime
Reports 6i issue => for Reports seems like it does not recognize SRW.Run_report built-in
Attempted to run without "srw.run_report" it works..
Please help me understand if any necessary "*.dll" files are missing? if so what might that be?
Regards,
Vani SontiWhen you install Forms and Reports 6i, the correct Oracle client (8) is installed. I don't know what you did exactly, but you shouldn't try to change that.
You can install the 10g client, but in a separate Oracle home. This way Forms and Reports still use the 8 client.
FRM-10102 & FRM-40039 errorsThat looks like a problem in your forms60_path registry setting. -
SRW.Run_Report is not working in Reports from 6i to 10g
Hi,
I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
' p_user_id='||l_user_id||
' p_resp_id='||l_resp_id||
' p_appl_id='||l_appl_id||
' p_conc_request_id='||
' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
' p_period_name='||l_period_name ||
' server='||l_server
It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
' p_user_id='||l_user_id||
' p_resp_id='||l_resp_id||
' p_appl_id='||l_appl_id||
' p_conc_request_id='||
' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
' p_period_name='||l_period_name
);Thank you for your reply.
Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
Here it is some example code.
For example, in 9i I have the following code:
div id=div_plus_GENERALE style="cursor:hand; display:none;"
<td> width=8 </td>
<td id=butt align=left style="font-family:Verdana,Tahoma;
font-size: 10px; font-weight: 400; color: '#ffffff';
background-color: '';
"onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
butt_clicked=this; restore_butt_style=butt_off_lit;
this.style.cssText=butt_on_lit;
var x = document.getElementById('Freccia_' + freccia_old);
x.style.display = 'none';
Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
onMouseOver="this.style.cssText=butt_on_lit;"
onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
<tr>
<td height=2></td>
</tr>
</table>
In 10g the HTML code looks like this:
div id=div_plus_GENERALE style="cursor:hand;"
<td width=8> </td>
<td align=left style="font-family:Verdana,Tahoma;
font-size: 10px; font-weight: 400; color: '#ffffff';
background-color: '';">
<a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
onClick="var x = document.getElementById('Freccia_' + freccia_old);
x.Style.visibility='hidden';
Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
onMouseOver="this.style.cssText=butt_on_lit;"
onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
<tr>
<td height=2></td>
</tr>
</table>
At this point I don't know what should I investigate next.
Thank you very much.
Daniela -
Using srw.run_report in report server
Dear all,
I'm running a report (report A) on the report server and after it is running (printing output on screen), I need to run report B at the background and save the output of report B to the file system. In the report A's After Report Trigger, I have a srw.run_report function, the syntax is: srw.run_report('server='||v_serverName||' report='||v_reportName||' batch=yes destype=file desname=/tmp/output.pdf desformat=pdf p_startdate=''12-JUN-2003'' p_enddate=''14-JUN-2003'''). When I run the above syntax (without the server name part) in report builder, it works fine. But I couldn't get it working on the report server. Each time report A runs, report B couldn't be run at all (no job id was given or scheduled). Could anyone give me an idea on whether srw.run_report could be used in the report server?
Many thanks for your urgent help.
RoseCan I use this build it to run itself? I mean in your case run report A?
our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
thanks. -
Hide URL using srw.run_report
I called a report from a form 10g using RUN_REPORT_OBJECT which hides url.
Now i called a report with in report using srw.run_report which shows hole url in the browser.
I want to hide url.Can I use this build it to run itself? I mean in your case run report A?
our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
thanks. -
FUNCTION IS NOT WORKING WHEN RUN IN SRW.RUN_REPORT, URGENT
Hi,
I have a report. it has got 1 Query and 2 groups.
Q1
|
|
__G1__
|F1 |
|F2 |
|F3 |
|
|
|
__G2__
|Items|
|Sales|
| Qty|
|Store|
|Func4|
|Func5|
|Func6|
The Query looks like above. Now In the report I have a 3 User parameters . For Each record in G2 the functions Func4,Func5 and Func6 adds the value to the user parameters at the report level.
Now the Func1,Func2,Func3 takes the value of last 4 record for each item at each G1 Level and devides it by 4 and prints . As an example given below
ITEMS-----SALES-------QTY-----------STORE
10001-----10000-------200-------------100
10001-----20000-------500-------------200
10001-----15000-------350-------------175
10001-----45000-------650-------------225
10001-----50000-------700-------------300
AVERAGE==>32500-------550-------------225 ==> Calculated by F1,F2,F3
20001-----70000-------900-------------400
20001-----30000-------600-------------350
20001-----20000-------500-------------300
20001-----25000-------450-------------275
20001-----35000-------550-------------225
20001-----65000-------800-------------400
AVERAGE==>36250-------650-------------300 ==> Avg of last 4 records
This report takes an parameter which is part of the Where condition of the Query Q1. If I run this report from the report builder and provide the value for the parameter then the report runs fine printing the exact values. If I run the report from another report(which I have to do, due to circumstances) using SRW.Run_Report and pass the parameter in the same command. The the function FUNC4, FUNC5, FUNC6 does not do the addition, as a result the Func1,Func2,Func3 returns 0. I dont know why this is happenning .
This is very very URGENT, My project manager is on my head to finish it ASAP. Please help.
Thanks
FerozHi Toby and Danny,
Thanks for the quick reply. I dont think I am having an interdependancy of the functions. Here is an sample what two functions do at each level
Func6 =========> This function at group level G2
begin
-- To initialize the user parameter for each new item.
If :CNT = 1 Then
:Wk4_Pos_Qty := 0;
End If;
-- to add the qty value to the user parameter for last 4 records. Uchange is the no of records for each item
If :CNT >= :UCHANGE - 3 Then
:Wk4_Pos_Qty := :Wk4_Pos_Qty + :Qty;
End If;
return 0;
end;
Func3 ======> this function at group level G1
Begin
-- if no of records are less than 4 then devide by the no of records or devide by 4.
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
Here Wk4_Pos_Qty is the User parameter created to hold the calue for the Um of last 4 records Qty.
I tried to modify the Func3 so that it looks like this
Func3
begin
srw.reference(:Wk4_Pos_Qty);
If :UChange < 4 Then
return((:Wk4_Pos_Qty + :Qty) / :UChange);
Else
return((:Wk4_Pos_Qty + :Qty)/ 4);
End If;
end;
But it does not effect anything. I mean its the same. The Wk4_Pos_Qty returns 0 and Func3 returns 0.
Any Suggestions .
Thanks
Feroz -
SRW,Run_Report not working on Report Server
1 The plan is to do a select in the mother report. Get a number of rows, among them a company name, which the SQL is sorted on.
2 In the data model I have a function that checks if a global variable is the same as the company name. If not, it will set the global variable equal to the company name, and then it will run a global defined function that starts the SRW.Runreport call that generates a PDF for this company.
3 Next row the same thing will happen, and maybe the function is run again, or maybe it is the same company, in which case the SRW function will be skipped.
The report runs nicely from reports builder, but when I try running it on the server it fails with error: REP-1401: 'cf_doc_trans_letterformula': Fatal PL/SQL error occurred. ORA-06508: PL/SQL: could not find program unit being called.
I use following web link to start the “mother” report: http://Rep_server/reports/rwservlet?SERVER=origo_report&USERID=user%2Fpassw%40tns_name&AUTHID=user2%2Fpassw2&DESTYPE=cache&DESFORMAT=rtf&Report=temp.rdf
In the temp.rdf the following statement is executed: SRW.Run_Report('BATCH=YES DESTYPE=FILE DESFORMAT=pdf DESNAME='||P_Desname||'.pdf REPORT='||P_REPORT||'');
Are there any special settings I must make, when running on a Reports Server as opposed to the Reports Ruilder? Do I need a SERVER=REP_SERVER in the SRW.Run_Report parameter list?
Any suggestions at all will be immensely appreciated.Hi,
Top right cornor has a text box. Type "bobj is undefined" & you would find many KBs, forums & blogs.
http://www.sdn.sap.com/irj/scn/advancedsearch?query=bobjisundefined
Thanks,
Saurabh -
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; -
How to use srw.run_report without userid parameter in 10g
I have the following function which works fine when I supply the userid parameter.
Is it possible to run srw.run_report without the userid? If not is there another way to run a batch report to create a file?
create or replace
FUNCTION SUNRESDS(vopersorjudicial varchar2)
RETURN VARCHAR2 as
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
BEGIN
myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.add_parameter(myPlist,'GATEWAY','http://xxx.xx.xxx.xx/reports/rwservlet');
srw.add_parameter(myPlist,'SERVER','rep_172_FRHome1');
srw.add_parameter(myPlist,'REPORT','d:\oracle\FRHome_1\forms\sunresds.jsp');
srw.add_parameter(myPlist,'USERID','username/password@databasename');
srw.add_parameter(myPlist,'DESTYPE','file');
srw.add_parameter(myPlist,'DESFORMAT','PDF');
srw.add_parameter(myPlist,'popersorjudicial',vopersorjudicial);
srw.add_parameter(myPlist,'DESNAME','d:\Reports\unresolved_discrepancies.pdf');
myIdent := srw.run_report(myPlist);
return 'Y';
EXCEPTION
when others then
return ('sunresds ' || sqlerrm);
END;Did you solve your problem? How did you do?
-
Font subsetting issue with srw.run_report
I have PDF subsetting as
"Courier" = "MSGOTHIC.TTC"
I have a report emp.rdf. This emp report just displays the data from emp table.
I have a report dept.rdf. This dept report just displays the data from dept table.
In the after report trigger of the dept, I added
srw.run_report(report=emp destype=file desname=emp.pdf desformat=pdf);
I am running the dept report from command line as
rwclient server=<servername> userid=<user/pwd@db> report=dept destype=file desname=dept.pdf desformat=pdf
The report hangs. I tried moving the after report trigger to before report trigger and it fails too.
Any ideas?Hi,
Can you try running this report from the Reports Builder, ie, use File > Generate to file > pdf, and see if both the master and child files are generated.
If yes, can you post both server and engine trace file contents (last few lines) of the instance when you run it from the server, and not from Builder.
Navneet. -
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 -
Doubt in srw.run_report
hi all,
i tried to call one report from other using srw.run_report,the below code is working fine
but i give destype=screen or preview then its getting error.im using report 10g.
how to use this?
function BeforeReport return boolean is
begin
srw.run_report('batch=yes report=e:\REP\CALL_REPORT\emp.rdf
destype=file desformat=PDF desname=e:\REP\CALL_REPORT\emp2.PDF');
return (TRUE);
end;srw.run_report package may not be used in webservice. It does fit to server/client application.
-
Srw.run_report desformat=pdf, output is missing
Hi,
Could someone please help me with the following:
I have 2 reports, rep1.rdf and rep2.rdf.
rep1.rdf has a formula column in which I invoke rep2.rdf with the following syntax:
srw.run_report('report=rep2.rdf '||
' destype=file'||
' desname=test.pdf'||
' desformat=pdf'||
' background=Yes');
On the client (windows2000), it works fine. After completion there is a test.pdf file in my directory.
When I run the report from the concurrent manager from Oracle Applications 11i, I don't get an error message, but there isn't a pdf file created.
Has someone any suggestions? I'm allready searching for 2 days and I'm not finding the solution...
Thanks,
Martine Vanderveken.It may be that rep2.rdf is not in REPORTS60_PATH. You can turn on tracing (tracefile=youTraceFile.txt traceopts=trace_all) and error file (errfile=yourErrorFile.txt) to see if there are any errors being detected which aren't being report through the concurrent manager log files. You can also use srw.message() functions to add to these tracefiles or the PL/SQL file IO functions to trace yourself.
Maybe you are looking for
-
Hi Experts, DB version: 10.2.0.4 OS : Linux I need to perform Switch over, Unfortunately i have given "alter database recover managed standby database finish" on standby database now the status of standby database is "RECOVERY NEEDED" and the status
-
QT Pro Skips when playing new AVI files!
I'm having some trouble with my QT Pro 7.0.4- It hasn't given me any trouble until I got this newest version. The last two new AVI files I tried to play skip like a CD, both in audio and video, like it can't keep up with itself. It renders the clips
-
Hello, When I submit jobs under OMS, for example, the full export of a database, it fails with the vni-2015 error. I describe underneath, the steps made. OS:Windows XP Pro Version 2002 SP1 Database : Oracle 9i 9.2.0.1.0 I opened a windows session loc
-
Hi, Long time reader, first time writer. I'm in the development phase of a project using DbXml. During testing, one of my containers became corrupt. I've tried everything I know to recover the data. If I try to open the environment, it gives me a "Re
-
After using Energie On The Go BB will not charge from wall
My BB was out of power and I bought an Energizer Energie on the go to charge my BB and it worked fine. But since then the BB will not charge from the wall. I bought a new batery and same story. the plug con comes on when first plugged to the wall cha