-
Book Overview & Buying
-
Table Of Contents
Oracle APEX Cookbook : Second Edition - Second Edition
In our application we would also like to have an overview of all employees in the company. We can get this overview by creating a report. There are several types of reports and we just start with a simple report based on a query.
The starting point is our created application. You need an existing table, like EMP.
Some of the other types of reports will be covered in other recipes in this book. The next recipe is on interactive reports. In Chapter 8, Using Web Services, some examples of building reports on web services are explained. The Wizard Report option is not explained separately, because it just offers an easier, step-by-step way of building a report.
select * from emp
The report is ready now. You can edit the report to define the settings or you can run the report to see how it looks. The result should be something like the following:

When you look at the page in the Application Builder, you will see that APEX created a Reports region.

Sometimes in a project, the business case for a report changes. Instead of a classic report, the customer would like an interactive report. In case there are two options, remove the Current Report region and create a new one based on an interactive report or just migrate the current report using built-in functionalities.
When we are looking at the Region Definition tab of the Edit Region page, we can see a Tasks list on the right-hand side of the screen. One of the options is Migrate to Interactive Report. This migration is not a Holy Grail, but can save a lot of time in the migration process.
EMPNO in the Unique Column field and click on the Migrate button to see what happens.
In the tree view of the page, we can see that the old Report region still exists but it's labeled Disabled. The new interactive report is added as we can see it in the following screenshot:

More on interactive reports is explained in the following recipe.
Change the font size
Change margin width
Change background colour