-
Book Overview & Buying
-
Table Of Contents
Oracle APEX Cookbook : Second Edition
A process type plug-in extends the functionality of a page process. This can be anything, but it is typically used for APEX built-ins or Internet functionalities like e-mail sender or Twitter update. The benefit of this is that the process type plug-ins can be reused. We will create a process type plug-in which changes the language by using the apex_util.set_session_lang built-in. There are more ways to change the session language, but in this recipe we will use this built-in in a page process to demonstrate how it works.
Make sure you have an existing web page with a region.
Follow these steps:
Go to Shared Components and click on Plug-ins.
Click on the Create button.
In the Name section, enter set_language in the Name text field.
In the Internal Name text field, enter a unique name, for example, com.packtpub.set_language.
In the Type listbox, select Process.
In the PL/SQL Code text area, enter the following code:
function set_language...
Change the font size
Change margin width
Change background colour