Unit 18.1. Add Functionality to Forms

Use Dynamic Drop-Downs to Search

Drop-downs are useful tools for allowing users to quickly search for the record they would like to see, without going to a separate search screen. A drop-down can be placed at the top of a detail-level screen to allow a user to select a new record to view and refresh the screen based upon that value. Implementing this functionality requires an understanding of JavaScript events and creating multiple forms on the same page.

One of the JavaScript events described in Chapter 7, “Introduction to JavaScript,” is onChange. When a drop-down selection box changes, an onChange event handler can respond to this action. The example below shows an onChange event handler attached to ...

Get Oracle® Web Application Programming for PL/SQL® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.