Book Image

Oracle APEX 4.0 Cookbook

By : Michel Van Zoest, Marcel Van Der Plas
Book Image

Oracle APEX 4.0 Cookbook

By: Michel Van Zoest, Marcel Van Der Plas

Overview of this book

<p>Oracle Application Express 4.0 is a rapid web application development tool that works with the Oracle database. Using features like Plug-ins and Dynamic Actions, APEX helps you build applications with the latest techniques in AJAX and JavaScript.</p> <p>The Oracle Application Express 4.0 Cookbook shows you recipes to develop and deploy reliable, modern web applications using only a web browser and limited programming experience. <br /><br />With recipes covering many different topics, it will show you how to use the many features of APEX 4.0.<br /><br />You will learn how to create simple form and report pages and how to enhance the look of your applications by using stylesheets. You will see how you can integrate things such as Tag Clouds, Google Maps, web services, and much more in your applications. Using Plug-ins, Dynamic Actions, BI Publisher, translations and Websheets, you will be able to enhance your applications to a new level in APEX.</p> <p>This book will show you how to be Agile in the development of your web applications by using Team Development, debugging, and third-party tools.</p> <p>After reading this book, you will be able to create feature-rich web applications in Application Express 4.0 with ease and confidence.</p>
Table of Contents (19 chapters)
Oracle APEX 4.0 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Translating data in an application


Besides the application labels, there is more to translate in an application. Data for instance.

In this recipe, we will see an example of this. To accomplish this, we will use a built-in way of translating the session language that is new in APEX 4.0.

Getting ready

Start by creating some new database objects. Remember that this is a crude setup. In a production environment, this should be more elaborate.

First, we will create a copy of the EMP table, but with a change. The JOB column will now be called JOB_NO and it's content will reference to a EMP_JOB_TITLES table.

create table EMP_LANG
(
  empno    NUMBER(4) not null,
  ename    VARCHAR2(10),
  job_no   NUMBER,
  mgr      NUMBER(4),
  hiredate DATE,
  sal      NUMBER(7,2),
  comm     NUMBER(7,2),
  deptno   NUMBER(2)
);

[emp_lang.sql]

Also create the EMP_JOB_TITLES table. This table contains a LANGUAGE column that will hold the language in which the job_title is entered for that row.

This also means...