Chapter 5B-C: Introduction to Forms Builder: Tiggers, LOV.

Slides:



Advertisements
Similar presentations
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Advertisements

Access Lesson 2 Creating a Database
Enhanced Guide to Oracle 10g
Chapter 6: Creating Custom Forms. Data Block and Custom Forms Data block form Based on data blocks that are associated with specific database tables Reflect.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Chapter 5: Introduction to Forms Builder. 2 Lesson A Objectives After completing this lesson, you should be able to: Display Forms Builder forms in a.
13 Copyright © 2004, Oracle. All rights reserved. Introduction to Triggers.
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.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
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
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
Using SQL Queries to Insert, Update, Delete, and View Data © Abdou Illia MIS Spring 2015 Wednesday 1/28/2015 Chapter 3A.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Copyright Ó Oracle Corporation, All rights reserved. 55 Working with Data Blocks and Frames.
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.
Concepts of Database Management Seventh Edition
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Copyright Ó Oracle Corporation, All rights reserved. 22 Running a Form Builder Application.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
1 Chapter 12: Form Builder Objects and Flexible Code.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
ITBIS373 Database Development Lecture 3a - Chapter 3: Using SQL Queries to Insert, Update, Delete, and View Data.
Guide to Oracle 10g ITBIS373 Database Development Lecture 4a - Chapter 4: Using SQL Queries to Insert, Update, Delete, and View Data.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
© 2007 by Prentice Hall8-1 Introduction to Oracle 10g Chapter 8 Understanding and Using Forms Builder James Perry and Gerald Post.
Eyad Alshareef 1 Introduction To Form Builder Part B.
1 PL\SQL Dev Templates. 2 TEMPLATE DEFINITION Whenever you create a new program unit, its initial contents are based upon a template which contains pre-defined.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
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.
CHAPTER 6 LESSON B Creating Custom Forms. Lesson B Objectives  Suppress default system messages  Create alerts and messages to provide system feedback.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
DAY 18: ACCESS CHAPTER 3 Tazin Afrin October 22,
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
© 2007 by Prentice Hall9-1 Introduction to Oracle 10g Chapter 9 Customizing Forms James Perry and Gerald Post.
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 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
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
Forms Concepts Triggers Fired when Internal/External events occur
Working with Data Blocks and Frames
Working in the Forms Developer Environment
Creating LOVs and Editors
Lexical Reference Variables in Graphics and List Box in Forms
CIS16 Application Programming with Visual Basic
Chapter 6: Creating Custom Forms
Producing Triggers Schedule: Timing Topic 40 minutes Lecture
Creating a Master-Detail Form
Introduction To Form Builder
Creating Additional Input Items
Presentation transcript:

Chapter 5B-C: Introduction to Forms Builder: Tiggers, LOV

2 Lesson B Objectives After completing this lesson, you should be able to: Create a data block form that is based on a database view [Same as using single table] Create a master-detail form that contains multiple data blocks [Done in Oracle Lab 7] Format form text items using format masks

3 Using Format Masks to Format Character Strings Format mask –Same as format model –Set using Property Palette –Proceeded by FM Example of format mask for phone number: FM “(”999“)”999“-”9999 To set the format mask –Open the form in the Layout Editor –Select the text item you want to apply the format to –Right-click and select Property Palette –In the Data property node, type the mask in the Format Mask text box :for numeric fields MM/DD/YYYY : for dates

4

5 Lesson C Objectives After completing this lesson, you should be able to: 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

6 Using Sequences to Generate Primary Key Values Users may make mistakes entering primary key values Use sequence to generate key –Create sequence in database –Create a trigger (PL/SQL program) that you link to the text item object representing the primary key value on a form that inserts the primary key value from the sequence when a user takes action to create a new record

7 Creating Form Triggers Form trigger –Program unit in form that runs in response to event –Associated with form object Event –User action like clicking a button –System action like loading or exiting a form Trigger firing means … –The trigger runs.

8 Creating Form Triggers Built-in events that can be associated with form triggers The triggers to be written in PL/SQL editor will fire when event occurs Triggers dialog box showing block events that can be associated with triggers

9 Creating Form Triggers (continued) Implicit cursor can be used to retrieve the next sequence value into a form’s text item General syntax SELECT field_name INTO variable_name FROM table_name WHERE search condition; Syntax for retrieving next sequence value into the form’s loc_id text item SELECT loc_id_sequence.NEXTVAL INTO :location.loc_id FROM dual; loc_id_sequence must be created in the database : must be added to refence a form’s text item in PL/SQL

10 Create a trigger for inserting loc_id when a new record is to be created using location.fmb Show how (p )

11 Creating a List of Values (LOV) List of values (LOV) –Pronounced ell-oh-vee –Displays list of possible data values for text item LOV display –Dialog box displays possible choices for form text item Record group –Form object that represents data in tabular format –Provides values for LOV

12 Creating a List of Values (LOV) Show how (p ) GO_ITEM(‘block_name.item_name); LIST_VALUES; GO_ITEM(‘student.f_id); LIST_VALUES;