Owa_util.redirect_url not working
Hi
I created proces ON Submit:
BEGIN
apex_application.g_unrecoverable_error := true;
owa_util.redirect_url('http://www.psoug.org', TRUE);
END;
After fired it I had
404 Not found
The requested URL /apex/wwv_flow.accept was not found on this server
when I change On Load it work.
is it posible to use it On Submit ??
I'm use Oracle XE and APEX 3.2.1
Edited by: AndyPol on 2010-06-17 16:24
Hi,
I tried your exact code in an On-Demand pl/sql page process on page 0. Currently, it is tied to an HTML button on page 0 which results in request = Go. When I log in to the application and land on page 1, I can see the button on the page in the page 0 section (top).
Eventually I would like to set a value in a drop down list, also on page 0, then click the "Go" button to be redirected to various internal and external web sites. For the moment I have excluded any use of the values in the drop down and am only testing whether clicking the go button will execute the code you indicated to take me to the psoug.org website. However, no matter how I configure the page process, whether On Submit (any option) or On Demand, clicking it just redirects me to the same page I am on (page 1).
I am currently using APEX 4.0. The Page process is defined as follows:
Sequence 0
Process Point On Demand: Run this application process when requesyed by a page process.
Name Redirect to product page
Type PL/SQL Anonymous Block
Source
Process Text
begin
apex_application.g_unrecoverable_error := true;
htp.init();
owa_util.redirect_url('http://www.psoug.org', true);
end;
Process Error Message could not process request
Conditions
Condition Type Request = Expression 1
Expression 1 Go (Have tried 'Go' and "Go" to no avail)
Authorization
Authorization Scheme No Authorization Required
Configuration No Build Option
I am fairly new to APEX and I'm sure this is something I am defining incorrectly, but I just can't seem to figure out what it is.
Any ideas? This is the only thing currently keeping from completing a project so any help would be greatly appreciated.
Thanks in advance,
Milo
Similar Messages
-
Hi,
I had this working for hours. In the process to change the redirect url somehow I changed something and the following is not working anymore. Thanks for your help.
BEGIN
IF &APP_PAGE_ID. != 101 THEN
IF :P0_JAVASCRIPT_CHECK != 'JAVASCRIPT_ENABLED' THEN
update test_data set thedata = 'I was here 1!'; -- I have confirmed that the code gets here. Since this is a test no need to explicitly commit as Apex will do it
wwv_flow_utilities.redirect_url('f?p=&APP_ID.:1:&APP_SESSION.'); -- This doesn't work!!!
update test_data set thedata = 'I was here 2!'; -- I have confirmed that the code gets here. Since this is a test no need to explicitly commit as Apex will do it
END IF;
END IF;
END;
Thanks,
PareshVarad,
Thank you for your response. As I mentioned I am not looking for the standard API docs. I am specifically looking undocumented wwv* packages. I agree some of them are not for public consumption but they are usuful and mentioned on the forums e.g. wwv_flow_utilities.redirect url (for which there is already a documented alternative owa_util.redirect_url).
I usually go through the package specs too but specs are not very clear (they are not intended as docs :)) e.g. from the spec "g_unrecoverable_error boolean := false; -- indicates error has occured which requires error page".
Your responses and help is really appreciated.
Thanks,
Paresh -
Owa_util.mime_header not working like it should
I have written a PL/SQL procedure that functions as a report using htp and htf tags. I wish to give the user the option to display the report in MS Excel. In the procedure, I have the following line:
OWA_UTIL.MIME_HEADER('application/vnd.ms-excel');
This has worked fine for me on several previous occasions, but at this particular client all I get is an output of
Content-type: application/vnd.ms-excel
in the browser, without Excel being opened.
Is there a server/DB/Portal setting that may be restricting Portal from sending this report to Excel? I'm using portal 9.0.2.6.18 on a Sun/Unix platform.I've been struggling with this too. I've ceated a test procedure which includes:
htp.init;
owa_util.mime_header('application/excel');
htp.p('ID;ORACLE;N;E');
htp.p('line 1 col 1');
htp.p('line 1 col 2');
htp.p('line 1 col 1');
htp.p('line 2 col 2');
but when I open it in Excel I get:
"Error reading record 5"
Can anyone suggest what I'm doing wrong? -
Interactive funcationality not working
Hello,
The sorting and filtering functions are not working in any interactive reports in an application. The interactive report appears when sorting or filtering, the waiting symbol is shown but there is no sorting or filtering.
I think it may have to do with the authentication.
The application is accessed from another non-apex application which uses an encrypted token to verify the user.
This is the authentication function:
create or replace function "SIMPLE"
(p_username in VARCHAR2,
p_password in VARCHAR2)
return BOOLEAN is x number;
begin
return TRUE;
end;The authentication scheme is named SIMPLE:
Page Sentry Function
return TRUE;
Login Processing/Authentication Function:
return SIMPLE;
lOGOUT url:
wwv_flow_custom_auth_std.logout?p_this_flow=&FLOW_ID&p_next_flow_page_sess=&FLOW_ID:PUBLIC_PAGE:&SESSION
I then have an application process that checks the encrypted value to either let them in or redirect to another webpage:
declare
l_hash_value varchar2(1000) := null;
l_uid varchar2(1000) := null;
begin
select hash_value into :ORIG_HASH_VALUE
from hash
where hash_value = :HASH_VALUE
-- 120 seconds
and hash_date >= (sysdate - 0.001388889)
and rownum=1;
EXCEPTION
WHEN NO_DATA_FOUND THEN
:ORIG_HASH_VALUE := 'nothing';
If :ORIG_HASH_VALUE <> :HASH_VALUE
or :ORIG_HASH_VALUE = 'nothing' then
-- perform a redirect back to the home page
apex_application.g_unrecoverable_error := true;
htp.init();
owa_util.redirect_url('http://www.myhomepage.com',true);
end if;
end;Any help is greatly appreciated!
Thanks
MattMatt,
I'm sorry that I didn't remember what I'd done for my custom authentication setup better. I'd forgotten that I have a process that also helps with this.
The process is defined to run: On New Instance (new session)
There's a condition on this process so that it only runs when the application item APP_USER_NAME is null.
Among other things, that process script does the following:
DECLARE
l_id_num VARCHAR2(10) := v('UID');
l_user_name VARCHAR2(80);
BEGIN
IF l_id_num IS NOT NULL
THEN
-- Want it for call against standard APEX_CUSTOM_AUTH.SESSION_ID_EXISTS
apex_custom_auth.define_user_session(p_user => l_id_num, p_session_id => v('SESSION'));
l_user_name := get_pref_name(l_id_num);
:APP_USER_NAME := l_user_name;
wwv_flow.g_user_known_as := l_user_name;
END IF;
END;
I can't tell you at the moment why I bother setting g_user_known_as, sorry.
I hope this helps.
Stew -
Can you set username and password when using OWA_UTIL.REDIRECT_URL?
If you have a PSP that runs under a DAD that includes username and password and therefore doesn't require users to log in and you want it to do OWA_UTIL.REDIRECT_URL to another PSP that runs under another DAD that normally requires login using basic database authentication and the first PSP already "knows" the user's username and password, is there any way to use them to skip the login dialog of the second page? Maybe hack into the request and use UTL_HTTP.SET_AUTHENTICATION somehow...?
That doesn't seem to work, and trying that kind of url directly from the browser says "invalid syntax error", so maybe Oracle appserver just doesn't let you do that.
I got the idea of trying to add an authorization header:
OWA_UTIL.MIME_HEADER(BCLOSE_HEADER => FALSE);
HTP.P( 'Authorization: Basic mybase64encodedcredentials' );
OWA_UTIL.REDIRECT_URL('myurl', FALSE);
OWA_UTIL.HTTP_HEADER_CLOSE;
...but it didn't work either and with a little further thought I guess it's obvious why: any code here modifies the response header for this request, not the request header for the redirect.
Message was edited by:
psalmu -
Oracle Portal, OWA_UTIL.redirect_url and Max Length URL
I have a question relating to the max length of a URL that can be used within Internet Explorer 5.5 and Oracle Portal (3.0.9.8.5) On IAS 9i version 1.0.2.2.2
My portal page submits to a procedure that carries out some basic DML and then uses the OWA_UTIL.redirect_url api to go to a different page.
When I am in the DML procedure, I build up several string "name/pair" values that concatenate onto my redirect url.
i.e.
str1 := 'p_test=1&p_test=2&p_test=3&p_test=4';
str2 := '&p_loc=USA&p_loc=GB&p_loc=NZ';
url := 'http://my_procedure?' || str1 || str2;
OWA_UTIL.redirect_url (url);
The problem I am having is that in some cases the length of the URL that i produce exceeds the max length permitted by Microsoft I.E 5.5 (2048 characters) and hence my redirect fails.
I understand that if i were to submit the name/pair values through the header then I could have as many as necessary and have read somewhere that it is possible while using the OWA_UTIL.redirect_url api to write values into the header and then close it.
If this is possible could someone please explain how giving an example. If not is there a workaround to this problem?
Regards
DuncanI believe that this API actually writes a redirect request into
the header of the HTTP request. For this redirect to work, the
body of the HTTP request needs to be empty (i.e. you can't have
any HTML being sent in the request).
The OWA_UTIL packages actually provide some leeway here because
it usually reorganizes requests. That gives you some
flexibility with what you can include, but I believe that you're
running into a limitation imposed by the HTTP specifications. -
Problem using owa_util.redirect_url
I thought I could use the following to branch.
However it does not work. Is there anything else
I should be doing to make this work
declare
begin
owa_util.redirect_url('f?p=294:20');
end;
HowardHi Patrick,
My application is facing with the same problem, i even tried your suggested
apex_application.g_unrecoverable_error := true; -- tells apex engine to quitBut still it didn't worked well. Is there any problem with owa_util.redirect_url() in APEX 4.1.1 newly released patch?
Also is there any other way to set homepage for an application at the time of login?
My exact requirement is, after the successful user login, my authentication scheme has post-authentication procedure, which gets the users default homepage from the table and redirects user to the retrieved homepage, like:
owa_util.redirect_url('f?p='||:APP_ID||':'||page_Number||':'||v('SESSION')||'::NO:::');Regards,
Krishna -
Drawstring is not working in Linux !!!
hi everbody
Graphics.drawString is not working properly on Linux ,
how can i fix it.
what is problem.
on XP , 10gR2 db evertything is ok. 326x160 picture and "Sample Text." seen on browser.
on Oracle Unbrakeble Linux , 11g db 326x160 picture seen on browser but "Sample Text." absent on picture !!!!!
complete code is below
Thanks.
create or replace and compile java source named java1 as
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
public class MyGraph
public static byte[] vcanvas (int width ,int height ) throws IOException
BufferedImage bimage = new BufferedImage(width,height, BufferedImage.TYPE_INT_RGB);
Graphics g = bimage.createGraphics();
g.setColor(Color.white);
g.fillRect(0, 0, width - 1, height - 1);
g.setColor(Color.red);
g.drawRect(0,0,width-1,height-1);
g.setColor(Color.black);
g.drawRect(2,2,width-3,height-3);
g.drawString("Sample Text.",10,height/2);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(baos);
jpeg.encode(bimage);
baos.flush();
baos.close();
return baos.toByteArray();
} // MyGraph
create or replace function javaimage(w number,h number) return varchar2
as LANGUAGE JAVA name 'MyGraph.vcanvas(int, int) return byte[]';
create or replace procedure imgXYZ is
vData varchar2(32767);
begin
owa_util.mime_header('image/jpeg', FALSE );
owa_util.http_header_close;
vData:=javaimage(326,160);
htp.prn(vData);
end;
http://server:port/schema/imgXYZYou have to start Http server for that :
$ $ORACLE_HOME/Apache/Apache/bin/apachectl start -
Cascading Select Lists - Not Working for me
I am trying to implement Denes Kubicek's Ajax Cascading Select List solution.
http://apex.oracle.com/pls/otn/f?p=31517:119
But it is not working for me.
I'm a newbie to APEX and checked the forum for advice on cascading select lists. I saw the thread for
"Cascading Select Lists - Not Working" posted by sue and the replies by Varad Acharya, but I'm still
having issues of not seeing the alerts, not able to run the pl/sql process in SQL Workshop, and not
getting the expected results.
I have a list of countries (US - USA, CA - CANADA, etc.) and a list of states for each country. When a
user selects a country I would like to show the list of states within that country.
This is what I've done so far:
Defined an application process:
Process Point: On Demand: Run ... by a page process.
Name: CASCADING_SELECT_LIST1
Process Text:
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<select>');
HTP.prn ('<option value="' || 99 || '">' || '- All States -'
|| '</option>'
FOR c IN (SELECT state_code || ' - ' || state_desc d, state_code r
FROM tbk_state
WHERE country_code = :cascading_selectlist_item_1)
LOOP
HTP.prn ('<option value="' || c.r || '">' || c.d || '</option>');
END LOOP;
HTP.prn ('</select>');
END;
defined and application item:
Name: CASCADING_SELECTLIST_ITEM_1
Build Option: - No Build Option -
Created a 'Form on a table with report' as follows:
Page 5: Report on TBK_HARDWARE_LOCATION
Page 6: Form on TBK_HARDWARE_LOCATION
in HTML Header of the page attributes for 'Form on TBK_HARDWARE_LOCATION' I have:
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
On Page 6: 'Form on TBK_HARDWARE_LOCATION' I have the following items (plus some others):
Name: P6_COUNTRY_CODE
Display as: Select List
HTML Form Element Attributes: onchange="get_select_list_xml1(this,'P6_STATE_CODE');"
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: COUNTRY_CODE
Named LOV: LIST OF COUNTRIES
Name: P6_STATE_CODE
Display as: Select List
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: STATE_CODE
Named LOV: - Select named LOV -
List of Values definition:
select state_code || ' - ' || state_desc d, state_code r
from tbk_state
where country_code = :P6_COUNTRY_CODE
order by 1
LIST OF COUNTRIES is defined as:
select country_code || ' - ' || country_desc d, country_code r
from tbk_country
order by 1
Now to the problem:
I run page 5 (the report) to see the list of locations and then I try to edit a record (page 6). When I
try to select a different country I get the following error (on IE):
"Problems with this web page might prevent it from being displayed properly or functioning properly.
In the future, you can display this message by double-clicking the warning icon displayed in the status
bar.
Line: 17
Char: 5
Error: Object expected
Code: 0
URL: http//cmrac4.cm.timeinc.com:7777/pls/htmldb/f?
p=114:6:1413254636072443110::::P6_HARDWARE_LOCATION_ID:2
I don't see any of the alert messages.
I also tried to run the application process code in the SQL - Command Processor (I replaced
:cascading_selectlist_item_1 with 'CA' or 'US') and got the following:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource
'http://cmrac4.cm.timeinc.com:7777/pls/...
<select><option value="99">- All States -</option><option value="X1">X1 - X1</option><optio...
Can someone help me please?Varad,
First, thank you for taking the time to try to help me with this problem.
When I view the page's source code (here are the first few lines):
<html lang="en-us">
<head>
<script src="/i/javascript/core.js" type="text/javascript"></script>
<link rel="stylesheet" href="/i/css/core.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='Would you like to perform this delete action?';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
//alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
//alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue);
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
It looks like line 17 is:
var l_Select = html_GetElement(pSelect);
I'm still not sure why I'm getting this error and why it's not working?
Thanks,
Eti -
Blob download via wpg_docload is not working
Hi,
I've installed a new oracle database server and installed Apex 4.1 recently then transferred my old data and applications from old server.
My new configurations are
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionMy oracle Enterprise Manager shows
Hosts 1 Application Servers 1
OC4J Instances 1 HTTP Server Instances 1Previously I had Apex 4.0.1 on Apex Listener via Glassfish Server and all of my applications were working perfectly. But on new installation the page which downloads report, via generating rtf code and downloading it through blob, is not working.
Declare
l_mime varchar2 (255);
l_length number;
l_file_name varchar2 (2000);
l_lob_loc blob;
l_rtf clob;
l_name varchar2(100);
-- conversion variables
l_src_offset number := 1;
l_dest_offset number := 1;
l_lang_ctx number := 0;
l_warning varchar2(32767);
begin
-- get name
select 'testrtf'
into l_name
from dual;
-- generate document
select :P16_RTF into l_rtf from dual;
--:P16_RTF contains rtf code.
-- convert to lob
dbms_lob.createtemporary(l_lob_loc, false);
dbms_lob.converttoblob(l_lob_loc, l_rtf, DBMS_LOB.GETLENGTH(l_rtf), l_dest_offset, l_src_offset, 0, l_lang_ctx, l_warning);
l_length := dbms_lob.getlength(l_lob_loc);
-- http header
owa_util.mime_header('application/rtf', false);
htp.p('Content-length: ' || l_length);
htp.p('Content-Disposition: attachment; filename="'||l_name||'.rtf"');
owa_util.http_header_close;
-- download blob
wpg_docload.download_file (l_lob_loc);
end;I've searched and found no help but it seems that there is some DAD configuration problem. my DAD file is like
<Location /pls/apex>
Order deny,allow
PlsqlDocumentPath docs
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlDatabaseConnectString db:1521:orcl ServiceNameFormat
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDefaultPage apex
PlsqlDatabasePassword ******
PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
Allow from all
</Location>and I wasn't able to find wwv_flow_file_objects$ either. Any suggestions.
Regards
Sabir
Edited by: sabir786 on Dec 29, 2011 11:37 AMThanks Joel,
not working means the rtf document produced by code does not download
and I just performed export and import of application from old server to new server.
and it still works on the old server.
and code is not altered
and debug does not show anything special. it shows that all parts are working
and it seems that process is executing and after execution there no download dialog box or file saving process.
Elapsed Execution Message Level
Graph
0.00000 0.00000 A C C E P T: Request="DOWNLOAD" 4
0.00000 0.00000 Metadata: Fetch application definition and shortcuts 4
0.00000 0.00000 NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us 4
0.00000 0.00000 alter session set nls_language="AMERICAN" 4
0.00000 0.00000 alter session set nls_territory="AMERICA" 4
0.00000 0.00000 NLS: CSV charset=WE8MSWIN1252 4
0.00000 0.00000 ...NLS: Set Decimal separator="." 4
0.00000 0.00000 ...NLS: Set NLS Group separator="," 4
0.00000 0.00000 ...NLS: Set g_nls_date_format="DD-MM-RR" 4
0.00000 0.00000 ...NLS: Set g_nls_timestamp_format="DD-MM-RR HH.MI.SSXFF AM" 4
0.00000 0.00000 ...NLS: Set g_nls_timestamp_tz_format="DD-MM-RR HH.MI.SSXFF AM TZR" 4
0.00000 0.00000 ...Setting session time_zone to +05:00 4
0.00000 0.00000 Setting NLS_DATE_FORMAT to application date format: DD-MM-YYYY 4
0.00000 0.00000 ...NLS: Set g_nls_date_format="DD-MM-YYYY" 4
0.00000 0.00000 ...NLS: Set g_nls_timestamp_format="DD-MM-RR HH.MI.SSXFF AM" 4
0.00000 0.00000 ...NLS: Set g_nls_timestamp_tz_format="DD-MM-RR HH.MI.SSXFF AM TZR" 4
0.00000 0.00000 ...metadata, fetch translated app info 4
0.00000 0.03200 ...fetch session state from database 4
0.03200 0.00000 fetch items 4
0.03200 0.00000 ...fetched 0 session state items 4
0.03200 0.00000 Authentication check: MY_AUTH (NATIVE_CUSTOM) 4
0.03200 0.00000 ... sentry+verification success 4
0.03200 0.00000 ...Session ID 3463045368955985 can be used 4
0.03200 0.00000 ...Check session 3463045368955985 owner 4
0.03200 0.00000 Setting NLS_DATE_FORMAT to application date format: DD-MM-YYYY 4
0.03200 0.01500 ...NLS: Set g_nls_date_format="DD-MM-YYYY" 4
0.04700 0.00000 ...NLS: Set g_nls_timestamp_format="DD-MM-RR HH.MI.SSXFF AM" 4
0.04700 0.01600 ...NLS: Set g_nls_timestamp_tz_format="DD-MM-RR HH.MI.SSXFF AM TZR" 4
0.06300 0.01600 ...Check for session expiration: 4
0.07900 0.00000 ...Metadata: Fetch Page, Computation, Process, and Branch 4
0.07900 0.00000 Session: Fetch session header information 4
0.07900 0.00000 ...metadata, fetch page info 4
0.07900 0.00000 ...Validate item page affinity. 4
0.07900 0.00000 ...Validate hidden_protected items. 4
0.07900 0.00000 ...Check authorization security schemes 4
0.07900 0.00000 Authorization Check: "Check Permissions" Caching: "BY_USER_BY_PAGE_VIEW" Component: "APPLICATION" 4
0.07900 0.00000 ...Execute Statement: select count(*) from dual where exists (select 1 from --omitted--) 4
0.07900 0.01500 ... passed 4
0.09400 0.00000 Session State: Save form items and p_arg_values 4
0.09400 0.00000 ...Session State: Save Item "P16_RTF" newValue="{\rtf1\ansi\deff0 {\fonttbl {\f0 Courier;}} {\colortbl;\red0\green0\blue0;\red255\green0\blue0;} \landscape \paperw15840\paperh12240\margl720\margr720\margt720\margb720 \tx720\tx1440\tx2880\tx5760 This line is the default color\line \tab this line has 1 tab\line \tab\tab this line has 2 tabs\line \tab\tab\tab this line has 3 tabs\line \tab\tab\tab\tab this line has 4 tabs\line \cf2 \tab This line is red and has a tab before it\line \cf1 \page \par\pard\tx1440\tx2880 This line is the default color and the first line on page 2\line \tab\tab This is the second tab on the second line on the second page\line \page \par\pard This is the third page with formatting examples\line \fs30 First line with 15 point text\line \fs20 Second line with 10 point test\line \i Italics on \i0 Italics off\line \b Bold on \b0 Bold off\line \scaps Small Caps On \scaps0 Small Caps Off\line \strike Stike through on \strike0 Strike Off\line \caps All Capitals On \caps0 All Capitals Off\line \outl Outline on \outl0 Outline Off\line \ul Underline on \ul0 Underline Off\line \uldb Double Underline on \ul0 Double Underline Off\line \ulth Thick Underline on \ul0 Thick Underline Off\line \ulw Underline words only on \ul0 Underline words only off\line \ulwave Wave Underline on \ul0 Wave underline off\line \uld Dotted Underline on \ul0 Dotted underline off\line \uldash Dash Underline on \ul0 Dash underline off\line \uldashd Dot Dash Underline on \ul0 Dot Dash underline off\line } " "escape_on_input="N" 4
0.09400 0.00000 ...Session State: Save Item "P16_TESTRTF" newValue="" "escape_on_input="N" 4
0.09400 0.01600 Processes - point: ON_SUBMIT_BEFORE_COMPUTATION 4
0.11000 0.00000 Branch point: Before Computation 4
0.11000 0.00000 Computation point: After Submit 4
0.11000 0.00000 Tabs: Perform Branching for Tab Requests 4
0.11000 0.00000 Branch point: Before Validation 4
0.11000 0.00000 Validations: 4
0.11000 0.00000 Perform basic and predefined validations: 4
0.11000 0.00000 Perform custom validations: 4
0.11000 0.00000 Branch point: Before Processing 4
0.11000 0.00000 Processes - point: AFTER_SUBMIT 4
0.11000 0.01500 ...Process "Download" - Type: PLSQL 4
0.12500 0.03200 ...Execute Statement: begin Declare l_mime varchar2 (255); l_length number; l_file_name varchar2 (2000); l_lob_loc blob; l_rtf clob; l_name varchar2(100); -- conversion variables l_src_offset number := 1; l_dest_offset number := 1; l_lang_ctx number := 0; l_warning varchar2(32767); begin -- get name select 'testrtf' into l_name from dual; l_rtf := '{\rtf1\ansi\deff0 {\fonttbl {\f0 Courier;}}'; l_rtf := l_rtf || '{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}'; l_rtf := l_rtf || '\landscape'; l_rtf := l_rtf || '\paperw15840\paperh12240\margl720\margr720\margt720\margb720'; l_rtf := l_rtf || '\tx720\tx1440\tx2880\tx5760'; l_rtf := l_rtf || 'This line is the default color\line'; l_rtf := l_rtf || '\tab this line has 1 tab\line'; l_rtf := l_rtf || '\tab\tab this line has 2 tabs\line'; l_rtf := l_rtf || '\tab\tab\tab this line has 3 tabs\line'; l_rtf := l_rtf || '\tab\tab\tab\tab this line has 4 tabs\line \cf2'; l_rtf := l_rtf || '\tab This line is red and has a tab before it\line'; l_rtf := l_rtf || '\cf1 \page'; l_rtf := l_rtf || '\par\pard\tx1440\tx2880'; l_rtf := l_rtf || 'This line is the default color and the first line on page 2\line'; l_rtf := l_rtf || '\tab\tab This is the second tab on the second line on the second page\line'; l_rtf := l_rtf || '\page'; l_rtf := l_rtf || '\par\pard'; l_rtf := l_rtf || 'This is the third page with formatting examples\line'; l_rtf := l_rtf || '\fs30 First line with 15 point text\line'; l_rtf := l_rtf || '\fs20 Second line with 10 point test\line'; l_rtf := l_rtf || '\i Italics on \i0 Italics off\line'; l_rtf := l_rtf || '\b Bold on \b0 Bold off\line'; l_rtf := l_rtf || '\scaps Small Caps On \scaps0 Small Caps Off\line'; l_rtf := l_rtf || '\strike Stike through on \strike0 Strike Off\line'; l_rtf := l_rtf || '\caps All Capitals On \caps0 All Capitals Off\line'; l_rtf := l_rtf || '\outl Outline on \outl0 Outline Off\line'; l_rtf := l_rtf || '\ul Underline on \ul0 Underline Off\line'; l_rtf := l_rtf || '\uldb Double Underline on \ul0 Double Underline Off\line'; l_rtf := l_rtf || '\ulth Thick Underline on \ul0 Thick Underline Off\line'; l_rtf := l_rtf || '\ulw Underline words only on \ul0 Underline words only off\line'; l_rtf := l_rtf || '\ulwave Wave Underline on \ul0 Wave underline off\line'; l_rtf := l_rtf || '\uld Dotted Underline on \ul0 Dotted underline off\line'; l_rtf := l_rtf || '\uldash Dash Underline on \ul0 Dash underline off\line'; l_rtf := l_rtf || '\uldashd Dot Dash Underline on \ul0 Dot Dash underline off\line}'; -- generate document -- select :P16_RTF into l_rtf from dual; -- convert to lob dbms_lob.createtemporary(l_lob_loc, false); dbms_lob.converttoblob(l_lob_loc, l_rtf, DBMS_LOB.GETLENGTH(l_rtf), l_dest_offset, l_src_offset, 0, l_lang_ctx, l_warning); l_length := dbms_lob.getlength(l_lob_loc); -- http header owa_util.mime_header('application/rtf', false); htp.p('Content-length: ' || l_length); htp.p('Content-Disposition: attachment; filename="'||l_name||'.rtf"'); owa_util.http_header_close; -- download blob wpg_docload.download_file (l_lob_loc); exception when others then htp.p('Error printing'); end; end; 4
0.15700 0.00000 ...Process "Ages" - Type: PLSQL 4
0.15700 0.00000 ......Skip because condition or authorization evaluates to FALSE 4
0.15700 0.00000 ...Process "Ages_table" - Type: PLSQL 4
0.15700 0.00000 ......Skip because "When Button Pressed" doesn't match with REQUEST 4
0.15700 0.00000 Branch point: After Processing 4
0.15700 0.00000 ...No branch specified, redirect to current page 4
0.15700 0.00000 Stop APEX Engine detected 4
0.15700 0.00000 Stop APEX Engine detected 4
0.15700 0.00000 Final commit 4
0.15700 - End Page Processing 4 - -
Using htp.p in Apex 4.2.2 not working in plsql region after an upgrade?
Hi
After I upgraded Apex to 4.2, in a region PL/SQL the code
htp.p('test');
not working and I've the error :
is_internal_error: true
apex_error_code: APEX.REGION.UNHANDLED_ERROR
ora_sqlcode: -6502
ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: 15577009301937579
component.name: Légende
error_backtrace: ORA-06512: at "OAS10GR2.OWA_UTIL", line 328 ORA-06512: at "OAS10GR2.HTP", line 1322 ORA-06512: at "OAS10GR2.HTP", line 1397 ORA-06512: at "OAS10GR2.HTP", line 1689 ORA-06512: at line 1 ORA-06512: at "SYS.DBMS_SYS_SQL", line 1204 ORA-06512: at "SYS.WWV_DBMS_SQL", line 1064 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
Thank you !Try using:
sys.htp.p('test');
Not sure why the synonym to HTP is referencing a HTP procedure owned by OAS10GR2 (OAS10GR2.HTP).
Did your upgrade complete successfully? -
Tab key does not work properly in Assessment mode
I am predominatly using Adobe Captivate for software simulations and assessment purposes.
I've seen similar items posted on the forums and noted this appears to be a common problem with a solution, to edit the HTM file with the code so.addParam("seamlessTabbing", "false"); see post http://forums.adobe.com/message/5283597#5283597.
I tried this with a file that was published without the need for SCORM compliance and it worked fine. Once the requirement was introduced for SCORM compliance (and to publish as a Zip file), this does not work as the code is different in the HTM file.
My file has the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright [2012] Adobe Systems Incorporated. All rights reserved -->
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="captivate.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enter Billable Time - Assessment</title>
<!-- Include external JS files -->
<script language="JavaScript1.2" src="standard.js" ></script>
<script language="JavaScript1.2" src="scormdriver.js" ></script>
<script language="JavaScript1.2" src="SCORM_utilities.js" ></script>
<script language="JavaScript1.2" src="Utilities.js" ></script>
<script language="JavaScript1.2">
//Register event handlers
window.onkeypress = CheckForDebugCommand;
window.onload = OnloadActivities;
window.onbeforeunload = Finish;
window.onunload = Finish;
document.onkeypress = CheckForDebugCommand;
</script>
</head>
<body>
<div id = "CaptivateContent">
<noscript>
This course requires JavaScript to be enabled in your browser.
Please enable JavaScript, then relaunch the course.
</noscript>
</div>
</body>
</html>
How could I edit this to disable the "seamless tabbing" referred to in the original article to make the TAB key work as intended.
Thank you.This is from my e-book:
http://www.infosemantics.com.au/troubleshoot-adobe-captivate
Notice that the procedure for Seamless Tabbing in Cp6 with SCORM is different to that for normal non-LMS courses.
Implementing Seamless Tabbing in Cp6
All Captivate versions up to and including Cp6 had Seamless Tabbing active by default and set in the HTM template code. But you can still turn it off by manually inserting some code into the published HTM file as follows:
Navigate to your published Captivate content and open the HTM file in Notepad.
Locate the line of code in the HTM file that starts with:
var so = new SWFObject(
Add the following code on the next line:
so.addParam("seamlessTabbing", "false");
Save changes to the file and test by running your project again in the browser. You should now be able to use the TAB key without leaving your published content.
Adding seamless tabbing to Cp6 SCORM support files
Seamless tabbing in Cp6 SCORM projects is a little more complex because the templates are quite different to those used for normal content. To control seamless tabbing in SCORM content you need to make the changes to the SCORM_utilities.js file in the Captivate install directory.
Depending on whether you’re on 32bit or 64bit, you should be able to find it at one of these locations:
32bit:
C:\Program Files (x86)\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish\SCORM\Default\js
64bit:
C:\Program Files\Adobe\Adobe Captivate 6\Templates\Publish\SCORM\Default\js
Open the SCORM_utilities.js file in Notepad or another suitable plain text editor. Scroll down to the end of the code until you find the following lines:
so.addParam("quality", "high");
so.addParam("wmode", CONFIG.WMODE);
so.addParam("bgcolor", CONFIG.BGCOLOR);
so.addParam("menu", "false");
so.setAttribute("name", CONFIG.SWFOBJ_NAME);
so.setAttribute("redirectUrl", CONFIG.REDIRECT_URL);
so.addParam("AllowScriptAccess","always");
so.write(CONFIG.TARGET);
Add the so.addParam("seamlessTabbing", "false"); code to this group and save the file.
If you are currently unable to save changes to these template files, my gut feeling would be that it must have something to do with your user permissions. E.g. you are not an Administrator for your own PC. Is that possible? -
Is Apex 4.0 Installation so difficult?!
Tried a basic installation a few times. It is not working. But I can remember a few months ago I had installed 3.2 successfully. I removed the entire schemas and installed a fresh Apex 4.0 installation again.
OS: Windows Vista Home Premium
Apex Installation Log file successfully shows the installation is complete
I have configured the embedded PL/SQL gateway
SELECT DBMS_XDB.GETHTTPPORT FROM DUAL - returns 9000 (which is what I want)
I have enabled network services in Oracle 11g
Inspite of all this when I give the http://hostname:port/apex, it comes with internet explorer cannot display webpage.
The troubleshooting side on the Oracle manual is small, and does not contain much information on actual troubleshooting.
Any help gratefully receivedI don't think any Oracle product is certified for Windows Home. Can you upgrade to Windows Professional? I know that I used to be able to find workarounds for earlier versions of Windows and Oracle, but I found that when I tried to install Oracle 11g and Application Express 4.0 on Windows 7 that I needed to upgrade to Windows 7 Professional. That could be your total problem. Other than that, the following is a list of things to check.
Do you have enough disk space?
Is Oracle Text installed?
Are you logged in as an operating system user with administrator privileges when doing the installation?
Did you change your working directory to your apex directory, connect sys as sysdba, and run apexins.sql, apex_epg_config.sql, apexconf.sql, and apexchpwd.sql?
Are there any errors in the installation log or does it say "Thank you for installing Oracle Application Express..." indicating it completed successfully?
Are the apex accounts unlocked and have you granted connect privileges?
Did you try re-starting your computer?
Are all the Oracle services started? You can check from control panel -> system and security -> administrative tools -> services.
Are you connected to the internet?
Are you using internet explorer 7.0 or higher?
Do you get the correct results from the follwing:
select status from dba_registry where comp_id = 'APEX';
should show valid
select dbms_xdb.gethttpport from dual;
should show the port you selected
select owa_util.get_version from dual;
should show version 10.1.2.0.6 or later
show parameter job_queue_processes
should be 1000
show parameter memory_target
show parameter shared_pool_size
either memory_target value should not be null or shared_pool_size >= 100 mb -
How to set an item when I redirect using OWA_UTIL.redirect_url
I am using OWA_UTIL.redirect_url to redirect users.
but I am lost in how do I set an item doing this. I have an item called :P101_MSG and I want to set it to 1.
I added &:P101_MSG=1 this: OWA_UTIL.redirect_url ('f?p=&APP_ID.:101:&SESSION.*&:P101_MSG=1* ');
but that was wrong.
Can someone tell me the syntax to set P101_MSG=1 when I redirect.
HowardHi
I'm not quite sure of what you're doing or where you are but this isn't how you set APEX items in the URL.
See this example
f?p=:&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::P1_ITEM1,P1_ITEM2:A,BThis sets item1 = A and item 2 = B.
Is this what you mean (make sue you get the number of colons correct...
Cheers
Ben -
Call muliple times wpg_docload.download_file is not working
Trying to loop thru blobs of data that I want to download, can download 1 file but trying to call this piece of code multiple times doesn't work on the second call
declare
Lob_loc BLOB;
Lob_loc1 BLOB
begin
select blob_data
into Lob_loc
from nextgen_ods.ods_data_files
where file_name = :P1_FILE_NAME;
owa_util.mime_header( nvl('BINARY','application/octet'), FALSE );
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(:P1_FILE_NAME,instr(:P1_FILE_NAME,'/')+1),chr(10),null),chr(13),null)|| '"');
owa_util.http_header_close;
wpg_docload.download_file(Lob_loc);
select blob_data
into Lob_loc1
from nextgen_ods.ods_data_files
where file_name = :P1_FILE_NAME;
owa_util.mime_header( nvl('BINARY','application/octet'), FALSE );
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr('myFile',instr('myFile','/')+1),chr(10),null),chr(13),null)|| '"');
owa_util.http_header_close;
wpg_docload.download_file(Lob_loc1);
end;Yes, this will not work.
Not fault of wpg_docload.download_file() though - you are not creating a valid Mime stream response with your code. You cannot pass 2 files back like that to the web browser as a single HTTP response. Not valid.
What is a valid response? It is one with a correct header and body.
What response does your code attempt to create? A <i>header + body + header + body</i>. This violates HTTP specs and will not work.
Maybe you are looking for
-
Hi everyone I keep hearing about problems with PC-Cards mediareaders. So I just wanted to hear from people with experience on this specific product. I only use SanDisk Ultra II CF-Cards. Best regards Sofus Bech
-
Sending photos from PC to iPod w iCloud?
So, according to Apple you can send photos to your iDevices from PC and the other way with iCloud, from iPod to laptop works, but when I tried to send from laptop to iPod nothing happends. Maybe I put the photos in the wrong folder? Which folder shou
-
I am a student and am doing a project on converting java syntax which is in english into my own language which is urdu. the problem is that i am not able to read a single word from java class file inorder to get the specified bytecode. please provide
-
What is an easy way to transfer the pictures and music from my old iPhone 4S to my new one?
I've recently got a new iPhone 4S and I want to transfer the pictures and music from my old iPhone to this one. Is there a simple way to do this? If there is could you possibly give me a step by step answer - thank you!
-
License API and Corba to COM bridge
Guys, We'd like our B1 tool (uses DI API and DI Server) to be able to get from the B1 license server how many licensed users there are (professional users). With a bit of investigation, I've found that there is a License API, however being CORBA base