Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.

Slides:



Advertisements
Similar presentations
A Guide to Oracle9i1 Creating Database Reports Chapter 7.
Advertisements

Benchmark Series Microsoft Access 2010 Level 1
Using Macros and Visual Basic for Applications (VBA) with Excel
Chapter 5 Multitable Forms
Access Lesson 2 Creating a Database
Enhanced Guide to Oracle 10g
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Chapter 1 Databases and Database Objects: An Introduction
Automating Tasks With Macros
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
A Guide to Oracle9i1 Advanced Forms Builder Topics Chapter 10.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Chapter 5B-C: Introduction to Forms Builder: Tiggers, LOV.
Eyad Alshareef 1 Creating Custom Forms Part B. 2Eyad Alshareef Lesson B Objectives After completing this lesson, you should be able to: Suppress default.
Eyad Alshareef 1 Creating Custom Forms Part A. 2Eyad Alshareef Data Block and Custom Forms Data block form Data block form Based on data blocks that are.
Introduction To Form Builder
Introduction To Form Builder
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
1 Chapter 1 Tour of Access. 1 Chapter Objectives Start and exit Microsoft Access Open and run an Access application Identify the major elements of the.
Pasewark & Pasewark 1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2007: Introductory.
Access Lesson 4 Creating and Modifying Forms
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 3 Maintaining a Database
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
Chapter 1 Databases and Database Objects: An Introduction
Chapter 6 Advanced Report Techniques
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Key Applications Module Lesson 21 — Access Essentials
1 Chapter 12: Form Builder Objects and Flexible Code.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Sequences Sequences: a database object that generates unique numbers from an arithmetic series. Used to populated surrogate keys. Syntax: CREATE SEQUENCE.
Chapter 6 Lesson C Creating Custom Forms. Lesson C Objectives Convert data blocks to control blocks Link data blocks to control blocks Create a form that.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Copyright Ó Oracle Corporation, All rights reserved. 88 Creating Additional Input Items.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
Chapter 7: Creating Custom Forms. Data Block and Custom Forms Data block form Based on data blocks that are associated with specific database tables Reflect.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Eyad Alshareef, Edited by: Mostafa Ali
Working with Data Blocks and Frames
Working in the Forms Developer Environment
Creating LOVs and Editors
CIS16 Application Programming with Visual Basic
Chapter 6: Creating Custom Forms
Producing Triggers Schedule: Timing Topic 40 minutes Lecture
Creating a Master-Detail Form
Creating Additional Input Items
Presentation transcript:

Chapter 5 Introduction To Form Builder

Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values (LOVs) to provide lists for foreign key values  Describe the different form items that you can use to enter and modify data values 2

Form Triggers  A form trigger is a program unit in a form that runs in response to an event, which is:  A user action - such as clicking a button  Or, a system action – such as loading the form or exiting the form  You associate form triggers with specific form objects  Triggers can be associated with:  An entire form (form level)  A block (block level)  A specific form item (item level) 3

Form Triggers  Creating a trigger:  select the form or form item event  type the trigger code  Referencing a form item in PL/SQL code:  :block_name.item_name  Triggers are compiled before a form is run 4

Using Sequences in Forms  To create a trigger that automatically inserts the next sequence value into a text item whenever the user creates a new block record, we use a block event called WHEN-CREATE-RECORD  Trigger PL/SQL code: SELECT sequence_name.NEXTVAL INTO :block_name.item_name FROM DUAL; 5

PL/SQL Editor  The PL/SQL Editor provides an environment for writing, compiling, and editing PL/SQL programs  Components:  Name list  shows the name of the current program unit  allows you to access other program units  Type list  Shows the program unit type  Object list  Shows the object to which the program unit is attached and the object level in the Object Navigator 6

PL/SQL Editor  Source code pane  Provides a text editor in which you can type PL/SQL program statements  Status Line (status bar)  Displays the program unit’s current modification status  Displays the program unit’s current compile status  Toolbar  Provides buttons such as compile PL/SQL, revert PL/SQL code, undo, redo, indent, and outdent 7

PL/SQL Editor 8

Trigger Syntax Errors  When error occurs in a program unit, the PL/SQL Editor’s compilation messages pane displays the line number of the error, the error message, and correction suggestions 9

Form Lists of Values (LOVs) 10  A list of Values (LOV) displays a list of possible data values for a text item  The LOV display is the dialog box that displays possible choices for a form text item  The LOV display derives its data from a record group, which is a form object that represents data in a tabular format

Form Lists of Values (LOVs) LOV display LOV command button 11

Creating an LOV  You can create a new LOV in two ways:  Using the LOV Wizard  Manually by creating an LOV object and a new record group in the Object Navigator 12

LOV Wizard Steps 1. Specify the LOV display values 2. Format the LOV display 3. Attach the LOV to a text item 4. Change the new LOV and record group default names to descriptive names in the Object Navigator 5. Create an optional command button to open the LOV display 13

LOV Wizard Pages  LOV Source page  Select whether to create a new record group or use an existing record group  SQL Query page  Enter the SQL query that retrieves the records that appear in the LOV display  Build a SQL query button using a visual tool called Query Builder  Import a query from a text file  Column Selection page  Specifies which record group columns appear in the LOV display 14

LOV Wizard Pages  Column Display page  Format the LOV fields  LOV Display page  Specify LOV display title, size, and position  Advanced Options page  Specify how many records the LOV retrieves  Items page  Specifies the text item to which the LOV is attached  Finish page  Signals that the LOV Wizard has successfully created the new LOV 15

Adding a Command Button to Open the LOV Display  Users can open the LOV display by placing the insertion point in the text item associated with the LOV, and then pressing CTRL+L  You can create a command button to allow users to open the LOV display  Drawing the button on the canvas using Button tool on the tool palette  Configuring a form button item by modifying the Name property and the Label property  Creating an associated button trigger that contains the commands to make the button operational 16

Representing Data Values Using Other Item Types 17  Alternate Form Input Items  Radio buttons  Check boxes

Radio Buttons  You can use radio buttons (option buttons) to represent data fields whose values must be one a small set of mutually exclusive selections  In Forms Builder, individual radio buttons exist within a radio group  a user can select only one button in a radio group at a time  Each radio button has an associated data value, and the radio group has the data value of the currently selected radio button 18

Radio Groups 19 Radio group Individual related radio buttons

Creating a Radio Group Create the form using the Data Block and Layout Wizards 2. Open the item Property Palette, and change the Item Type value to Radio Group 3. Draw and format the radio buttons on the canvas 4. Modify the radio button properties 5. Modify the radio group properties

Important Radio Button Properties 21 Name: how the button is referenced within the form Label: description that appears next to the button on the canvas Radio Button Value: associated data value in the database

Important Radio Group Properties 22 Name: how the radio group is referenced within the form Initial Value: data value of the radio button within the radio group that is selected when the form first appears

Check Boxes  Used to represent fields that can have one of two values  Check box caption is interpreted as TRUE or FALSE  If checked, caption is true  If cleared, caption is false 88

Check Box Example 89

Creating a Check Box 1. Create the form using the Data Block and Layout Wizards 2. Open the item Property Palette, and change the Item Type value to Check Box 3. Modify the item properties 90

Important Check Box Properties 26 Value when Checked: data value of the item when the box is checked Label: description that appears next to the check box on the canvas Value when Unchecked: data value of the item when the box is checked Check Box Mapping of Other Values: check box status when form first opens, or when new blank record is added 91