Utl_url.escape
Hi, I need to use the utl_url.escape function to convert some illegal characters in a url and I want to know why I get the error "FALSE: invalid identifier" when I use the function like this:
SELECT utl_url.escape('http://www.acme.com/a url with space.html', FALSE, 'UTF8')
FROM dual;
Where the first parameter is the url I want to escape, the second one indicates that I don't want to escape the reserved chars, and the third one is the target charset. I search in the documentation and this is a right way to use the function.
If I use the function without the second and third arguments, it work properly but it don't make a good conversion, I think it is because I am not indicating the target charset.
Any help will be appreciated.
UTL_URL.escape is defined as follows:
FUNCTION escape(url IN VARCHAR2,
escape_reserved_chars IN BOOLEAN DEFAULT FALSE,
url_charset IN VARCHAR2 DEFAULT
utl_http.get_body_charset)
RETURN VARCHAR2;so the second parameter is BOOLEAN which is a datatype NOT KNOWN to SQL.
You can only use this function in a PLSQL block like this e.g.:
declare
url_esc varchar2(1000);
begin
url_esc := utl_url.escape('http://www.acme.com/a url with space.html', FALSE, 'UTF8');
dbms_output.put_line(url_esc);
end;
http://www.acme.com/a%20url%20with%20space.htmlMessage was edited by:
michaels
Similar Messages
-
Boolean Parameter issue in utl_url.escape
Hello,
I am trying to use below query with 2nd parameter as TRUE but I'm getting below error.
select utl_url.escape(url => 'http://www.sample.com/ümlat.php&\^#q=name', escape_reserved_chars => TRUE) from dual;
Error:
[Error] Execution (16: 100): ORA-00904: "TRUE": invalid identifier
I should pass the parameter as TRUE ( default is FALSE)
Anyone can support me to over come from this issue.
FYI - I tried by creating a user defined function and it is working fine but I want to use directly in SELECT statement than using function.This isn't an Oracle Text question, but I can probably answer it anyway.
"TRUE" is a PL/SQL expression for a boolean datatype. There is no boolean datatype in SQL. Therefore, it is not possible to directly call a PL/SQL procedure requiring a boolean parameter from a SQL select query. You must wrap it in a procedure using only SQL datatypes, as you have suggested. -
Special characters in utl._url.escape
Hi I am using httpuri for google translator to convert into different languages.
While passing the string, to escape the white spaces, I am using utl_url.escape . But many of my words contain special characters like '+ , @ , $ , ) ,. ,; [, ] etc.
Not sure how to pass these special characters in uri type.
httpuritype
('http://translate.google.com/?hl=' ||
p_from || '&layout=1&eotf=1&sl=' || p_from ||
'&tl=' || p_to || '&text=' ||
utl_url.escape (p_words) || '#').getclob();few of my words for translation are
VALERIANA OFFICINALIS L. + HYPERICUM PERFORATUM L. + MELISSA OFFICINALIS L.
VALERIANA OFFICINALIS L. + HYPERICUM PERFORATUM L. + [ MELISSA OFFICINALIS] L.
please advise me how to pass these special characters to the URL.I am using the below mentioned tranlation function to translate into different languages
/* Formatted on 16/08/2012 21:55:39 (QP5 v5.215.12089.38647) */
CREATE OR REPLACE FUNCTION translator (p_words IN CLOB, -- words to be translated
p_to IN VARCHAR2, -- language to translate to
p_from IN VARCHAR2) -- language to translate from
RETURN CLOB
AS
l_uritype CLOB;
l_result CLOB;
BEGIN
l_uritype :=
httpuritype (
'http://translate.google.com/?hl='
|| p_from
|| '&layout=1&eotf=1&sl='
|| p_from
|| '&tl='
|| p_to
|| '&text='
|| UTL_URL.escape (p_words)
|| '#').getclob ();
l_result :=
REGEXP_SUBSTR (
l_uritype,
'<span id=result_box class="short_text"><span[^>]*>(.*)</span></span>',
1,
1,
'i',
1);
RETURN l_result;
END translator;
If i pass input with spl characters - like $ % & + etc - its all getting omited and its not getting translated because i am using UTL_URL.escape (p_words). This is escaping the special characters. But my req is to include those spl character and to get the output.
converting from german to english
select translator ('VALERIANA% OFFIC$INALIS L. + HYPERIC+$UM', 'en' , 'de' ) from dual;
without using the spl chars - program working fine.....
but if i use spl character i am not gettting o/.p
Edited by: 950814 on 30 Aug, 2012 7:48 PM -
Hello,
I'm using HTMLDB 1.5.0.00.33 on Oracle 9.2.0.6 database. The data(a sql query that populates the report page) that I want to pass as part of URL string contains special characters like #, $, % and quotes " or '. I'm using htmldb_util.url_encode() to encode the data and it works fine for special characters except for " & '. Can someone please help in this? Below sql query shows that.
SQL>select htmldb_util.url_encode('A%"#') from dual;
HTMLDB_UTIL.URL_ENCODE('A%"#')
A%25"%23
1 row selected.
Thanks
ShashinShashin,
You could try using the UTL_URL.Escape function with the escape_reserved_chars parameter set to TRUE. That should encode the reserved characters.
See the documentation here: http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_url.htm#sthref15935
If you want to call it from a SQL statement, you'll need to wrap it in a function like this:
function MyURLEscape(URL varchar2) return varchar2 is
Result varchar2(4000);
begin
Result := UTL_URL.Escape(URL, TRUE);
return(Result);
end MyURLEscape; -
Interactive report column filters drop Ampersands
We have interactive reports that include a column called status, and one of the values for status is R&R. The values are displayed properly in the report, but when the user selects the stats column filter, the value in the list is simply displayed as R, i.e. the &R has been dropped. It is 4.02.07.
Is this a known issue? if not, what is the process for submitting it as a defect?
Edited by: user12979818 on Jul 29, 2011 9:12 AMPlease then SEARCH THE FORUM.. If you think this is a defect of the tool...
Escaping the "&" character
Now instead of complaining that the tool is broken, you can also fix it by using this for your LOV..
If your LOV is dynamic (table driven) you could use this:
SELECT utl_url.escape(Display_Column,TRUE) Display Column, Returned_Column FROM LOV_TABLE;
{CODE}
Please note from this document, that & is a RESERVED/SPECIAL CHARACTER with HTML... Thus it needs be dealt with accordingly..
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/u_url.htm
Thank you,
Tony Miller
Webster, TX
On the road of life...There are 'windshields', and there are 'bugs'
(splat!)
"Squeegees Wanted"
*If this question is answered, please mark the thread as closed and assign points where earned..* -
Quotes in a page level item not showing up as " when used in a hyper link
Hi all,
In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
E.G.,
select utl_url.escape('http://oracle.com/foo"bar') from dual;
will escape/encode the quotation mark and give you:
http://oracle.com/foo%22bar
This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
Good luck. -
Calling a PL/SQL web service from a procedure
Does someone can help me , I have to call a PL//SQL web service_ but it's on a https server. It uses Oracle Wallet.
I want to know the step ( and/or the code) to be able to do so
Here's what I have :
I want to call that :
http://207.253.66.69/frsq_dev/FRSQ_NIP_EXISTS?pNOM_NAISS=Bouchard&pPRENOM=Disane&pNOM_MERE=Thibault&pSEXE=F&pDATE_NAISS_YYYY=1960&pDATE_NAISS_MM=04&pDATE_NAISS_DD=24
It's suppose to return me a string.
I have the code to do it without the https part (easy!), but I want to have the way to do it https! :
vURL := 'http://207.253.66.69/frsq_dev/FRSQ_NIP_EXISTS?pNOM_NAISS=' || pNOM_NAISS || '&pPRENOM=' || pPRENOM || '&pNOM_MERE=' || pNOM_MERE || '&pSEXE=' || pSEXE || '&pDATE_NAISS_YYYY=' || pAn_naissance
|| '&pDATE_NAISS_MM=' || pMois_naissance || '&pDATE_NAISS_DD=' || pJour_naissance;
vURL := utl_url.escape(vURL);
select UTL_HTTP.REQUEST(vURL) into resultat from dual;
-- Result should have the string I want
Thanks
Jp
Edited by: Jpmill on Jul 15, 2009 9:40 AMOracle Link
http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm
HTH
SS -
Legend map request with german umlaut
Hello,
i have a problem sending a legend map request that contains a german umlaut.
I'm trying to use the pl/sql function for sending and parsing a xml request from the mapviewer documentation (chapter 3.1.16, example 3-19).
my request looks like this
<map_request datasource="mvdemo" format="PNG_URL">
<legend bgstyle="fill:#ffffff;stroke:#ffffff" profile="MEDIUM">
<column>
<entry style="C.YELLOW" text="Übernahme"/>
</column>
</legend>
</map_request>The resulting image does not contain the umlaut Ü but a little square instead.
I tried replacing the Ü with Ü ;
<map_request datasource="mvdemo" format="PNG_URL">
<legend bgstyle="fill:#ffffff;stroke:#ffffff" profile="MEDIUM">
<column>
<entry style="C.YELLOW" text="Übernahme"/>
</column>
</legend>
</map_request>This works when i manually send the request on the mapviewer map request page, but it doesn't work when i use the pl/sql function.
The documentation says that the request has to be url encoded, so i tried using utl_url.escape on the whole request and on only the umlaut. Both doesn't work.
Thanks for help in advance,
DirkHi Cleber,
which MapViewer version are you using? This may be related with the PDF graphics library version. This library has been modified to better handle the legend texts. I tested your request and it appears to be OK with the current library. You can send me (by email) a picture of your legend, and I will confirm if this has been fixed.
Joao -
In oracle Httpuritype - Not getting the output correctly
Hi, I am trying out httpuritype in oracle for the first time. My requirement is to get the input string and the from_language and to_language and has to be converted accordingly.
I am using oracle 11.2.0.1.
So had setup acl explicitly and started writing the below program.
create or replace procedure trans_new_prc1
(p_words in varchar2, -- words to be translated
p_to in varchar2 , -- language to translate to
p_from in varchar2 ) -- language to translate from
is
l_res varchar2(2000);
l_words varchar2(2000);
txt varchar2(2000);
begin
txt:=utl_url.escape(l_words);
l_words:=regexp_substr(httpuritype('http://translate.google.co.in/?hl=en&tab=wT#'||p_from||'/'||p_to|| txt).getclob(),'"(.*?)"',1,1,null,1);
Dbms_output.put_line( l_words);
end;
While converting from polish language to english language I get the output as
SQL> exec trans_new_prc1('hen','pl','en');
text/html; charset=ISO-8859-2
But i need the exact string in polish language, which i am not getting. Please guide me.
Even while converting it into chinese language, i get the following message
SQL> exec trans_new_prc1('hen','zh-CN','en');
text/html; charset=ISO-8859-2
Please guide me to get the output exactly in chinese language.I think the problem is, google translate is not giving that info with this URL ! I removed REGEXP_SUBSTR and get all html code from HTTPURITYPE, in returned code, there is no translated word info!
for the code
exec trans_new_prc1('hen','ENGLISH','AUTO');result is:
<!DOCTYPE html><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><meta name=keywords content="translate, translations, translation, translator, machine translation, online translation"><meta name=description content="Google's free online language translation service instantly translates text and web pages. This translator supports: English, Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, Esperanto, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Kannada, Korean, Latin, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh, Yiddish"><meta name=robots content=noodp><meta name=google content=notranslate><link rel="canonical" href="http://translate.google.com/"><title>Google Translate</title><link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml?hl=en" title="Google Translate"><script>function _gtErr(e){var i=new Image();i.src='/gen204?jserr='+encodeURIComponent(e+": "+e.stack).substr(0,2000);i.onload=function(){i.onload=null;};}window.onerror=_gtErr;</script><script>(function(){var ti_a=function(b){this.t={};this.tick=function(b,c,a){a=void 0!=a?a:(new Date).getTime();this.t=[a,c]};this.tick("start",null,b)},ti_b=new ti_a;window.jstiming={Timer:ti_a,load:ti_b};if(window.performance&&window.performance.timing){var ti_c=window.performance.timing,ti_d=window.jstiming.load,ti_e=ti_c.navigationStart,ti_f=ti_c.responseStart;0<ti_e&&ti_f>=ti_e&&(ti_d.tick("_wtsrt",void 0,ti_e),ti_d.tick("wtsrt_","_wtsrt",ti_f))}
there is no "THEM" (translated word) in it. (I couldnt write whole returned info because exceed post limits.) -
Not sure if I am missing something, but should this API be setting the content type (to application/x-www-url-formencoded) when there are values present for the parameters p_parm_name and p_parm_value.
The example in the docs is to a yahoo API. I'm not sure about that particular one (see: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_web_service.htm#BABEDJHJ), and I think it requires an appid (yahoo account), so i just went with the example here:
http://developer.yahoo.com/yql/guide/yql-code-examples.html#yql_php
If I run the following from a html file on my desktop it works:
<form method="POST" action="http://query.yahooapis.com/v1/public/yql">
<input type="hidden" name="q" value="select * from upcoming.events where location='San Francisco' and search_text='dance'"></input>
<input type="hidden" name="format" value="json"></input>
<input type="submit"></input>
</form>That is, it returns a JSON result.
The raw HTTP data is as follows:
POST http://query.yahooapis.com/v1/public/yql HTTP/1.1
Host: query.yahooapis.com
Connection: keep-alive
Content-Length: 110
Cache-Control: max-age=0
Origin: null
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-AU,en;q=0.8,en-US;q=0.6
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
q=select+fromupcoming.events+where+location%3D%27San+Francisco%27+and+search_text%3D%27dance%27&format=json>
However, running the following returns nothing: (nothing, as in nothing that depends on the parameters passed in)
set serveroutput on
declare
l_c CLOB;
begin
l_c := apex_web_service.make_rest_request(
p_url => 'http://query.yahooapis.com/v1/public/yql',
p_http_method => 'POST',
p_parm_name => apex_util.string_to_table('q:format'),
p_parm_value => apex_util.string_to_table('select * from upcoming.events where location=''San Francisco'' and search_text=''dance'':json'),
p_proxy_override => 'http://192.168.1.3:8888');
dbms_output.put_line(substr(l_c, 1, 4000));
end;Raw HTTP data:
POST http://query.yahooapis.com/v1/public/yql HTTP/1.1
Host: query.yahooapis.com
Connection: Keep-Alive
Content-Length: 106
Connection: close
q=select+%2A+from+upcoming%2Eevents+where+location%3D'San+Francisco'+and+search_text%3D'dance'&format=json>
I do note a key difference is that content type isn't being set in the web service API.
This was just to test a public service. I do note that the above has slighty different request data (percentage encoding on some chars). However, I experienced the same behaviour on a procedure I had written (I can also provide this example test case if you like), which is where I first noticed the issue.
Using utl_http and setting the content type to application/x-www-url-formencoded, does resolve the issue. However, just thought i'd see the possibility of using the Web service API that is made available.
Is the example in the docs valid, or am I missing something obvious?
This is on ApEx 4.1 on the OTN Dev Days VM.
Thoughts?Hi trent,
I too have had issues with this API , so moved forward with UTL_HTTP API.
There is something amiss.
If you change your code to the one below it works.
SET SERVEROUT ON
declare
l_c CLOB;
l_param varchar2(1000) ;
begin
l_param := 'select * from upcoming.events where location=''San Francisco'' '||
' and search_text=''dance'''||'&'||'format=json';
l_c := apex_web_service.make_rest_request(
p_url => 'http://query.yahooapis.com/v1/public/yql?q='||
utl_url.escape(l_param)
,p_http_method => 'POST'
dbms_output.put_line(substr(l_c, 1, 4000));
end;
/Note the use of UTL_URL.ESCAPE. The call does not work without it.
I do not use a proxy, so that parameter does not feature in my snippet above.
Cheers,
PS: However, the below does not work. So, it appears that the p_parm_name and p_parm_value do not quite work.
SET SERVEROUT ON;
declare
l_c CLOB;
l_param varchar2(1000) ;
begin
l_param := 'select * from upcoming.events where location=''San Francisco'' and search_text=''dance''';
l_c := apex_web_service.make_rest_request(
p_url => 'http://query.yahooapis.com/v1/public/yql'
,p_http_method => 'POST'
,p_parm_name => apex_util.string_to_table('q:format')
,p_parm_value => apex_util.string_to_table(utl_url.escape(l_param)||':json')
dbms_output.put_line(substr(l_c, 1, 4000));
end;
/ Edited by: Prabodh on Oct 13, 2012 2:04 PM -
ORA-29273: HTTP request failed ORA-12535: TNS:operation timed out
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 151001371 wrote:
SQL*Plus: Release 11.2.0.3.0
Solaris 10 SPARC
Hi,
I get the following error when trying to make an HTTP request. Below is the snippet of code I run. I get the error after exactly 60 seconds(default timeout?). I searched through the forums and found many similar errors but nothing that helped me resolve this issue. The problem does not exist in the rest of our environments, only our test environment.
Help is greatly appreciated. Thanks.
DECLARE
p_mid_tier VARCHAR2 (500);
responsestr VARCHAR2 (500);
BEGIN
SELECT *****
INTO p_mid_tier
FROM *****
WHERE profile_type = '*****';
UTL_HTTP.set_wallet ('file://$ORACLE_HOME/network/admin/wallets');
UTL_HTTP.set_transfer_timeout (6000);
UTL_HTTP.set_response_error_check (TRUE);
responsestr :=
UTL_HTTP.request (
UTL_URL.ESCAPE (p_mid_tier || '*****'));
DBMS_OUTPUT.put_line (responsestr);
END;
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12535: TNS:operation timed out
ORA-06512: at line 15
the most frequent cause for TIMEOUT is a FireWall on or between client & server.
when was last time this worked without error?
what changed since then? -
Hi , all. Why that code:
select some_csv_blob
from somewhere
where someone = somewhat
v_mime:= 'text/csv';
v_file_name:= 'some_file_with_a_strange_name';
OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || v_length);
if INSTR(UPPER(OWA_UTIL.GET_CGI_ENV('HTTP_USER_AGENT')), 'MSIE') > 0 then
HTP.P ('Content-Disposition: attachment; filename="'
|| UTL_URL.ESCAPE( v_file_name, FALSE, 'UTF-8' ) || '"');
else
HTP.P('Content-Disposition: attachment; filename*=UTF-8'''''||UTL_URL.ESCAPE( v_file_name, FALSE, 'UTF-8' ));
end if;
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file(blob_content);
apex_application.stop_apex_engine;
always force browser not to download a blob file , but load into current browser window ?
Thanks in advance.Any thoughts ?
-
How to tanslate Korean to English through PL/SQL
The following blocks can translate English to Korean. But how can I translate Korean into English? utl_url.ESCAPE does not work when Korean or other double byte characters passed in.
SET define OFF
SET serveroutput ON
BEGIN
DECLARE
txt VARCHAR2(100);
tlum VARCHAR2(200);
tlum_out VARCHAR2(200);
BEGIN
txt:=utl_url.ESCAPE('This is a new world');
tlum := REGEXP_SUBSTR(httpuritype ('http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q='||txt||'&langpair=en|ko').getclob (),'".*?"' ,1,3);
DBMS_OUTPUT.PUT_LINE(tlum);
COMMIT;
END;
END;Hello,
regrettably, the Google Translation API will be closed completely on December 1. See http://code.google.com/apis/language/translate/overview.html -
RegisterSchema or XML document problem
Hi,
I would like to import some XML documents from internet. The root element in document looks like that:
<Report xmlns:p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="spds.ifr.009.PL" p1:schemaLocation="spds.ifr.009.PL http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL&rs%3aFormat=XML&rc%3aSchema=True" Name="spds.ifr.009.PL" REPORTNAME1="blablabla">
And root element in schema looks like that:
<xs:schema xmlns="spds.ifr.009.PL" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="spds.ifr.009.PL" xmlns:xdb="http://xmlns.oracle.com/xdb">
So, I have to register schema with URL from document:
http://inetsqlcg:82/ReportServer?%2fReportPublisher%2fspds.ifr.009.PL&rs%3aFormat=XML&rc%3aSchema=True
but when I'm trying to register with UTL_URL.ESCAPE I have ORA-31000 error.
I can register with UTL_URL.UNESCAPE then the SCHEMA_URL in USER_XML_SCHEMAS is:
http://inetsqlcg:82/ReportServer?/ReportPublisher/spds.ifr.009.PL&rs:Format=XML&rc:Schema=True
but when I'm loading document into XMLTable correlated with schema there is an error: ORA-19007
Any suggestion, please.
And thanks in advance.This question is best asked in the {forum:id=34} forum. Make sure to look over the FAQ first. When posting, include the dbms_xmlschema.registerschema commands you used and show any errors. Also include your Oracle version (4 digits). Also include enough of the schema to show the root node for the corresponding XML.
-
Issue with re-authentication and executing a package
We have our timeout set to 60 minutes. When I timeout and re-authenticate when on a dynamic page that executes a package onSubmit, instead of executing the package, IE tries to download it.
Has anyone ever encountered something like this and/or have any suggestions on how to deal with it?
ThanksHere's my package:
procedure set_inq_params( pPolicy varchar2 := '',
pEffDate varchar2 := '',
pFName varchar2 := '',
pLName varchar2 := '',
pAcctID varchar2 := '',
pRedirect varchar2 := ''
is
v_url varchar2(1000);
begin
pmg_session_pkg.set_session_attribute('SearchPolicy',pPolicy);
pmg_session_pkg.set_session_attribute('SearchEffDate',pEffDate);
pmg_session_pkg.set_session_attribute('SearchFName',pFName);
pmg_session_pkg.set_session_attribute('SearchLName',pLName);
pmg_session_pkg.set_session_attribute('SearchAcctID',pAcctID);
v_url:='/portal/page/portal/PMG/MY_AGENCY/AccountInqPage/AccountSummary?';
v_url:=v_url || 'PolicyNumber='||pPolicy;
v_url:=v_url || '&EffectiveDate='||pEffDate;
v_url:=v_url || '&FirstName='||pFName;
v_url:=v_url || '&LastName='||pLName;
v_url:=v_url || '&AccountID='||pAcctID;
if (pRedirect='Y') then
owa_util.redirect_url(utl_url.escape(v_url));
end if;
exception
when others then
v_url:='/portal/page/portal/PMG/MY_AGENCY/AccountInqPage';
owa_util.redirect_url(utl_url.escape(v_url));
end set_inq_params;
So it does try to redirect and I am trying to catch all exceptions...yet it still does not work correctly - only when the user has to be re-authenticated.
Maybe you are looking for
-
How to input data in a database table without knowing in advance table and column configurations
Hi, I have a problem using LabVIEW for input data (manually) in a SQL database. I have about 40 tables in the database, each of them is related to a specific engine component. I need to create a user interface (maybe visualizing the table with a tabl
-
Itunes is picking up an email address from 5 years ago. How do I change that
I'm trying to sync my itouch with my new Mac Book. It is picking up the user name of an email address I had 5 or 6 years ago. When I don't remember the password it emails it to my old email address which I don't have anymore. I can connect to my P
-
RoboHelp for Word will not show new .WMF graphics
I am working on a help file, and I have to insert equations that I would like to attach pop-ups to. I add the .wmf graphic and add the pop-up, but when I compile the image is not there. This is an older file that was converted over to Robohelp for
-
I have a fairly new iPod touch and the touch screen has suddenly stopped working..... Like the bottom row of apps has stopped working and certain buttons on the keypad are not working at all what so ever I have taken it to the apple store once before
-
Hi all, I need to know whether there is any table wherein i can see whether the particular transport request has been successfully transported to the quality or not... Or any RFC's for the same.. Please let me know...thanks for your help in advance.