Using SRW Package - Help
Hello All,
I've designed web based reports having a web layout. The user usually navigates from one report to another by way of ">
<th <rw:id id="HFMONTH131" breakLevel="RGMONTH1313" asArray="yes"/> class="OraRowHeader" style="font-weight: normal" ><rw:field id="FMONTH131" src="MONTH" breakLevel="RGMONTH1313" breakValue=" " formatTrigger="STYLE1"> F_MONTH </rw:field></th></a>
I'm aware of reports being opened,errors captured,messages displed & programs aborted using the various srw packages when called from inside a program unit.
Is there a way to call a program unit when the user clicks on a particular field which is supposed to be a link to another report instead of the above mentioned hyperlink method. Like for instance we have a formatTrigger for calling a program unit written for manipulating the format of the output.
Regards,
Arun.V
Hello,
Web Layout only exists in Reports versions >= 9.0.2. In these versions, the object "Button" no more exists.
When the output is displayed, the reports execution is terminated, so it is not possible to call a program unit when the user click on a field.
In the Reports Online Help:
Note: The ability to create a button in the Paper Layout view is no longer supported in Oracle Reports 10g. Use hyperlinks instead. If you open an existing report that contains buttons, the buttons will be converted into text items.
Regards
Similar Messages
-
Using SRW package to send a report via email
Hi,
Please can someone please help me resolve this issue I have been facing in using the srw package
I have configured a report server and was trying to use the srw package to send a report out to our customers when there is an update on a particular table.
I have succesfully use this same procedure to generate the same report to an output file and it was ok but anytime I try to generate the report as a mail and send to a DESNAME, i get mail server unavailable.
Below is the procedure i try to execute:
procedure testrep(new_name in varchar2) as
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
BEGIN
myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.add_parameter(myPlist,'GATEWAY','http://technorth4:7780/reports/rwservlet');
srw.add_parameter(myPlist,'SERVER','rep_technorth4');
srw.add_parameter(myPlist,'REPORT','c:\gens\name.rdf');
srw.add_parameter(myPlist,'USERID','gens/[email protected]');
srw.add_parameter(myPlist,'AUTHID','orcladmin/password1@orcl');
srw.add_parameter(myPlist,'DESTYPE','MAIL');
srw.add_parameter(myPlist,'DESFORMAT','PDF');
srw.add_parameter(myPlist,'FROM','[email protected]');
srw.add_parameter(myPlist,'DESNAME','[email protected]');
srw.add_parameter(myPlist,'T1',new_name);
myIdent := srw.run_report(myPlist);
END;
when i now start debugging i got this error:
SQL> set serveroutput on
SQL> exec srw.start_debugging
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
* Debugging turned ON **************************
PL/SQL procedure successfully completed.
SQL> exec testrep('TOPE');
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://technorth4:7780/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : SERVER=rep_technorth4
*** Length of Paramlist : 3
OK : Parameter added : REPORT=c:\gens\name.rdf
*** Length of Paramlist : 4
OK : Parameter added : USERID=gens/[email protected]
*** Length of Paramlist : 5
OK : Parameter added : AUTHID=orcladmin/password1@orcl
*** Length of Paramlist : 6
OK : Parameter added : DESTYPE=MAIL
*** Length of Paramlist : 7
OK : Parameter added : DESFORMAT=PDF
*** Length of Paramlist : 8
OK : Parameter added : [email protected]
*** Length of Paramlist : 9
OK : Parameter added : [email protected]
*** Length of Paramlist : 10
OK : Parameter added : T1=TOPE
Starting run_report: building url
*** Building URL (RUN_REPORT)
OK : URL built :
http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5Cg
ens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpassw
ord1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&D
*** Submitting HTTP Request
*** using URL
:http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5C
gens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpass
word1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&DES
OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<error code="50138"
component="REP" message="Mail server is not available"/>
</serverQueues>
OK : Request submitted - Length of stream : 182
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
error
*** Checking attributes!
__code = 50138
__component = REP
__message = Mail server is not available
*** Finished Parsing XML
Getting value for element: job
Getting value for element: error
*** Requesting value for Attribute error.component [REP]
Getting value for element: error
*** Requesting value for Attribute error.code [50138]
Getting value for element: error
*** Requesting value for Attribute error.message [Mail server is not available]
REP-50138:Mail server is not available
BEGIN testrep('TOPE'); END;
ERROR at line 1:
ORA-20999:
ORA-06512: at "GENS.SRW", line 284
ORA-06512: at "GENS.SRW", line 815
ORA-06512: at "GENS.TESTREP", line 17
ORA-06512: at line 1
Please can someone help me with this. I can connect to the mail server using the telnet mailservername port,i get a 220 message with ***** .
I have updated d report configuration file with the mailserver name, and d proxyinfo.xml too.I put it to bypass proxy for d mail server address and also inlclude the proxy ip and port.
Kindly assist me as it is urgent.
Thank you.You are in the wrong forum. Please try the Reports.<br><br>
Regards,
Rob. -
Help finding and using a package
hi guyz,
Iam new to this forum and i need this info urgently. so plz try to help me.
I want to use the package below in an applet to convert my TemporaryRegistrationPermit to create a PNG file and then print it.
how can i get the above package. I searched a lot on net and even on IBM website but never found it. How can i get it and include the class file in an applet and use the methods in it.Is there any other way to include this package in my applet, i mean a URL pointing to this class file.
package com.ibm.gs.houston.saz.trp.utils.TemporaryRegistrationPermit
I would really appreciate an early reply
thank you
tarunHow do you know you need this package ? You know the path to it, so you must have seen it referenced somewhere.
Some background please, but it sounds like it's an IBM internal class of some sort, so I wouldn't get your hopes up unless you have legitimate access to this or know it to be freely available.
D. -
SRW package not working in Reports 10g (9.0.4)
Dear All,
I am using reports services 10g (9.0.4) for RHEL o/s.we are using SRW pkg in our reports heavily.But when we compile reports in Linux it is showing errors like SRW.message ,SRW.set_field_char,SRW.set_format_mask must be declared.
Though these functions are well written in reports help,it is not at all supporting these functions.
What is solution for this for successfull compilation of reports??
Regards-
Onkar Vidwans
INDIAYour not seeing the built in package for some reason.
Maybe they are missing on your Linux machine.
Reinstall reports there? Examing your environment variables?
Is that rwrun.jar anywhere? -
SRW Package in Reports 2.5
I am having trouble running SRW.RUN_REPORT from batch mode in PL/SQL. First of all, I'm having trouble locating the SRW package that is standard in Reports 2.5, in order to to create the package. Do I need to locate the Version 2.5 disk and try a reinstall? Or is it as simple as creating a Public Synonym?
The PL/SQL code is: SRW.RUN_REPORT (module=mname batch=yes....
The Error is: "module" must be declared.
This tells me that the SRW package is not known. Else it would not ask me to make a declaration of the keyword "module". Big Thanks to anyone who can help.What are the default location for log files,trace for forms server and reports server in weblogic.That depends on which Reports Server you are using (Standalone or Inprocess). Here are the locations for both:
Standalone*
$ORACLE_INSTANCE/diagnostics/logs/ReportsServerComponent/<Name of Report Server>/
In-Process*
$DOMAIN_HOME/servers/WLS_REPORTS/logs/reports/
Craig... -
Error while sending a mail using UTP_MAIL package in Oracle 10g
Hi,
We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
SQL> connect sys/password as sysdba
Connected.
SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
Package created.
Synonym created.
SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
Package body created.
SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
System altered..
Now we try the code
begin
utl_mail.send(
sender => 'sender's mail',
recipients => 'receiver mail',
CC => 'optional',
subject => 'Testing utl_mail',
message => 'Test Mail'
end;
But we get the following error...
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 97
ORA-06512: at "SYS.UTL_SMTP", line 139
ORA-06512: at "SYS.UTL_MAIL", line 405
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 2
We also tried connecting to the mail server through telnet .But it is not getting connected..
Please help us to solve the issue.From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
"Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID: Note:4083461.8"
This was fixed on 10gR2 base and on 9.2.0.8.0
~ Madrid -
Error while using UTL_FILE package
I am getting error while using UTL_FILE package in apex 3.0 version
Pls help me out.ok, how are you using UTL_FILE and what is the error?
-
Error using dbms_redefinition package
Hi,
I am trying to use dbms_redefinition package to add a column to a table using primary key method
SQL> conn / as sysdba
Connected.
SQL> grant execute on sys.dbms_redefinition to hr;
Grant succeeded.
SQL> grant dba to hr;
Grant succeeded.
SQL> conn hr/<password>
Connected.
SQL> create table tab1(roll_no number constraint roll_pk primary key,last_name varchar2(30));
Table created.
SQL> insert into tab1 values (1,'Hall');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into tab1 values (2,'Mall');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into tab1 values (3,'Roll');
1 row created.
SQL> commit;
Commit complete.
Adding required column
SQL>
SQL> alter table tab1 add(first_name varchar2(30));
Table altered.
Checking if table can be redefined
SQL> exec dbms_redefinition.can_redef_table('HR','TAB1',DBMS_REDEFINITION.CONS_USE_PK);
PL/SQL procedure successfully completed.
Creating interim table
SQL> create table tab2 as select roll_no,first_name,last_name from tab1 where 1=2;
Table created.
Adding primary key to interim table
SQL> alter table tab2 add constraint roll_pk_1 primary key (roll_no);
Table altered.
Starting redefinition :
SQL> exec dbms_redefinition.start_redef_table('HR','TAB1','TAB2','ROLL_NO,FIRST_NAME,LAST_NAME');
BEGIN dbms_redefinition.start_redef_table('HR','TAB1','TAB2','ROLL_NO,FIRST_NAME,LAST_NAME'); END;
ERROR at line 1:
ORA-00439: feature not enabled: Advanced replication
ORA-06512: at "SYS.DBMS_REDEFINITION", line 52
ORA-06512: at "SYS.DBMS_REDEFINITION", line 1646
ORA-06512: at line 1
SQL>
Could you please help.
Thanks,
HaiderYou can, yes. That's why CAN_REDEF_TABLE and START_REDEF_TABLE both have an OPTIONS_FLAG argument that lets you specify whether you want to use the primary key or the ROWID to redefine the table.
SQL> drop table foo;
Table dropped.
SQL> create table foo( col1 number, col2 number );
Table created.I can't redefine the table using the primary key since there is no primary key
SQL> ed
Wrote file afiedt.buf
1 begin
2 sys.DBMS_REDEFINITION.CAN_REDEF_TABLE ( 'SCOTT', 'FOO' );
3* end;
SQL> /
begin
ERROR at line 1:
ORA-12089: cannot online redefine table "SCOTT"."FOO" with no primary key
ORA-06512: at "SYS.DBMS_REDEFINITION", line 139
ORA-06512: at "SYS.DBMS_REDEFINITION", line 1782
ORA-06512: at line 2But I can use the ROWID
SQL> ed
Wrote file afiedt.buf
1 begin
2 sys.DBMS_REDEFINITION.CAN_REDEF_TABLE ( 'SCOTT', 'FOO', dbms_redefinition.cons_use_rowid );
3* end;
SQL> /
PL/SQL procedure successfully completed. Justin -
Error logging using DBMS_ERRLOG package
Hi All,
We have following tables, which are growing day-by-day and giving performance problems.
There are total 25 tables (1 parent and 24 child tables, with different structures).
Here i gave some Samples, NOT actual table structures.
Actually we don't require all the data for our regular activities.
So we thought of moving part of the data into Other (Archive) tables, on daily basis.
Using SOME criteria, we are finding eligible records to be moved into Archive tables.
All child records follows the Parent.
Original Tables
==================
create table customer (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders (o_id number(5),c_id number(5),o_info clob);
create table personal_info (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Archive Tables
==============
create table customer_arch (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders_arch (o_id number(5),c_id number(5),o_info varchar2(100));
create table personal_info_arch (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Temp table
==========
create table C_temp (rnum number(5), ids number(5));
Sample Code
============
PROCEDURE payment_arch
IS
l_range_records NUMBER (4) := 2000;
l_total_count NUMBER(10) := 0;
l_prev_count NUMBER(10) := 0;
l_next_count NUMBER(10) := 0;
BEGIN
--Finding eligible records to be moved into Archive tables.
INSERT INTO C_TEMP
SELECT ROWNUM,c_id FROM customer;
SELECT NVL(MAX(ID),0) INTO l_total_count FROM OPP_PAYMENT_ID_TEMP;
IF l_total_count > 0 -- Start Count check
THEN
LOOP -- Insert Single payments
IF ((l_total_count - l_prev_count) >= l_next_count )
THEN
l_next_count := l_prev_count + l_range_records;
ELSE
l_next_count := l_total_count;
END IF;
l_prev_count := l_prev_count ;
INSERT INTO customer_ARCH
SELECT * FROM customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO orders_ARCH
SELECT * FROM orders a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO personal_info_ARCH
SELECT * FROM personal_info a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
-- Delete Archived Single Payments
DELETE customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE ID BETWEEN l_prev_count AND l_next_count);
COMMIT;
IF l_next_count = l_total_count
THEN
EXIT;
else
l_prev_count := l_next_count;
END IF;
END LOOP; -- Insert Single payments
END IF; -- End Count check
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR('-20002','payment_arch: ' || SQLCODE ||': ' || SQLERRM);
END Payment_Arch;
In production, we may require to archive 25000 Parent records and 25000*4*3 child records per day.
Now the problem is:
By any chance, if record fails, We want to know the Exact record ,just "c_id" for the particular table
where the error raised and Error message.
We thought of using DBMS_ERRLOG package, but we CAN NOT log errors of Different tables into SINGLE error log table.
In the above case It require 3 Different tables and it logs all columns from the original table.
It's a un-necessary burden on the database.
We would be very glad, if anyone can help us with some good thought.
Thanks in advance.
srinivasduplicate post
Insufficient privilege error when executing DBMS_ERRLOG through PLSQL -
Error while using DBMS_XMLSave package...
Hi All,
I am using DBMS_XMLSave package and when I try to execute the following code, it is giving me error "Java call terminated by uncaught Java exception:"
I am executing following code ....
declare
insCtx DBMS_XMLSave.ctxType;
begin
insCtx := DBMS_XMLSave.newContext('scott.emp');
end;
I am getting following error ...
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.ExceptionInInitializerError
ORA-06512: at "SYS.DBMS_XMLSAVE"
ORA-06512: at line
Please help me to overcome the problem....
Thanx in advance ,
YogeshFound maybe an applicable reference...
On http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Java_2_Connectivity_(J2C)/1163246.html
it says:
* Application code is missing a setXXX method call somewhere.
* There might be a problem in the Oracle JDBC driver code.
If the latter is the problem than you should or try a different JDBC driver or (which is probably the best solution anyway) create an iTar with Oracle support via metalink.oracle.com
Other references can also be found on the internet when using google which could be applicable. Search on keywords: "Missing IN or OUT parameter at index"
Message was edited by:
mgralike -
Using Oracle Packages in Oracle BI EE
I am trying to replicate old Discoverer reports in Oracle BI EE. In the old Discoverer reports, they would include the package and function information in the SELECT statement of the SQL. When I try to import the database information in BI EE, I can only get table and view information, not the packages. How do you access and use Oracle packages in BI EE? Thanks in advance for any help you may be able to provide.
If you have OBIEE 10.1.3.3 OBIEE you can use BI built-in EVALUATE function to call user-defined functions in database.
This function is intended for scalar and analytic calculations.
Syntax: EVALUATE('DB_Function(%1)', <Comma separated Expression>)
Example: SELECT e.lastname,sales.revenue,EVALUATE('dense_rank() over(order by %1 )',sales.revenue) FROM sales s, employee e; -
Need to generate the excel file with diffrent sheets using utl_file package
Hi,
Sorry for previous message in which I had missed the usage of " UTL_FILE " package
I need to generate the excel file with diffrent sheets . Currently I am generating the data in three diffrent excel files using
" UTL_File " package and my requirement is to generate this in a single excel file with diffrent sheets.
Please help on this
Thanks & Regards,
Krishna VyavahareHello 10866107,
at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the packages behind second and fourth link support more than one worksheet.
Regards
Marcus -
How could I Encrypt the data of SDO_GEOMETRY type using DBMS_CRYPTO package
Hi:
I want to Encrypt the data of SDO_GEOMETRY object type using DBMS_CRYPTO package.
What could I do? hope anyone can help me,give me a suggestions!
thanks in advance.
lgswell, the spatial api would not be able to handle this data anymore, so what you are trying to do is converting an SDO_GEOMETRY to some cryptable user type (see http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm#sthref1506) and encrypting this.
Before using the SDO_GEOMETRY type will have to decrypt and reconvert it again and pass it to the spatial query or function. -
Error while using Copy Package
Hi,
I want to copy data from category BudgetV1 to BudgetV2,
I have tried to use Copy Package but I always get error with
error message "The file is empty".
Can anyone help me with the problem?
Thanks in advance.Hi,
Please check if you have data in category BudgetV1. This error normally occurs when there is no data in source specified in COPY package. Make sure to select appropriate members when you specify other source dimensions.
Hope this helps.
Regards,
Shoba -
Error while using Mail Package for dynamic email address - XMLScanException
Hi All,
i am trying to implement File_to_Mail Scanrio. Here i am using mail package stuff to make use the dynamic mail Id's. i am following the blog /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address. i have finished all the settings as per the blog but it throwing the following error
failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found Mail at state 1
Please help me to resolve this error.
Thanks in advance
-Siva
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 21, 2008 5:59 AMHi Siva
check with these threads discuss the same XMLScanException
Mail adapter fails when using Mail Package Format
Error in E-mail Adapter - Message protocol XIALL
Mapping Error with mail package
Error in Mail Adapter
See the below links also
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Error in Mail Adapter
Mapping Error with mail package
Regards
Abhishek
Maybe you are looking for
-
How do I remove the black background when displaying photos in iphoto 8
After upgrading to iphoto 8 my photos now sit on a black background when viewed from album, library or events. I have changed the slider from black to white in Preferences/Appearance but it only changes the display background for when the thumbnails
-
CRM_ORDER_MAINTAIN Save Function problem
Hi We are trying to create Grantor applications in SAPM CRM 6.0 using Function Module CRM_ORDER_MAINTAIN. From an ABAP program we are passing the parameters in order to recreate the same scenario that is used in the Standard SAP CRM Web to crea
-
New hard drive - Ccleaner still preferred registry cleaner?
Folks, Turning chicken **** here into chicken salad. I ordered two WD Caviar Black drives to set up in a simple two-disk RAID 0 array and found out after purchase these drives are firmware disabled by WD for RAIDing by some gremlin called WDTLER. We
-
Greetings....I have tried to down load pictures from both my camrea as well as the flash card and the reader or the camera will not mount. The only thing that happens is the computer becomes non responsive and I have to shut down useing the power but
-
HT1420 how to transfer music and pictures from iphone to computer
how to transfer music and pictures from iphone to computer