Introduction To Form Builder

Slides:



Advertisements
Similar presentations
Course Form In the main window (cf. Figure 2), click on Forms, then double-click on Create form by using wizard. Follow the sequence of actions below.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Chapter 5 Multitable Forms
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Enhanced Guide to Oracle 10g
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 3 Maintaining and Querying a Database
Automating Tasks With Macros
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
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.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
Chapter 5B-C: Introduction to Forms Builder: Tiggers, LOV.
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
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
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 Ch 5 Review.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 2 Querying a Database
Chapter 3 Maintaining a Database
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Chapter 1 Databases and Database Objects: An Introduction
Lesson No:9 MS-Word Tools, Mail Merge and working with Tables CHBT-01 Basic Micro process & Computer Operation.
Chapter 6 Advanced Report Techniques
Creating a Web Site to Gather Data and Conduct Research.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Automating Database Processing
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
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.
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.
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.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
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.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
Sequences Sequences: a database object that generates unique numbers from an arithmetic series. Used to populated surrogate keys. Syntax: CREATE SEQUENCE.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
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.
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,
Eyad Alshareef, Edited by: Mostafa Ali
Working with Data Blocks and Frames
Working in the Forms Developer Environment
Developer 2000 CSE 4504/6504 Lab.
Creating LOVs and Editors
Chapter 7 Advanced Form Techniques
Chapter 6: Creating Custom Forms
Microsoft Office Access 2003
Creating Additional Input Items
Presentation transcript:

Introduction To Form Builder Part C Eyad Alshareef

Objectives Use Sequence to generate value in a form Create List Of Value (LOVs) Form items Eyad Alshareef

Form Triggers PL/SQL procedure that runs in response to a user or system action Clicking a button Loading a form Exiting a form Triggers can be associated with: An entire form (form level) A block (block level) A specific form item (item level) Eyad Alshareef

Using Sequences to Generate Primary Key Values Form can be set up to automatically retrieve next sequence number and populate primary key field Form triggers respond to user events or system actions To create a trigger, specify: Trigger’s object (i.e. specific button) Trigger event (i.e. button press) Code that executes Use PRE-FORM event to perform action when form loads Use Triggers dialog box to create triggers for objects Eyad Alshareef

PL/SQL Editor Eyad Alshareef

Syntax Error in PL/SQL Editor Eyad Alshareef

Creating Form Triggers (continued) Triggers dialog box Shows all block events that can have associated triggers Search using wildcards PL/SQL Editor Environment for writing, compiling, and editing PL/SQL programs Source code pane Status line Eyad Alshareef

Triggers Dialog Box Eyad Alshareef

Using 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 Eyad Alshareef

Using Sequences in Forms Create a block-level WHEN-CREATE-RECORD trigger Trigger PL/SQL code: SELECT sequence_name.NEXTVAL INTO :block_name.item_name FROM DUAL; Eyad Alshareef

LOV Eyad Alshareef

Form Lists of Values (LOVs) List of legal values that can be selected for use in a form field LOV command button LOV display Eyad Alshareef

Creating a List of Values (LOV) Use a list of values (LOV) to eliminate user errors Pop-up list allows user to select value from list of choices rather than typing User can open LOV by: Typing Ctrl-L with cursor in LOV text field Click Edit then Display List from Forms Services menu Clicking command button with attached trigger to open LOV LOV allows user to search for values using wildcards LOV data values come from a record group Eyad Alshareef

LOV Display Eyad Alshareef

Creating an LOV To create LOV: LOV can contain one or more columns Use LOV Wizard Manually create using Object Navigator LOV can contain one or more columns LOV appearance can be customized using layout wizard Create a button on main form to launch LOV using button tool, attach form trigger to button that opens LOV Eyad Alshareef

Creating an LOV Using the LOV Wizard Use the LOV Wizard to: Specify the LOV display records using a SQL query Format the LOV display Attach the LOV to a form text item Change the LOV and record group name in the Object Navigator Eyad Alshareef

Opening the LOV Display Place the insertion point in the text item to which the LOV is attached Press CTRL+L, or from Edit menu of the form choose the option ‘Display List’ Eyad Alshareef

LOV Command Button Trigger Create a trigger for the button that does the following: Places the form insertion point in the text item to which the LOV is attached: GO_ITEM(‘IN_VID’); Executes the LIST_VALUES command: LIST_VALUES; Eyad Alshareef

Create an LOV Right-click anywhere in module REGISTRATION and select LOV wizard Select record group based on a query Eyad Alshareef

Create an LOV Type in a query that would retrieve all records from table course (do not put a semi-column at the end) Here you will may be asked to log into the DB Eyad Alshareef

Create an LOV Select all the columns that you want to appear in you LOV Eyad Alshareef

Create an LOV Specify the return value for COURSENAME field Return value is a field where the course name from your LOV will be inserted Eyad Alshareef

Create an LOV Specify title and dimensions Specify the number of rows displayed at once Eyad Alshareef

Create an LOV Select COURSENAME as assigned value Complete your LOV Eyad Alshareef

Create an LOV To test your LOV: Run the form Click on CourseName field Press CTRL+L Eyad Alshareef

Create an LOV control button Close your form in the browser Return to the Form buikder, Layout editor Click on the Control Button item in the toolbar on the left and drag it to a desired location on your canvas Name your button using Property palette Eyad Alshareef

Create an LOV control button Right click on the button, and open PL/SQL editor Select Type – TRIGGER, Name – WHEN_MOUSE_CLICKED Type in code the code below Eyad Alshareef

Alternate Form Input Items Radio buttons Check boxes Eyad Alshareef

Radio Buttons Limits user to one of two or more related, mutually exclusive choices Eyad Alshareef

Radio Groups Related radio buttons are part of a radio group Individual related radio buttons Eyad Alshareef

Creating Radio Buttons Represent data fields whose values must be one of small set of mutually exclusive selections Exist within radio group Select item type in Layout Wizard Manually create radio buttons Use Radio Button tool Change properties using Property Palette Align edges using Align Objects dialog box Eyad Alshareef

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

Important Radio Button Properties 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 Eyad Alshareef

Important Radio Group Properties 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 Eyad Alshareef

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 Eyad Alshareef

Check Box Example Eyad Alshareef

Creating a Check Box Create the form using the Data Block and Layout Wizards Open the item Property Palette, and change the Item Type value to Check Box Modify the item properties Eyad Alshareef

Creating Check Boxes Check boxes Represent data values that can have only one of two opposing values Label represents one value Value when Checked Value that will be saved in database if checkbox checked Value when Unchecked Eyad Alshareef

Important Check Box Properties Label: description that appears next to the check box on the canvas Value when Checked: data value of the item when the box is checked 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 Eyad Alshareef

Convert Major into List Item In the Property palette, change item type to list item Eyad Alshareef

Converting Major into a list item Add item values using the property palette Eyad Alshareef