The format of the APEX URL and URL management.
Where:
To run this example application, we would use the URL:
http://pocserver01:7777/pls/apex/f?p=103:2:::::P2_MDM_SOURCE_SYSTEM_ID,P2_VENDOR_ID:SAP4,DEC-001
When users log in, they receive unique session numbers.
The REDIRECT_URL Procedure calls owa_util.redirect_url to tell the browser to redirect to a new URL. Afterwards, it automatically calls apex_application.stop_apex_engine to abort further processing of the Application Express application.
owa_util.redirect_url('http://apex.oracle.com');
apex_application.stop_apex_engine;
where:
Return the server URL where a PL/SQL script is called. (Thanks to bas)
This can only been used in a web server (ie in APEX en not in the database).
function GetApexUrl return varchar2
is
begin
return OWA_UTIL.get_cgi_env ('REQUEST_PROTOCOL') || '://'
|| OWA_UTIL.get_cgi_env ('HTTP_HOST')
|| OWA_UTIL.get_cgi_env ('SCRIPT_NAME') || '/f?p=';
end GetApexUrl;