Oracle APEX Reporting Tips & Tricks
By George Bara
2/5
()
About this ebook
From Classic to Interactive Reports, Web Services and PDF Printing, this book is must-have for all developers that want to take advantage of the Oracle APEX reporting engine.
Related to Oracle APEX Reporting Tips & Tricks
Related ebooks
Oracle APEX Best Practices Rating: 0 out of 5 stars0 ratingsOracle APEX Tips and Tricks Rating: 0 out of 5 stars0 ratingsBeginning Oracle Application Express Rating: 0 out of 5 stars0 ratingsHands-On Oracle Application Express Security: Building Secure Apex Applications Rating: 0 out of 5 stars0 ratingsMastering PL/SQL Through Illustrations: From Learning Fundamentals to Developing Efficient PL/SQL Blocks (English Edition) Rating: 0 out of 5 stars0 ratingsPHP Oracle Web Development: Data processing, Security, Caching, XML, Web Services, and Ajax Rating: 0 out of 5 stars0 ratingsOracle E-Business Suite Manufacturing & Supply Chain Management Rating: 0 out of 5 stars0 ratingsIntermediate Load Runner With Oracle/Apex Concepts. Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 1 - Oracle Basics: Database and Tools Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 3 - Coding in Oracle: SQL and PL/SQL Rating: 0 out of 5 stars0 ratingsMulti-Tier Application Programming with PHP: Practical Guide for Architects and Programmers Rating: 0 out of 5 stars0 ratingsIan Talks JavaScript Libraries and Frameworks A-Z: WebDevAtoZ, #4 Rating: 0 out of 5 stars0 ratingsOracle SQL In 10 Minutes Rating: 5 out of 5 stars5/5Oracle Visual Builder Cloud Service Revealed: Rapid Application Development for Web and Mobile Rating: 0 out of 5 stars0 ratingsIntroduction to Oracle Database Administration Rating: 5 out of 5 stars5/5A concise guide to PHP MySQL and Apache Rating: 4 out of 5 stars4/5Instant Oracle GoldenGate Rating: 0 out of 5 stars0 ratingsWb Development full course : from zero to web hero Rating: 0 out of 5 stars0 ratingsASP.NET Core 3 and React: Hands-On full stack web development using ASP.NET Core, React, and TypeScript 3 Rating: 0 out of 5 stars0 ratingsOracle® Financials Interview Questions: Unofficial Oracle Financials Certification Review Rating: 3 out of 5 stars3/5Practical Programming 6 in 1: Python Machine Learning, JavaScript, React 17, And Angular With Typescript Rating: 0 out of 5 stars0 ratingsFuelPHP Application Development Blueprints Rating: 0 out of 5 stars0 ratingsASP.NET For Beginners: The Simple Guide to Learning ASP.NET Web Programming Fast! Rating: 0 out of 5 stars0 ratingsjQuery 1.3 with PHP Rating: 0 out of 5 stars0 ratingsSQL Programming & Database Management For Noobee Rating: 0 out of 5 stars0 ratingsOracle APEX Tips and Tricks: II Rating: 0 out of 5 stars0 ratingsOracle APEX Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsOracle Application Express 3.2: The Essentials and More Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 2 - Oracle Database Design Rating: 0 out of 5 stars0 ratingsOracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook Rating: 0 out of 5 stars0 ratings
Computers For You
Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsElon Musk Rating: 4 out of 5 stars4/5The Mega Box: The Ultimate Guide to the Best Free Resources on the Internet Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsThe ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsThe Best Hacking Tricks for Beginners Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Practical Lock Picking: A Physical Penetration Tester's Training Guide Rating: 5 out of 5 stars5/5People Skills for Analytical Thinkers Rating: 5 out of 5 stars5/5Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5The Designer's Web Handbook: What You Need to Know to Create for the Web Rating: 0 out of 5 stars0 ratingsLearning the Chess Openings Rating: 5 out of 5 stars5/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsRemote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5
Reviews for Oracle APEX Reporting Tips & Tricks
1 rating0 reviews
Book preview
Oracle APEX Reporting Tips & Tricks - George Bara
Oracle APEX Reporting Tips & Tricks
GEORGE BARA
Copyright
Oracle APEX Reporting Tips & Tricks
Copyright © 2013 George Bara
First Edition
Published on May 8, 2013
All Rights Reserved.
ISBN: 978-1-304-02022-2
Introduction
Ever wanted to build a web application extremely fast, without the need of learning a new programming language? Ever wondered why it is still too complicated to quickly create web pages with forms and reports and why every Rapid Application Development tool out-there becomes rapid
only after spending a few months learning it?
Well, there is a hidden gem called Oracle Application Express (APEX) that might just be the answer for one-off web application developers, database integrators and expert programmers alike. Using a highly declarative environment you can now build professional web applications with a click-and-click approach. The real surprise here is that this tool comes from Oracle, a corporation famous for valuing expensive locked
products. APEX is free, but still not open source and has spawned of an internal project meant to make like for database developers and administrator easier.
My experience with APEX began in 2009 while working for a Life Insurance company, as an Oracle database developer. The main task was integrating multiple software systems, both internal and customer-facing. Lucky enough, all software components were using Oracle databases; hard enough there was little time and resources to develop the user interfaces in Java, .NET, PHP or any other programming language and framework. The IT manager had little experience with APEX, but great faith in its capabilities. So it began a 3-years long intensive experience with APEX 3.2, at a time when documentation was sparse, the experts were just a few and just a dozen enthusiasts were talking about APEX in public events, forums or message boards.
And so begins the history of this book. Everything that I didn’t found in Oracle documentation or forums, I had to invent
and write down. Every time I embarked on a new APEX project I would reuse what I had previously build or learn. And after I while I decided to not let all this ad-hoc documentation go to a waste, so I started a blog together with my colleague and friend Claudiu Moldovan: http://www.apexninjas.com. Part of this book was originally written either as internal documentation for my use, either as blog postings on my blog. The rest is still part of the craziness
that an Oracle developer develops while trying to accomplish sparks and glitter with a somewhat rigid development platform. I called it APEX – Reporting Tips & Tricks and that’s what it is: a collection of software experiments, workarounds and magic tricks that have helped me greatly while developing in APEX.
Meanwhile APEX has also moved in the cloud and it part of the Oracle Cloud as a hosted and managed database instance provisioned also with the latest APEX version: https://cloud.oracle.com/mycloud/f?p=service:home:0.
About the Author
Before we get started, just a little bit about me, the author.
My name is George Bara and I am currently working as a Business Consultant in the software industry. I’ve been working with Oracle products since 2006, developing software for automated logistic systems and insurance companies. I am an Oracle Certified Associate since 2008 and started working with APEX since 2009. I am passionate about Text Analytics, Big Data concepts, Statistical Machine Translation and Software Delivery Processes.
I hope you find this useful and please send me feedback at:
Email: apexninjas@gmail.com or bara_bab@yahoo.com
Website: http://www.apexninjas.com/blog/the-authors/george/
Twitter: https://twitter.com/ApexNinjas
Chapter 1: Introducing APEX
Oracle Application Express, common known as APEX, is a Rapid Application Development (RAD) tool that has reached a certain high level of maturity with the launch of version 4.0 in June 2010. APEX combines fast development cycles for web-based applications revolving around an Oracle database with a strong developer base and dedicated evangelists
promoting the technology. The programming technique is highly declarative in a web-based environment, with little programming effort required.
APEX uses a unique concept that can be considered opposite of all the current web development trends. While nowadays everything in a web application must be as loosely coupled to the database as possible, with emphasis on the client side interaction, APEX has a radical approach, as everything is stored in the database, from the data to the meta-data that generates the web pages. A web server is used to generate HTML pages directly from the database, where both the web page data and metadata is stored. Although APEX comes free of cost, all the development is done within an Oracle database using unique Oracle concepts, with all the backend processing and most of the frontend processing being performed by the Oracle database stored procedures. This unique approach is an opposite to the current web development community’s efforts, where most of emphasis is put in creating a 2.0 web stack using frameworks that would minimize the interaction between the database server and the front end.
But with its powerful web servers that facilitate the generation of web pages directly from the database, such as Oracle HTTP Server and APEX Listener, the overhead that APEX brings on generating web pages from metadata stored in the database is minimal. According to a 2006 study, generating the HTML web pages from the Oracle database induces an overhead of 0.04 second per each page (Oracle Application Express Best Practices at page. 17 http://tek.io/YeHsOL).
This introductory chapter is focused on the technology and main features of Application Express: how APEX evolved in the last years, how to get started with the product, what the technology stack is that runs behind the scenes and how to get started creating simple reports.
During the next chapters we will focus on digging deeper into Classic Reports, Interactive Reports, Reports based on Web services and PDF printing. This chapter describes how to create basic reports and what are the main features. Going into more details on customizing the reports will be done in the following chapters.
A short history of Application Express
Oracle Application Express (or APEX) was officially released in 2006, after rebranding an Oracle product known as HTMLDB. With mainly the same features as HTMLDB, Oracle Application Express has since evolved into the current 4.2 version; a powerful software development tool with a fair amount of out-of-the-box features aimed at PL/SQL developers, although Oracle database development skills are no longer a must have.
The official history of APEX begins in 2006, when HTMLDB became Oracle Application Express.
Then, in 2007, APEX 3.0 was released, introducing Flash Charts and XLS-FO based PDF printing. In 2008, version 3.1 was released with the biggest new feature being Interactive Reports, the component that became synonymous with APEX. The subsequent release, APEX 3.2, gained more popularity, becoming the known stable
version of APEX that was used to create web pages based on an Oracle Database. Version 4.0 was released in June 2010, version 4.1 in August 2011. The latest version is APEX 4.2, released in October 2012.
Even from the earlier versions of APEX, the main product features were focused on building forms and report fast and with little effort from the developer. Reporting in web based applications does not necessarily mean displaying records on the screen in a matrix-like structure. Reporting means also creating application components able to display multiple types of information, from text and numbers to images and. To use data from multiple sources, such as database tables and views or web services. To be able to download the report data in multiple formats and being able to filter, sort and apply calculations to the reports.
This first chapter will present the basics of APEX reporting and will focus on identifying the main application components for building reports. Also, I will also present the way APEX works with the different options of web servers to better understand how to choose an appropriate solution for small, medium or large reporting projects.
Getting Started with APEX
Oracle Application Express is a free Oracle product that enables developers to quickly create web based applications on an Oracle database by using just a web browser. The APEX tool runs in a web browser and allows the creation of web applications in a declarative manner, by simply selecting pre-built components, configuring them and bundling them up in a web application, all without the need to write too much code.
APEX can be downloaded from the official Oracle website, together with documentation: http://bit.ly/8ZdMSa
Although most of the underlying code is written in PL/SQL, getting started with APEX requires little knowledge of any programming language, except maybe some HTML and web basics. Being web-based, the development process consists of using a series of predefined pages and objects, from forms to reports and charts. All pages and components are based on top of Oracle objects, usually tables and views, so a schema management tool is embedded in the project. Creating tables, views and stored procedures can be done from APEX, so the entire development process can be encapsulated, at least at the early stages, within the product’s web pages.
Accessing APEX is done by accessing a URL in a browser, accessing an online development service which provides access to a virtual private database. There is nothing to install to start the development, except by the server deployment of the Oracle database and the APEX product, which is done once by the instance administrator. The developer will have to log in with a workspace name, a username and a password.
The APEX workspace start-up screen gives access to the main components:
The main components of the APEX development environment are:
Application Builder, where applications and application pages are created declaratively using wizards. Each application is composed by one or multiple pages, translated at runtime by one or multiple web resources and each page is split into several regions. Each of the page regions can contain text, custom PL/SQL, reports, charts, maps, calendars, web service references or forms. Also there are other objects that are specific not only to the pages but to the whole application, like application items, processes, computations, authentication and authorization schemes or navigation objects like tabs, lists or breadcrumbs.
SQL Workshop, a tool that enables