Databases Reference
In-Depth Information
Figure 5-34.
Login and Logout buttons
Clearly it's a problem to show the Login and Logout choices at the same time. After all, only one of those two
choices can apply. Let's tackle that problem:
1.
Navigate back to the
Shared Components
section for the Help Desk application.
2.
Edit
Navigation Bar Entries
, and edit the
Logout
item.
3.
In the
Conditions
section of the page, set
Condition Type
to
User is Authenticated
(not public)
, as shown in Figure
5-35
.
Figure 5-35.
Navigation bar condition type
4.
Click
Apply Changes
.
Run the application again. You should see that the Login and Logout navigation items are mutually exclusive.
When you created the new navigation item, you applied the condition to allow it to be seen only by the public user.
The Logout navigation item was created as part of the Create Application Wizard; no condition was placed on the
Logout item by default. You learn more about conditions in Chapter 8.
Global Pages
A
Global Page
is a special type of page that acts as a “master page” for your application and can be added one per user
interface type (that is, you may have one Global Page for the desktop UI and another for the mobile UI).
Items placed on a Global Page are rendered on every page in its related UI for that application unless
conditionally told to do otherwise. This is particularly useful when you identify the need to display the same region on
multiple pages or even on all pages in your application. Simply move a region to your Global Page, and it's rendered
with every page.
A good example of usage is a breadcrumb region or a region that contains custom JavaScript code that needs to
be available to every page. Region contents from a Global Page are included on every page of that UI, even when a
region doesn't render visibly.
Although you can assign any page number to a Global Page, the default page number for a Global Page related
to a desktop interface is zero (0). In fact, Global Pages take the place of what used to be called Page Zero in previous
versions of APEX.