© 2007 by prentice hall8-1 introduction to oracle 10g chapter 8 understanding and using forms...
TRANSCRIPT
© 2007 by Prentice Hall8-1
Introduction to Oracle 10gChapter 8Understanding and Using Forms Builder
James Perry and Gerald Post
© 2007 by Prentice Hall8-2
Chapter Outline
• Introduction to Forms• Creating a Simple Main Form with the Forms
Builder• Modifying Forms• Creating Tabular Forms and Sub Forms
© 2007 by Prentice Hall8-3
8.1: The Agent form for Redwood Realty shows one agent at a time
Sample forms
© 2007 by Prentice Hall8-4
8.2: The License Status form uses a grid layout to display multiple rows
© 2007 by Prentice Hall8-5
8.3: The Agent Contacts from combines a main form with a tabular form
© 2007 by Prentice Hall8-6
8.6 Web services architecture
Developer User
Database server
Application serverForms
builderName.fmb
Compiled formName.fmx
Java-enabled Web browser
Forms and data
Overview of forms architecture on the Web
© 2007 by Prentice Hall8-7
8.5 Design view of the structure of an Oracle form
Object Navigator
CanvasToolsProperty Palette
Items
© 2007 by Prentice Hall8-8
8.6 Choosing tables with the data block wizard
The Browse button gives you the list of tables
Creating a form with the wizards
© 2007 by Prentice Hall8-9
8.7 Choosing columns with the data block wizard
© 2007 by Prentice Hall8-10
8.8 Setting prompts and column widths in the layout wizard
© 2007 by Prentice Hall8-11
8.9 Choosing the number of records in the layout wizard
© 2007 by Prentice Hall8-12
8.10 Design of the initial Customer form
© 2007 by Prentice Hall8-13
8.11 First step of JInitiator setup
Running the form
© 2007 by Prentice Hall8-14
8.12 Initial Customer form and form controls
Execute QuerySelect prior or next record
Add or delete records
Save changes
Close form
© 2007 by Prentice Hall8-15
8.13 Simple form query to find all customers with a last name beginning with the letter B
Enter Query Execute Query Cancel Query
Displaying data with form queries
© 2007 by Prentice Hall8-16
8.14 Rows filtered by the query
© 2007 by Prentice Hall8-17
8.15 Object alignment options
The Layout Editor
© 2007 by Prentice Hall8-18
8.16 The object navigator
© 2007 by Prentice Hall8-19
8.17 Common form modifications
Alignment options
© 2007 by Prentice Hall8-20
8.18 Adding a static image
© 2007 by Prentice Hall8-21
8.19 Design for the Listings form
© 2007 by Prentice Hall8-22
8.20 Loading an image to the database
© 2007 by Prentice Hall8-23
Table 8.1: Property changes for query lookup values
Property New Value
Name FIRSTNAME
Prompt First Name
Prompt Attachment Offset 7
Database Item Yes
Column Name FIRSTNAME
Primary Key No
Query Only Yes
Adding lookup columns with a List Of Values
© 2007 by Prentice Hall8-24
8.21 Choosing the return item with the List of Values wizard
© 2007 by Prentice Hall8-25
8.22 List of values for selecting the listing agent
© 2007 by Prentice Hall8-26
8.23 Changing an item type to Radio Group
Adding Radio buttons
© 2007 by Prentice Hall8-27
8.24 Properties for the radio button
© 2007 by Prentice Hall8-28
8.25 Radio buttons on the form
© 2007 by Prentice Hall8-29
8.26 Setting the initial properties for a tabular form
Creating tabular forms
© 2007 by Prentice Hall8-30
8.27 Tabular design for license status values
© 2007 by Prentice Hall8-31
8.28 Creating a relationship for a main/sub form
Creating a main with sub form
© 2007 by Prentice Hall8-32
8.29 Initial main form and sub form design
© 2007 by Prentice Hall8-33
Table 8.2: Properties to change to add a display column
Property Value
Name FIRSTNAME
Enabled No
Column Name FIRSTNAME
Query Only Yes
Prompt First Name
© 2007 by Prentice Hall8-34
Table 8.3: Common entries for format masks
Formatting Character Display Effect
X Any character or digit.
A Only alphabetic characters.
9 Only numbers.
0 Only numbers and displays leading zeros.
YYYY Four digit year.
MM Two digit year number.
DD Day of month.