290 likes | 743 Views
Chapter 5: Introduction to Forms Builder. Guide to Oracle 10 g. Lesson A Objectives. After completing this lesson, you should be able to: Display Forms Builder forms in a Web browser Use a data block form to view, insert, update, and delete database data
E N D
Chapter 5: Introduction to Forms Builder Guide to Oracle 10g
Lesson A Objectives After completing this lesson, you should be able to: • Display Forms Builder forms in a Web browser • Use a data block form to view, insert, update, and delete database data • Create a data block form that displays a single record at a time • Use the Object Navigator to change form object names Guide to Oracle 10g
Lesson A Objectives (continued) • Use the Data Block and Layout Wizards to modify form properties • Create a tabular-style data block form that displays multiple records Guide to Oracle 10g
Displaying Forms in a Web Browser • Developer10g displays forms as Web pages • In Web browser • Form appears in Forms Services window within browser window • Forms Services application displays menus and toolbar • Provide general functions for all form applications Guide to Oracle 10g
Architecture of the World Wide Web • Web browsers • Web servers • Web page • Static • Dynamic • Forms Builder form • Dynamic Web page • Derives content from Oracle 10g database Guide to Oracle 10g
How Forms Builder Displays a Form in a Browser • Java applet • OC4J Instance • Translates compiled .fmx file into Java applet • Downloads Java applet to Web browser Guide to Oracle 10g
Using a Data Block Form • Block • Group of related form items • Data block • Corresponds to specific database table • Contains objects that display values from table’s data fields • Text items • Form menu • Contains selections to manipulate form Guide to Oracle 10g
Using a Data Block Form (continued) • Modes: • Normal • Enter query • Message line Guide to Oracle 10g
Using a Form to View Table Records • Click Enter Query button • Type search expression • Click Execute Query button • To retrieve all records • Do not enter search expression • Inexact search • Use comparison and wildcard operators in search fields Guide to Oracle 10g
Using a Form to Insert, Update, and Delete Records • Insert • Enter data in blank form • Click Save button • Update • Modify existing record using form • Click Save button • Delete • Click Remove Record button • Click Save button Guide to Oracle 10g
Viewing and Interpreting Form Errors • When error occurs • Error code and message displayed in message line • Errors generated by • Form • DBMS Guide to Oracle 10g
Creating a Data Block Form • Forms Builder • Automatically generates text items and labels for data fields in table • Provides code for inserting, modifying, deleting, and viewing data records Guide to Oracle 10g
The Object Navigator • Displays Forms Builder objects and underlying components • As hierarchical tree • Forms Builder toolbar displays buttons • Form module • Object node • + indicates lower-level objects • - indicates node expanded fully Guide to Oracle 10g
The Object Navigator (continued) • Window • Canvas • Form contains one or more windows • Windows can have multiple canvases • Canvas can have multiple blocks Guide to Oracle 10g
Creating a New Data Block Form • Use Object Navigator • Data Block Wizard • Pages: • Welcome • Type • Table • Name • Finish Guide to Oracle 10g
Data Block Wizard Table Page Guide to Oracle 10g
Creating a New Data Block Form (continued) • Form layout • Form Layout Wizard pages: • Welcome • Canvas • Data Block • Items • Style • Rows • Finish Guide to Oracle 10g
Layout Editor Window Guide to Oracle 10g
The Layout Editor • Graphical display of form canvas • Draw and proportion form items • Boilerplate objects • Static imported image Guide to Oracle 10g
Form Components and the Object Navigator • Object Navigator • Hierarchical display of all form components • Different views Guide to Oracle 10g
Viewing Form Components • Expand All and Collapse All • Icons indicate node type • Items • Text items • Trigger • Event • Relation Guide to Oracle 10g
Object Navigator Views • Ownership View • Visual View Guide to Oracle 10g
Object Navigator Window in Visual View Guide to Oracle 10g
Changing Object Names in the Object Navigator • Change default names to descriptive names Guide to Oracle 10g
Modifying Forms Using the Data Block Wizard and Layout Wizard • Reentrant mode • Modify existing data block or layout • Select data block or form before opening wizard • All pages appear at once Guide to Oracle 10g
Creating a Form to Display Multiple Records • Tabular layout • Display multiple records on same form • Select Tabular on Style page of Layout Wizard Guide to Oracle 10g
Northwoods University Faculty Multiple Record Form Guide to Oracle 10g
Lesson A Summary • Form • Provides graphical view of database data • Use to view or modify data • Appears as Web page in browser • Components • Data block • Layout Guide to Oracle 10g
Lesson A Summary (continued) • Forms Builder environment • Object Navigator • Data Block Wizard • Layout Wizard • Layout Editor Guide to Oracle 10g