Book Image

Oracle APEX Cookbook

Book Image

Oracle APEX Cookbook

Overview of this book

Table of Contents (21 chapters)
Oracle APEX Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a process type plug-in


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.

Getting ready

Make sure you have an existing web page with a region.

How to do it...

Follow these steps:

  1. Go to Shared Components and click on Plug-ins.

  2. Click on the Create button.

  3. In the Name section, enter set_language in the Name text field.

  4. In the Internal Name text field, enter a unique name, for example, com.packtpub.set_language.

  5. In the Type listbox, select Process.

  6. In the PL/SQL Code text area, enter the following code:

    function set_language...