You are on page 1of 13

Oracle Academy

Amazing Books
Part 3

Amazing Books Part 3


INSTRUCTIONS
The Amazing Books Project uses the Oracle Application Express (APEX) SQL
Workshop and Application Builder tools to build a database for the Amazing
Books bookstore. The project is divided into seven parts. Each part consists of
several steps. Each step has detailed instructions and supporting graphics.
Part 1: Building the tables and adding column constraints.
Part 2: Creating the application's pages, page style, and Popup List of Values.
Part 3: Creating the input forms and report regions for the application's
CUSTOMERS, SUBJECTS, PUBLISHERS, ITEM_TYPES pages.
Part 4: Inputting data into the CUSTOMERS, SUBJECTS, PUBLISHERS,
ITEM_TYPES tables.
Part 5: Creating the input forms and report areas for the applications ORDERS
and ITEMS pages.
Part 6: Inputting data into the Orders and Items table.
Part 7: Formatting report attributes.

Let's continue with Part 3....

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


Part 3: Creating the input forms and report regions for the application's
CUSTOMERS, SUBJECTS, PUBLISHERS, ITEM_TYPES pages.
In this section, you use the Application Builder in APEX to:

Create input forms


Create report regions on a page

Steps 3 through 9 provide instructions and graphics to demonstrate how to


create the Input Form and Report region for the Customers page.
Step 10 provides the information to create the Input Forms and Report regions
for the Publishers, Item_Types, and Subjects pages.
Step 1: Logging on to APEX.
Log on to APEX using your Workspace, Username, and Password. See your
instructor for this information and the correct URL for APEX.

Step 2: Accessing Application Builder


In the Home window of APEX, click the Application Builder icon.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


Step 3: Create the form and report region for the Customers page
Return to the Amazing Books application setup by clicking on the Amazing Books
icon or the Edit button.

Click Create Page to create a new page.

Step 4: Creating a Page with a Form Component


4.1 Choose Form and click Next.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


4.2 Select the Form on a Table with Report radio button and click Next.

Step 5: Assigning Tables to your Form/Report


5.1 Confirm the following information on the Report Page.

Implementation is Interactive.
Page name is Report on CUSTOMERS.
Region Title is Customer Report.
Region Template is No Template.
Breadcrumb is - do not add breadcrumb region to page 5.2 Click Next to continue.
5.3 Select the table on which you wish to base your Form and Report by
clicking on the Table/View Name pulldown menu and selecting the table
name from the list (in the case, CUSTOMERS).

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3

5.4 Click Next to continue.


Step 6: Tabs for your Report
6.1 Select the Do Not Use Tabs radio button and click Next to continue.

Step 7: Identifying Columns for your Report


7.1 Identify columns for the report. Each column must be moved from the
left field to the right field in order to select it for the report. By default, all of
the columns have been moved to the right field for you.

7.2 Click Next to continue.


Step 8: Confirming Properties and Titles of your Report

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


8.1 Choose any Edit Link Image you prefer.

8.2 Click Next to continue.


8.3 Make sure the Page Name and Region Title are correct.

8.4 Confirm that Primary Key Type is Select Primary Key Column(s).
Confirm that CUSTOMER_ID is the Primary Key Column 1. Click NEXT.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3

Step 9: Creating a Trigger


9.1 Choose the Existing Trigger option. Notice the information in the
Accordian Menus at the bottom. Many screens in Application Builder will
provide helpful information in this location.

9.2 Click Next to continue.


9.3 All of the columns will be included on the form page. Move them from
the left field to the right field by clicking the Right Double Arrow icon.

9.4 Click Next to continue.


Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3

9.5 Accept the defaults (Yes, Yes, and Yes) in the Identify Process Options
window and click NEXT to continue. Your Form Page may be different.

9.6 Select FINISH to create your Report and Form for the CUSTOMERS
table.

9.7 Confirm message that your Form and Report have been created.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3

9.8 Return to the AMAZING_BOOKS application main page by clicking on


the Application Number breadcrumb in the menu bar.
Step 10: Creating additional Input Forms and Reports
Repeat Steps 4-9 using the information below to create the input forms and
reports for the PUBLISHERS, ITEM_TYPES, and SUBJECTS page.
Do NOT select the Run Page icon to check your work. Step 11 will allow you to
test the results of these steps.
PUBLISHERS Form and Report
5.1 and 8.3 Enter Publishers Report as the Region Title.
5.3 Select the PUBLISHERS table.
7.1 and 9.3 Remember to select all columns.
8.4 Primary Key should be PUBLISHER_ID.
ITEM_TYPES Form and Report

5.1 and 8.3 Enter Item Type Report as the Region Title.
5.3 Select the ITEM_TYPES table.
7.1 and 9.3 Remember to select all columns.
8.4 Primary Key should be ITEM_TYPE_ID.
SUBJECTS Form and Report
5.1 and 8.3 Enter Subject Report as the Region Title.
5.3 Select the SUBJECTS table.
7.1 and 9.3 Remember to select all columns.
8.4 Primary Key should be SUBJECT_ID.
Do not create forms or reports for the Items or Orders pages at this time.
Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3

Step 11: Checking your work


The pages that you created contain an Input Form and a Report region. The
Input Form is used to enter new data into your Amazing Books database. The
Report region displays the current contents of the table(s).
To see your Input Forms, click on the Application Builder tab.

Now, click on the Amazing Books application icon.

You will see the Reports and Forms that you just created. Click the Icons View
menu to list them as Icons. To see them all, you may have to click on a link in the
bottom right corner and go to the next screen of pages.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


To test the Report you created on the CUSTOMERS table, click on the Report
on CUSTOMERS icon. You may test all the Reports and Input Forms by
following these instructions (PUBLISHERS, ITEM_TYPES, and SUBJECTS).

You now see the Page Definition for this particular report. Click on Run to see
your Customer report.

The Report region is empty at this time because you have not yet added any
customers to the table. In Part 4, you will add customers using the Input Form.
To see the Input Form, click the Create button.

To exit the empty Report region or the Input Form, click the Home button at the
bottom of the screen.

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

Amazing Books Part 3


Summary
In this section, you used the Application Builder in APEX to:

Create input forms


Create report regions on a page

Steps 3 through 9 provided instructions and graphics to demonstrate how to


create the Input Form and Report region for the Customers page.
Step 10 provided the information to create the Input Forms and Report regions
for the Publishers, Item_Types, and Subjects pages.
Finally, you tested your application to see the Report regions and Input Forms
you created.

Let's continue...

Copyright 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.

You might also like