Databases Reference
In-Depth Information
Figure 9-22.
Setting the Tab Display Condition
4.
Repeat steps 2 and 3 for the
Tickets
,
Analysis
,
Calendar
, and
Chart
tabs. Note: for
standard Tabs, the region is simply called
Conditions
.
Run the application now, and click the Logout link. The Admin parent tab as well as the remaining standard tabs
should disappear, with the exception of the Home tab. Logging in again should restore the display of the tabs as they
were previously seen.
Access Control
APEX includes a built-in feature for creating an access-control framework with three roles: Administrator, Edit, and
View. The wizard is designed to create data structures to store the roles, pages to edit the assignments, and authorization
schemes to be used throughout an application. This wizard makes the job of creating basic security capability very easy
in an application. The summary of the objects created can be seen in Figure
9-24
as the last step in the wizard.
There are, however, downsides to using the built-in access-control mechanism. If you require more granular
access control than the Administrator, Edit, and View roles provide, then you're likely going to want to create your
own access-control mechanisms from scratch. For the Help Desk application, these roles will suffice. Here's how to
implement access control in the Help Desk application:
1.
Run the application, and click
Create
on the Developer toolbar.
2.
Select
New Page
, and click
Next
.
3.
Select
Access Control
, and click
Next
.
Enter
620
for
Administration Page Number
, and click
Next
.
4.
5.
Select
Use an existing tab set and create a new tab within the existing tab set
,
allow the
page to refresh, and then set
Tab Set
to
T_ADMIN (Users)
, as shown in Figure
9-23
.
Figure 9-23.
Assign page 620 to a new tab in the Admin tab set