© 2007 by Prentice Hall8-1 Introduction to Oracle 10g Chapter 8 Understanding 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 Hall : The Agent form for Redwood Realty shows one agent at a time Sample forms
© 2007 by Prentice Hall : The License Status form uses a grid layout to display multiple rows
© 2007 by Prentice Hall : The Agent Contacts from combines a main form with a tabular form
© 2007 by Prentice Hall Web services architecture Developer User Database server Application server Forms builder Name.fmb Compiled form Name.fmx Java- enabled Web browser Forms and data Overview of forms architecture on the Web
© 2007 by Prentice Hall Design view of the structure of an Oracle form Object Navigator Canvas Tools Property Palette Items
© 2007 by Prentice Hall 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 Hall Choosing columns with the data block wizard
© 2007 by Prentice Hall Setting prompts and column widths in the layout wizard
© 2007 by Prentice Hall Choosing the number of records in the layout wizard
© 2007 by Prentice Hall Design of the initial Customer form
© 2007 by Prentice Hall First step of JInitiator setup Running the form
© 2007 by Prentice Hall Initial Customer form and form controls Execute Query Select prior or next record Add or delete records Save changes Close form
© 2007 by Prentice Hall Simple form query to find all customers with a last name beginning with the letter B Enter QueryExecute QueryCancel Query Displaying data with form queries
© 2007 by Prentice Hall Rows filtered by the query
© 2007 by Prentice Hall Object alignment options The Layout Editor
© 2007 by Prentice Hall The object navigator
© 2007 by Prentice Hall Common form modifications Alignment options
© 2007 by Prentice Hall Adding a static image
© 2007 by Prentice Hall Design for the Listings form
© 2007 by Prentice Hall Loading an image to the database
© 2007 by Prentice Hall8-23 Table 8.1: Property changes for query lookup values PropertyNew Value NameFIRSTNAME PromptFirst Name Prompt Attachment Offset7 Database ItemYes Column NameFIRSTNAME Primary KeyNo Query OnlyYes Adding lookup columns with a List Of Values
© 2007 by Prentice Hall Choosing the return item with the List of Values wizard
© 2007 by Prentice Hall List of values for selecting the listing agent
© 2007 by Prentice Hall Changing an item type to Radio Group Adding Radio buttons
© 2007 by Prentice Hall Properties for the radio button
© 2007 by Prentice Hall Radio buttons on the form
© 2007 by Prentice Hall Setting the initial properties for a tabular form Creating tabular forms
© 2007 by Prentice Hall Tabular design for license status values
© 2007 by Prentice Hall Creating a relationship for a main/sub form Creating a main with sub form
© 2007 by Prentice Hall Initial main form and sub form design
© 2007 by Prentice Hall8-33 Table 8.2: Properties to change to add a display column PropertyValue NameFIRSTNAME EnabledNo Column NameFIRSTNAME Query OnlyYes PromptFirst Name
© 2007 by Prentice Hall8-34 Table 8.3: Common entries for format masks Formatting CharacterDisplay Effect XAny character or digit. AOnly alphabetic characters. 9Only numbers. 0Only numbers and displays leading zeros. YYYYFour digit year. MMTwo digit year number. DDDay of month.