-
Book Overview & Buying
-
Table Of Contents
Oracle APEX Cookbook : Second Edition
In Version 4.1, the authorization plug-in was introduced. The advantages of plug-ins are mostly reusability and declarative setup. To demonstrate the use of an authorization plug-in, we will create a page and a tab that will only be displayed when the logged user has the correct privilege, that is ADMIN. This privilege is stored in the APP_USERS table. When the user logs in and he or she has no correct privilege (ADMIN), the tab will not be displayed. On top of that, when the user tries to access that page by modifying the URL (with the concerned page number), an error message will be displayed.
Make sure you have access to an existing application and the APP_USERS table and the APP_COUNTRIES table.
Follow the given steps to create the plug-in:
Go to Shared Components.
In the User Interface section, click on Plug-ins.
Click on Create.
In the Name text field, enter is_admin.
In the Internal Name text field, enter com.packtpub.is.admin.
In...
Change the font size
Change margin width
Change background colour