Professional Documents
Culture Documents
Oracle 10G Form Builder and Report Builder: BCIS 5420
Oracle 10G Form Builder and Report Builder: BCIS 5420
By Anna Sidorova
Tutorial plan
• Create, modify tables, insert, select data in SQL
• Create interface in Oracle designer
– Forms based on one table or two tables
– Custom forms
– A switchboard
– Reports
Example:
STUDENT COURSE_STUDENT
Grade_
SID Name Major Age SID CourseName
Level
100 Jones History
y SR 21 100 MIS520
150 Parks Acctg SO 19 150 ACC220
200 Baker Math GR 32 200 MIS520
250 Glass History SR 28
200 CSI312
300 Baker Acctg SR 24
350 Russell Math JR 20
300 ACC415
400 Rogers Acctg FR 18 400 ACC220
450 Jones History SR 25 400 CSI312
400 MAT101
COURSE
450 ACC220
Name Time Room
ACC220 M-F9 BA110
ACC415 MWF3 BA210
CSI312 MWF8 SS213
MAT101 MWF3 ES123
MIS520 MWF12 BCIS4610,
BA224Spring 2009
Creating a layout
• Layout wizard allows you to create a form layout
• Click next on the welcome page and select content
canvas type
Select a layout
• Select form layout
• Name the frame
• Select the number of students to be displayed
MODIFYING A FORM
Create an LOV
• Right-click anywhere in module REGISTRATION
and select LOV wizard
• Select record group based on a query
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
Create an LOV
• Select all the columns that you want to appear in you
LOV
Create an LOV
• Specify the return value for COURSE_NAME field
– Return value is a field where the course name from your LOV
will be inserted
Create an LOV
• Specify title and dimensions
• Specify the number of rows displayed at once
Create an LOV
• Select COURSENAME as assigned value
• Complete your LOV
Create an LOV
• To test your LOV:
– Run the form
– Click
Cli k on
CourseName field
– Press CTRL+L
Creating a switchboard
• Create a new form
• Create a control block, similar to the one in form
COURSE
• Add four control buttons
– Add student
– Add course
– Register student
– Exit
• Add code to open forms
Creating a switchboard
Creating a switchboard
• Add triggers to corresponding buttons
Creating reports