2 Reports virtual paths in 11g
Hi
In OAS10.1.2.3 Reports, I unjar'ed reports.ear; changed its appplications.xml context-root to reports_2; added some pararmeters to its web.xml to use cgicmd_2.dat; then jar'ed and deployed reports_2.ear.
Now I have 2 reports virtual paths to keep sensitive reports and non-sensitive reports apart.
http://myhost/reports/rwservlet
http://myhost/reports_2/rwservlet
Any suggestion on how I can achieve the same results in 11g Reports?
What I have done so far:
In Fusion Middleware 11g 11.1.1.3, I created 2 in-process Reports services in 2 Weblogic domains - ClassicDomain and ClassicDomain02:
http://myhost:9002/reports/rwservlet
http://myhost:9004/reports/rwservlet
Each has it own cgicmd.dat file so I can keep sensitive reports and non-sensitive reports apart.
My problem is how to front the 2 URLs with OHS.
I tried mod_wl_ohs.conf or apache proxypass or mod_rewrite and none of them could give me the behaviour as in 10g.
According to metalink's
Is it Possible to Change the Virtual Path in Reports 11g ? [ID 1162143.1
Changing the Context Root (/report) directly from the Deployment section in the WLS_REPORTS managed server is not supported. The main reason behind this is that large amount of functionality and documentation assumes this standard path so changing this on servlet will break many other things.
Thx,
Ken
Hi
For the images try <img src="images/*.gif" width.....> . Note no forward or backward slash at the beginning . This worked for me.
Keep me posted on your progress.
Good Luck!
Eshwar Rao
Developer Technical Support
Sun mcirosystems inc
http://www.sun.com/developers/support
Similar Messages
-
Configure virtual path mapping for forms 11.1.2
Hi
How to configure virtual path mapping for "Oracle Fusion Middleware Forms and reports 11gR2 (11.1.2.0.0)" on my client?
Configuration type = development.
In forms 10g I configure it in "orion-web.xml".
C:\oracle\ids\j2ee\DevSuite\application-deployments\forms\formsweb\orion-web.xml
Regards
TobiasIf you use the development mode install in 11.1.2 I think you cannot use the "forms.conf" approach because you don't have an OHS installed.
We've used the approach described in the following metalink document (solution no. 1) which works with deployment as well as development installations. Tested on 11.1.1.4 and 11.1.2.
How to Create Virtual Mappings in Forms 11g [ID 1063043.1]
(essentially you extend the WebLogic deployment plan for the formsapp to include the additional mappings and then redeploy the formsapp in WebLogic)
Regards
Andreas
Edited by: Andreas Leidner on Dec 7, 2011 1:45 PM -
Defining virtual path for images to be visible without specifiying path(AS)
Hi,
I am running a report (Version 10g) which have an image (Read from file = yes) item with source "Function column" that returns an image name. Ex. "11.gif"
I am recieving an error that the applications server cannot find the image "11.gif"
Image 11.gif is stored in a directory on the Applications server "D:\photos".
Where should I add the directory path "D:\photos" so that the reports will view the image?
ThanksNo need to define a virtual path similar to what's done in forms 10g. An entry in the registry key 'REPORTS_PATH' is enough!
-
Oracle 10g reports migration to Oracle 11g migration
I have migrated oracle 10g reports to Oracle 11g reports and generated REP file. But when we execute REP file using RWRUN.EXE I am getting below error.
ERR REP-50125: rwbuilder.conf:java.lang.NullPointerException
ERR java.lang.NullPointerException
to avoid this I tried below work arround which was posted in "https://forums.oracle.com/forums/thread.jspa?threadID=2365028" URL. but not success.
1. Go to C:\Oracle\Middleware\asinst_1\config\FRComponent\frcommon\tools\admin
2. Make a backup of the file 'cauprefs.ora'
3. Open up the file in a text editor:
--In the file, look for:
Reports.PluggableDataSourceFactories =
("oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory",
"oracle.reports.plugin.datasource.jdbcpds.JDBCDataSourceFactory",
"oracle.reports.plugin.datasource.textpds.TextDataSourceFactory")
--Replace the value to: Reports.PluggableDataSourceFactories = ()
4. Save the file and try running Reports Builder again. Data Model should open up without crashing.
Could you please help me to resolve this issue.When I use rwrun.bat report is not invoking i use below command line. I am executing rwrun.bat from C:\Oracle\Middleware\asinst_1\config\reports\bin path.
rwrun.bat report="C:\Program Files\prnsrv\advices\01\bcacuchq.rep" userid=dbuserid/[email protected] desformat=pdf DESTYPE=file DESNAME="c:\temp\test.pdf" TRACEFILE="C:\TEMP\test.LOG" PRM_BRCH_CODE=781 PRM_PROD_CODE=BC PRM_PROD_REF_ID=BC11100142 PRM_ORDER_COL=DELIVERY_MODE PRM_CHQ_RPT=Y
and log is generating as below
===========================
LOG :
Report: C:\Program Files\prnsrv\advices\01\bcacuchq.rep
Logged onto server:
Username:
*** Starting up the JVM ***
JVM CLASSPATH variable is:
C:\Oracle\Middleware\Oracle_FRHome2\reports\jlib\rwbuilder.jar;C:\Oracle\Middleware\Oracle_FRHome2\reports\jlib\rwrun.jar;C:\Oracle\Middleware\Oracle_FRHome2\jlib\zrclient.jar
*** JVM started successfully ***
==================================== -
HOT VP = HOT VIRTUAL PATH = ABSOLUTE NIGHTMARE OF ...
Hey guys for my first post Im going to tell you about my nightmare Ive been having for quite a long time now with my Broadband connection
My Line rate is meant to be 8000k because I am very close to the exchange
In June 2010 I started noticing speed drops at peak times, I reported a fault, they sent an engineer out he couldnt find anything, I phoned them about 10-15 times, they insisted theres nothing that they could do. I gave up, and didnt bother phoning back in because I was getting around 2MB at peak times and 5MB off peak and I could live with this, just about.The exchange was due for an upgrade to ADSL2 in November so no point in pursuing further.
However, over the last 6 months, My broadband has been slowing and slowing and slowing down to an almost complete halt. I am now unable to play online games at peak times, I cannot watch Youtube or BBC I Player. My throughput has been between 300k-600k between 6.30pm and 12am. Sometimes It is impossible to do anything and its very frustrating. Mysteriously in September, the date of upgrade changed from November to April next year for ADSL2. My neighbour accross the road gets a stable 7MB all day long.
This prompted me to try again by starting a new fault, on the 26th of October. After around 5 phone calls, they sent an engineer out to my house, he ran some tests, told me he couldnt do anything. After around 30-40 phone calls, this repeated several times, until I got what I think was my 7th - YES 7TH!! engineer out, who told me I had a HOT VP and my equipment at the exchange needed an upgrade to allow more capacity for bandwidth. I said great finally we have got to the bottom of it, I cant wait to fix it now. So I phoned up technical help again, So they sent me another engineer, and another, and another. Each time they sent me an engineer, They couldnt do anything, They were not the right type of engineer to fix MY problem - HOT VP.
So after 10 engineer visits - yes 10!! I was not about to give up now. Even though quite laughably they sent me 1 engineer who did not even have a broadband fault diagnostic machine, instead they gave him an ancient ADSL speedtouch modem to test bb connections with!! and was complaining that his manager told him 'you dont need broadband fault training - just go out there and fix them' I did not know what else to do though, because the technical help centre in India was becoming a headache, I must have made about 40-50 phone calls in total to them over the last few months. It really does seem as if its a complete dead end this whole thing.
But then I heard about bt.com/contact - now I didnt even know these guys existed until now - how many BT Broadband customers are out there who have made hundreds of phone calls to BT - or left BT because they are so fed up with the service they are recieving from India. Language barrier is one thing but the incompetence of the staff on the normal technical help line is simply something else - they have no idea what a HOT VP is. One woman in India told me 'your broadband equipment at the exchange has overheated and it needs to be cooled down' - I swear that is actually what she said!!!
Frankly I didnt care though, because now I had found a way of MAYBE getting something done about this nasty attrocious unbelievable nightmare of a fault. OK so I go onto bt.com/contact, tell them my frustrations and the fault etc. eventually they, the friendly helpful (perfect english speaking) Northern Ireland Tech help get back to me after contacting BT wholesale - 'BT wholesale have told us that there is nothing they can do to fix this just now - the earliest they can send an engineer to fix this will be April 2011'
Absolutely not acceptable - I told them I am not accepting this - and to go back to wholesale and keep trying - they were complaining about the language barrier - wholesale are impossible to work with. This might be why some customers complain of the 'BT Shunt' now I know exactly what this is. The advisor although sympathetic simply did not have anything to say to me other than 'BT wholesale do not understand - and are refusing to send an engineer out' - Id say this is probably true!
I am waiting for an answer on what the next step is going to be - I am not giving up now - I hate my broadband connection the way it is - unuseable
I wonder how much BT has spent trying to resolve my fault - thousands maybe - all those engineers and phone calls...
I will put further posts about what happens next...
Can anyone answer these questions for me, I couldnt get an answer over the phone:-
1) will completely disconnecting my line and reconnecting it back up resolve the problem?
I have been told that it is only my equipment that is effected so restarting may put me on another Stack
and this is true because my neighbours is perfect
2) will the ADSL2 upgrade in feb 2011 reolve the problem?
3) why would a package that costs £24.99 a month not have priority on the traffic at the exchange - whereas if you pay this kind of money with other companies eg plusnet - you get priority bandwidth.Hi this may help no known hot vp's
Exchange Status Checker
Results: Ibrox
Code:
WSIBR
County:
Strathclyde
Enabled:
17 Nov 1999
Market:
3
Virtual paths: Green
There are currently no known capacity problems on your exchange. There may still be an exchange problem, however BT are not currently reporting that they are aware of it. Please contact Support if you are having speed problems, who can advise further.
Record last updated: 24 Dec 10
Historical information for this exchange:
Status
Date
17 Dec 10
10 Dec 10
03 Dec 10
26 Nov 10
19 Nov 10
Please note: This checker is not a generic fault tracker. It is updated weekly when updates are available and reflects a snapshot of speed capacity from each exchange. Results shown here should not lead you to conclusive proof of an issue.
Return to exchange detail
If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’ -
Migrating report from 6i to 11g
I am migrating reports from 6i to 11g.
I am calling report from form. All the reports works fine.
But in this report I have to pass parameter at runtime and report should save in pdf format at a given location.
forms & report version : 11.1.2
Database : 11g
Operating system : windows 7 professional.
Below is the code i am running.
declare
pl_name VARCHAR2(30) := 'tempdata';
pl_id ParamList;
x VARCHAR2(150);
y NUMBER;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('MALWADKARCONSUMPTIONSTMTDBR1');
pl_id := Create_Parameter_List(pl_name);
Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'FILE') ;
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'PDF') ;
Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.COMPANYNAME);
Add_Parameter(pl_id,'VLYCOMPANY',TEXT_PARAMETER,:block50.COMPANYNAME);
Add_Parameter(pl_id,'FROMDATE',TEXT_PARAMETER,VFROMDATE); -- VFROMDATE calculated from query
Add_Parameter(pl_id,'TODATE',TEXT_PARAMETER,:BLOCK50.DOCDATE);
Add_Parameter(pl_id,'VACNAME',TEXT_PARAMETER,VACNAME); -- VACNAME calculated from query
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'D:\dbr\'||vACNAME||' '||:BLOCK50.DOCDATE||'.PDF') ;
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
set_report_object_property(repid,report_filename,'D:\dbr\'||vACNAME||' '||:BLOCK50.DOCDATE||'.PDF' );
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_paresh-pc_asinst_1');
y := LENGTH ('rep_adminserver_paresh-pc_asinst_1') + 2;
x := RUN_REPORT_OBJECT (repid, pl_id);
WEB.SHOW_DOCUMENT('http://PARESH-PC:7001/reports/rwservlet/getjobid'||SUBSTR(x, y)||'?server=rep_adminserver_paresh-pc_asinst_1&userid=scott/TIGER@ORCL');
Destroy_parameter_list('tempdata');
END;
Above code doesn't show any error but report is not generated in the provided location.
Is modification to be done in the above code?
Please suggest.
Thanks in advance.
Edited by: parapr on Oct 2, 2012 1:30 AMHi,
as stated before if the desname value is pointing to the client filesystem it wont create the output there because Reports Server is not running on the client, it is running on the server as this is the way it is.
If you want to save output to the client you need to use the options mentioned before.
For testing purposes only change your code as follows.
e.g
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'c:\'||vACNAME||' '||:BLOCK50.DOCDATE||'.PDF') ;
As you can see I changed the original folder name to C:\ .. (I hope your reports serve is running on a Windows machine if not then changed to /tmp). Run your form and check c:\ or /tmp and see if you see the report output there. If so,
than your code is fine the only problem is what I have already stated.
Regards, Roberto -
Calling Report from Oracle form 11g
I am new to Forms 11g, trying to call report from Oracle forms 11g .
I want to call report from oracle forms, but its giving error.
Below is the code
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if
rep_status = 'FINISHED'
then
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
else
message ( 'error while running reports-object ' || error_text );
message ( ' ' );
clear_message;
end if;
end;
Above code giving following error :
Unable to connect to report server RptSvr
I think my report servername is wrong
Where to find report server name in 11g.
I am Using weblogic server, so can i give weblogic server name
Thanks in advance.
Edited by: parapr on Aug 17, 2012 1:52 AM
Edited by: parapr on Aug 17, 2012 3:21 AMHi,
You have to have the report server
a. Installed and configured
b. Running.
See
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
Cheers, -
Invalid report File path-crystal report
Hi Every one,
I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
Please suggest.
Thanks and Regards
DEVHi,
Not sure below SAP note related to above issue:
1710613 - CR_Multiple Data Sources Not Recognized After Importing
Multi-Database Crystal Reports
1668274 - Print Draft with Crystal Layout
Thanks & Regards,
Nagarajan -
How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?
Hi
How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?
ThanksHi
when i am going through your bleow link.
I am not able understand the 3.3.1 step :2
http://download.oracle.com/docs/cd/E15523_01/web.1111/e10240/basics.htm#i1010040
edit this file in the Web Configuration,
configuration of an application called "my_application" with a form module called "form=hrapp.fmx":
can deploy only.fmx file ?
if not how to find the realation between my_application and hrapp.fmx ?
Thanks in Adavance
Regards
Ram -
Useing Excel table genarate the report in bi publisher 11g
Hi All,
Can anyone share your ideas pls...
Using Excel files we upload the data into data set excel but could't generate the reports in Bi-Publisher 11g...we are getting the error :"Null".
We are using open office...is this could be a problem..?
Rgds..DCB
Edited by: DCB on Dec 30, 2010 5:30 AMcheck the below
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi//bip/advancedbip/advancedbip.htm#t3
http://www.youtube.com/watch?v=NPbKRnSkDVM
using rtf template
http://bipconsulting.blogspot.com/2010/02/drill-down-to-detail-or-another-report.html -
Calling parameterised reports from Oracle Forms 11g
Hi,
I wrote a procedure to call the reports as
PROCEDURE CALL_REPORT IS
BEGIN
DECLARE
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
END;
I can use this for simple reports (that reports w/o parameters) as
DECLARE
rep_name VARCHAR2(15):= 'rep_hotels';
BEGIN
:global.rep_name := rep_name;
CALL_REPORT;
END;
& This is working fine. But how to use this in parametarised reports.
I tried lyk this, procedure as (I made the parametere list id as global)
PROCEDURE CALL_REPORT IS
BEGIN
DECLARE
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
END;
& to call
DECLARE
pl_id ParamList;
par_strg VARCHAR2(500);
rep_name VARCHAR2(15):= 'rep_hotels';
BEGIN
pl_id := Get_Parameter_List('tmpdata');
:global.rep_name := rep_name;
:global.pl_id := pl_id;
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
CALL_REPORT;
END;
But this make compilation error for
:global.pl_id := pl_id;
as "expression is of wrong type"
I dont think we can make parameters as global, with out that i have to write evry thing in one as
DECLARE
pl_id ParamList;
par_strg VARCHAR2(500);
rep_name VARCHAR2(15):= 'rep_hotels';
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
:global.rep_name := rep_name;
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
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,'PARAMFORM',TEXT_PARAMETER,'NO' );
Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
, I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
can any1 suggest me a good idea to do this ?Hi,
I wrote a procedure to call the reports as
PROCEDURE CALL_REPORT IS
BEGIN
DECLARE
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
END;
I can use this for simple reports (that reports w/o parameters) as
DECLARE
rep_name VARCHAR2(15):= 'rep_hotels';
BEGIN
:global.rep_name := rep_name;
CALL_REPORT;
END;
& This is working fine. But how to use this in parametarised reports.
I tried lyk this, procedure as (I made the parametere list id as global)
PROCEDURE CALL_REPORT IS
BEGIN
DECLARE
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
END;
& to call
DECLARE
pl_id ParamList;
par_strg VARCHAR2(500);
rep_name VARCHAR2(15):= 'rep_hotels';
BEGIN
pl_id := Get_Parameter_List('tmpdata');
:global.rep_name := rep_name;
:global.pl_id := pl_id;
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
CALL_REPORT;
END;
But this make compilation error for
:global.pl_id := pl_id;
as "expression is of wrong type"
I dont think we can make parameters as global, with out that i have to write evry thing in one as
DECLARE
pl_id ParamList;
par_strg VARCHAR2(500);
rep_name VARCHAR2(15):= 'rep_hotels';
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
:global.rep_name := rep_name;
v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
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,'PARAMFORM',TEXT_PARAMETER,'NO' );
Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
END LOOP /* Wait for Report to be finished */;
IF vc_rep_status='FINISHED' THEN
:system.message_level := 5;
commit_form;
:system.message_level := 0;
web.show_document('/reports/rwservlet/getjobid'||
substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
'?server='||:global.rep_svr);
ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
message (vc_rep_status||' Report output aborted');
END IF;
END;
, I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
can any1 suggest me a good idea to do this ? -
Report with chart in 11g fails
Iam building an RTF template in Word with chart and some data. The chart is inside a group. Everything works fine from BIP desktop. When i upload the template into 11g and run the report, I get 'File does not begin with '%PDF-%' error. When i remove the chart, the report works fine in 11g. Has any one faced a similar issue? Can someone help me with this error.
Thanks in advance.Check to see if the solution offered in the following post might help you (look for "Fixing an error received on PDF generation" section):
http://www.oracleappsblog.com/index.php/weblog/printing-reports-pdf-format-oracle-applications/
Thanks,
Bipuser -
Virtual Path in WebLogic 7.0
Hi,
I would like to create a virtual path for our appalication.currently the URL is something like this :
http://a.com/blsapp/jsp/customer/Login.jsp
Now , I need to create vritual path for /blsapp/jsp/customr =>customer
So, the url would be
http://a.com/customer/Login.jsp
How to do this in Weblogic 7.0 ?.
A sample would be appreciated.
Thanks & Regards
SubuHi,
I would like to create a virtual path for our appalication.currently the URL is something like this :
http://a.com/blsapp/jsp/customer/Login.jsp
Now , I need to create vritual path for /blsapp/jsp/customr =>customer
So, the url would be
http://a.com/customer/Login.jsp
How to do this in Weblogic 7.0 ?.
A sample would be appreciated.
Thanks & Regards
Subu -
Can't invoke PL/SQL cartridge for non-default virtual path
I have a problem invoking a cartridge if the virtual path is
anything but the default (/<appName>/<cartName>).
I have tried stopping and re-starting the application server, but
that does not help.
Does anyone have a solution to this problem?
Amar.
nullElton Barendse (guest) wrote:
: Amar Pai (guest) wrote:
: : I have a problem invoking a cartridge if the virtual path is
: : anything but the default (/<appName>/<cartName>).
: : I have tried stopping and re-starting the application
server,
: but
: : that does not help.
: : Does anyone have a solution to this problem?
: : Amar.
: Hi Amar,
: Can't help you solve your immediate problem, but here's some
: food for thought ...
: Quintessence Systems Ltd (UK) have developed technology which
: automatically migrates PL/SQL procedures and packages to Java.
: This is in response to the many customers who are looking to
: move to a more open and non platform specific architecture for
: enterprise wide business logic.
: The Java code generated can be deployed in either Oracle 8i or
: in an App Server i.e. no need to wrap your existing procedures
: in a PL/SQL cartridge.
: If this is of interest, I'd be happy to put you in touch with
: our technical people to explain to technology in greater
detail.
: Elton Barendse
: CEO
: Quintessence Systems Limited
I had a similar problem and maybe it would resolve your troubles
I don't know but I configured the PL/SQL cartridge and it did
not work actually it was just a pb of virtual memory ,set your
mmory to 600M and restart all the stuff.I don't think it will
resolve the pb but think of it.
steve
null -
How to invoke crystal reports from Oracle forms 11g R2 along with passing p
How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
how to pass parameters to crystal report, please help.how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
cheers
Maybe you are looking for
-
How to make one map dependent on another ?
Assume you have 2 maps - M1 and M2 How to execute M2 automatically after successful run of M1 ? or if I have process flows PF2 start after success of PF1 without a manual intervention I looked at scheduling,.You can only set timing there but don't kn
-
IRQ problems?, especially with USB.... read this
Summary: the following things are listed to help people configure or disable USB and USB IRQ related options, some steps may help diagnose/eliminate other IRQ problems. Some Operating Systems/Motherboards may have Similiar or Alternative ways to pref
-
AppleScript: AirPort Alarm Clock
I have been programming with Unix shell scripts for some years but following is my very first AppleScript (modified through trial and error from public domain script). This script is used together with timer application Aurora as alarm clock to strea
-
Why can't i use droid4 hardware keyboard in web forms?
I have a droid4, and with aurora I can type in the url address bar with my hardware keyboard, but I can't type in forms such as usernames, passwords, message bodies, etc. With the hardware keyboard. If I change to a touchscreen keyboard then it's ok.
-
I need to create a report thru which if some of the entity did not have balance at all in previous months and have started having balance in the current month needs to be identified uniquely running a report. This way ...we can check if someone poste