APEX Developing Web Apps

  • Published on
    28-Nov-2015

  • View
    97

  • Download
    5

Embed Size (px)

Transcript

  • Oracle Application Express: Developing Web Applications

    Volume II Activity Guide

    D56782GC20

    Edition 2.0

    November 2010

    D69856

    Oracle

    Interna

    l & Ora

    cle Aca

    demy

    Use On

    ly

  • Copyright 2010, Oracle and/or its affiliates. All rights reserved. Disclaimer This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle. The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free. Restricted Rights Notice If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS The U.S. Governments rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract. Trademark Notice Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

    Authors Marcie Young, Salome Clement

    Technical Contributors and Reviewers Anthony Rayner, Bryan Roberts, Chaitanya Koratamaddi, Christina Cho, Christopher Wensley, Drue Baker, Ganesh Pitchaiah, Hailing Huang, Hilary Farrell, Iloon Ellen, Jason Straub, Jean-Paul Fillon, Joel Kallman, Linda Ross, Nancy Greenberg, Madhavi Siddireddy, Maria Billings, Matthew Gregory, Michael Hichwa, Patrick Wolf, Sharon Kennedy, Terri Jennings, Yi Lu, Wayne Abbott

    This book was published using: Oracle Tutor

    Oracle

    Interna

    l & Ora

    cle Aca

    demy

    Use On

    ly

  • Copyright 2010, Oracle and/or its affiliates. All rights reserved.

    Oracle Application Express: Developing Web Applications - Table of Contents i

    Table of Contents

    Practices for Lesson 1: Course Overview .....................................................................................................1-1 Practices for Lesson 1 ....................................................................................................................................1-3

    Practices for Lesson 2: Introduction to Oracle Application Express ..........................................................2-1 Practices for Lesson 2 ....................................................................................................................................2-3 Practice 2-1: Using Oracle Application Express as a Workspace Administrator ............................................2-4 Practice 2-2: Using Oracle Application Express as a Developer ....................................................................2-5 Practice Solution 2-1: Using Oracle Application Express as a Workspace Administrator ..............................2-6 Practice Solution 2-2: Using Oracle Application as a Developer ....................................................................2-9

    Practices for Lesson 3: Interacting with the Database by Using SQL Workshop ......................................3-1 Practices for Lesson 3 ....................................................................................................................................3-3 Practice 3-1: Using Object Browser ...............................................................................................................3-4 Practice 3-2: Using SQL Commands, SQL Scripts, and Query Builder ..........................................................3-5 Practice 3-3: Using Utilities ............................................................................................................................3-6 Practice Solution 3-1: Using Object Browser .................................................................................................3-7 Practice Solution 3-2: Using SQL Commands, SQL Scripts, and Query Builder ............................................3-19 Practice Solution 3-3: Using Utilities ..............................................................................................................3-32

    Practices for Lesson 4: Building a Database Application ............................................................................4-1 Practices for Lesson 4 ....................................................................................................................................4-3 Practice 4-1: Creating an Application from a Spreadsheet .............................................................................4-4 Practice 4-2: Creating Applications from Scratch ...........................................................................................4-5 Practice Solution 4-1: Creating an Application from a Spreadsheet ...............................................................4-6 Practice Solution 4-2: Creating Applications from Scratch .............................................................................4-16

    Practices for Lesson 5: Creating Reports ......................................................................................................5-1 Practices for Lesson 5 ....................................................................................................................................5-3 Practice 5-1: Building and Manipulating an Interactive Report .......................................................................5-4 Practice 5-2: Customizing Your Interactive Report.........................................................................................5-5 Practice 5-3: Creating a SQL Report ..............................................................................................................5-6 Practice 5-4: Creating a Wizard Report ..........................................................................................................5-7 Practice Solution 5-1: Building and Manipulating an Interactive Report .........................................................5-8 Practice Solution 5-2: Customizing an Interactive Report ..............................................................................5-42 Practice Solution 5-3: Creating a SQL Report ................................................................................................5-52 Practice Solution 5-4: Creating a Wizard Report ............................................................................................5-60

    Practices for Lesson 6: Creating Forms ........................................................................................................6-1 Practices for Lesson 6 ....................................................................................................................................6-3 Practice 6-1: Creating a Form on a Table ......................................................................................................6-4 Practice 6-2: Creating a Master Detail Form ..................................................................................................6-5 Practice 6-3: Creating a Tabular Form ...........................................................................................................6-6 Practice Solution 6-1: Creating a Form on a Table ........................................................................................6-7 Practice Solution 6-2: Creating a Master Detail Form ....................................................................................6-20 Practice Solution 6-3: Creating a Tabular Form .............................................................................................6-36

    Practices for Lesson 7: Working with Pages and Regions ..........................................................................7-1 Practices for Lesson 7 ....................................................................................................................................7-3 Practice 7-1: Working with Pages and Regions .............................................................................................7-4 Practice Solution 7-1: Working with Pages and Regions ...............................................................................7-6

    Oracle

    Interna

    l & Ora

    cle Aca

    demy

    Use On

    ly

  • Copyright 2010, Oracle and/or its affiliates. All rights reserved.

    Oracle Application Express: Developing Web Applications - Table of Contents ii

    Practices for Lesson 8: Understanding Session State and Debugging ......................................................8-1 Practices for Lesson 8 ....................................................................................................................................8-3 Practice 8-1: Understanding Session State ....................................................................................................8-4 Practice 8-2: Debugging Your Application ......................................................................................................8-5 Practice Solution 8-1: Understanding Session State ......................................................................................8-6 Practice Solution 8-2: Debugging Your Application ........................................................................................8-24

    Practices for Lesson 9: Adding Items and Buttons ......................................................................................9-1 Practices for Lesson 9 ....................................................................................................................................9-3 Practice 9-1: Adding Items and Buttons .........................................................................................................9-4 Practice 9-2: Manipulating Items ....................................................................................................................9-5 Practice 9-3: Create an Upload and Download Page .....................................................................................9-7 Practice Solution 9-1: Adding Items and Buttons ...........................................................................................9-8 Practice Solution 9-2: Manipulating Items ......................................................................................................9-27 Practice Solution 9-3: Create an Upload and Download Page .......................................................................9-51

    Practices for Lesson 10: Including Page Processing ...................................................................................10-1 Practices for Lesson 10 ..................................................................................................................................10-3 Practice 10-1: Creating and Manipulating Computations, Processes, and Validations ..................................10-4 Practice Solution 10-1: Creating and Manipulating Computations, Processes, and Validations ....................10-6

    Practices for Lesson 11: Using Application and Page Utilities....................................................................11-1 Practices for Lesson 11 ..................................................................................................................................11-3 Practice 11-1: Use the Advisor .......................................................................................................................11-4 Practice 11-2: Manage Your Attribute Dictionary ...........................................................................................11-5 Practice Solution 11-1: Using the Advisor ......................................................................................................11-6 Practice Solution 11-2: Manage Your Attribute Dictionary .............................................................................11-13

    Practices for Lesson 12: Adding Shared Components That Aid Navigation ..............................................12-1 Practices for Lesson 12 ..................................................................................................................................12-3 Practice 12-1: Creating Lists and List Regions ..............................................................................................12-4 Practice 12-2: Creating and Editing Standard Tabs .......................................................................................12-5 Practice 12-3: Managing Help Text in Your Application .................................................................................12-6 Practice 12-4: Adding Navigation Bar Entries ................................................................................................12-7 Practice 12-5: Adding Breadcrumbs and Tabs to an Existing Page ...............................................................12-8 Practice Solution 12-1: Creating Lists and List Regions .................................................................................12-9 Practice Solution 12-2: Creating and Editing Standard Tabs .........................................................................12-16 Practice Solution 12-3: Managing Help Text in Your Application ...................................................................12-22 Practice Solution 12-4: Adding Navigation Bar Entries ..................................................................................12-29 Practice Solution 12-5: Adding Breadcrumbs and Tabs to an Existing Page .................................................12-39

    Practices for Lesson 13: Displaying Dynamic Content ................................................................................13-1 Practices for Lesson 13 ..................................................................................................................................13-3 Practice 13-1: Using Dynamic Actions on Your Page ....................................................................................13-4 Practice 13-2: Importing and Using the Star Rating Plug-In ...........................................................................13-6 Practice 13-3: Creating and Modifying Flash Charts ......................................................................................13-7 Practice 13-4: Creating a Calendar ................................................................................................................13-8 Practice 13-5: Creating a Tree Whose Nodes Link to a Different Page ...............................................