Databases Reference
In-Depth Information
APEX URL Syntax
Every APEX page is a call to the APEX engine. Every APEX URL is really a call to a specific page, passing various
parameters. Figure
6-46
shows the URL syntax.
Figure 6-46.
APEX URL syntax
f?p
is the call to the
f
PL/SQL procedure passing the argument
p
. The argument is actually a concatenation of nine
arguments combined into one, delimited by a colon. The nine elements of the
p
argument are the same for all APEX
page requests. You may omit one or more of the arguments, but you must include the colon delimiters as placeholders.
The elements that form the
p
argument are as follows:
•
APP_ID
: The application number or alias
•
APP_PAGE_ID
: The page number or alias
•
APP_SESSION
: The APEX session identifier
•
REQUEST
: The HTML request
•
DEBUG
: A debug flag, set to
YES
or
NO
or omitted to use the current value of the debug flag
•
Clear Cache
: A list of pages for which to clear the cache
•
Item names
: A list of APEX item names, separated by commas
•
Item values
: A list of APEX item values, separated by commas, that correspond in order to the
items specified in the list of item names
•
Printer Friendly
: A flag that determines whether the page is rendered in Printer Friendly mode
It's easiest to understand the APEX URL syntax by looking at a few examples. Table
6-1
shows several examples
and explains them.
Table 6-1.
APEX URL Examples
f?p=&APP_ID.:10:&APP_SESSION.:::10
Calls page 10 of the current application using the current
session and clears the session cache for page 10
f?p=&APP_ID.:5:&APPSESSION.::NO::P2_ID:1234
Calls page 5 of the current application using the current
session, not in Debug mode, setting the value of
P2_ID
to 1234
f?p=&APP_ID.:5:&APP_SESSION.::YES
Calls page 5 of the current application using the current
session in Debug mode