Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Oracle APEX Cookbook : Second Edition
  • Table Of Contents Toc
Oracle APEX Cookbook : Second Edition

Oracle APEX Cookbook : Second Edition

4.6 (7)
close
close
Oracle APEX Cookbook : Second Edition

Oracle APEX Cookbook : Second Edition

4.6 (7)

Overview of this book

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

Creating an error handling


Since APEX 4.1, it is possible to create a custom error handling. With the custom error handling, you can not only control error messages but also the location of the message. It is also possible to log the errors. In this recipe we will show you how to create an error handling function and how to use it in APEX. We will use a form based on the EMP table. When the user enters erroneous data and clicks on the Submit button, an error message will be displayed along the concerned text item and the error will be logged in to an error table. However, when the user enters a hire date in an invalid format, the error will be logged and an error message will be displayed in the Notification area (in the upper part of the screen).

Getting ready

Make sure you have access to the EMP and APP_ERROR_LOG tables. Create a form based on the EMP table. Just follow the Create wizard and use the default settings.

How to do it…

Perform the following steps:

  1. Create the following function....

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Oracle APEX Cookbook : Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon