Introduction To Form Builder
Introduction To Form Builder
Introduction To Form Builder
Builder
Part C
Eyad Alshareef 1
Objectives
Use Sequence to generate value in a form
Create List Of Value (LOVs)
Form items
Eyad Alshareef 2
Form Triggers
Eyad Alshareef 4
PL/SQL Editor
Eyad Alshareef 5
Syntax Error in PL/SQL Editor
Eyad Alshareef 6
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 7
Triggers Dialog Box
Eyad Alshareef 8
Using Form Triggers
Creating a trigger:
select the form or form item event
Eyad Alshareef 9
Using Sequences in Forms
Eyad Alshareef 10
LOV
Eyad Alshareef 11
Form Lists of Values (LOVs)
LOV
display
Eyad Alshareef 12
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 13
LOV Display
Eyad Alshareef 14
Creating an LOV
To create LOV:
Use LOV Wizard
Manually create using Object Navigator
Eyad Alshareef 15
Creating an LOV Using the LOV
Wizard
1. 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
2. Change the LOV and record group name in
the Object Navigator
Eyad Alshareef 16
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 17
LOV Command Button Trigger
Eyad Alshareef 18
Create an LOV
Right-click anywhere in module
REGISTRATION and select LOV wizard
Select record group based on a query
Eyad Alshareef 19
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 20
Create an LOV
Select all the columns that you want to appear in you
LOV
Eyad Alshareef 21
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 22
Create an LOV
Specify title and dimensions
Specify the number of rows displayed at once
Eyad Alshareef 23
Create an LOV
Select COURSENAME as assigned value
Complete your LOV
Eyad Alshareef 24
Create an LOV
To test your LOV:
Run the form
Click on
CourseName field
Press CTRL+L
Eyad Alshareef 25
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 26
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 27
Alternate Form Input
Items
Radio buttons
Check boxes
Eyad Alshareef 28
Radio Buttons
Eyad Alshareef 29
Radio Groups
Radio group
Individual related
radio buttons
Eyad Alshareef 30
Creating Radio Buttons
Radio buttons
Represent data fields whose values must be one of
small set of mutually exclusive selections
Exist within radio group
Eyad Alshareef 31
Creating a Radio Group
Eyad Alshareef 32
Important Radio Button
Properties
Name: how the
button is
referenced
within the form
Eyad Alshareef 33
Important Radio Group
Properties
Eyad Alshareef 34
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 35
Check Box Example
Eyad Alshareef 36
Creating a Check Box
Eyad Alshareef 37
Creating Check Boxes
Check boxes
Represent data values that can have only one of
two opposing values
Label represents one value
Eyad Alshareef 38
Important Check Box Properties
Eyad Alshareef 40
Converting Major into a list item
Add item values using the property palette
Eyad Alshareef 41