Title: Week 5 February 22
1Week 5February 22
- Dealing with Errors and Problems
- OLE Object Linking and Embedding
- Anatomy of a Report
2Query 2 select manufacturer_name,
manufacturer_code from manufacturers where
manufacturer_code q1_manufacturer_code
Query 3 select product_code, product_description,
retail_price from products where
manufacturer_code q2_manufacturer_code
Query 1 select manufacturer_name,
manufacturer_code from manufacturers order by
manufacturer_name
3Query 4
4Dealing with Errors and Problems
5Launching a Query
To begin a query, the form must first be in query
mode
6Ending a Form Without Entering a Query
FRM-40353 Error
7Attempting a Query While Not in Query Mode
8FRM-40301 Error
9Overcoming Problems with Triggers
- Maximize the MDI and form module windows
- Enter query mode when the form is launched
- Re-enter query mode after every query
- Cancel the query if no query is entered when
exiting the form - Suppress system alerts and messages
10Add and program the WHEN-NEW-FORM-INSTANCE and
WHEN-NEW-RECORD-INSTANCE triggers
Because these triggers are at the top of the
hierarchy, the will be executed first.
Add and program the WHEN-MOUSE-CLICK trigger
Note This was taken from another form module
11(No Transcript)
12Local variables needed to capture the error code
and launch the alert
Prefix A for alert.
13Re-enters query mode after a prior query
14Eventually...
Content canvas
Tab canvas
15OLE Object Linking and Embedding
16Object Linking and Embedding (OLE)
- Allows the developer to link or embed objects
within other files objects - An object can be a document, spreadsheet, graphic
(GIF, TIF, JPEG, etc.), etc.
17OLE Architecture
- Divides tools into OLE servers and containers
- Server - an application that creates and serves
OLE objects in other applications - Container - an application that provides
facilities for creation, manipulation and storage
of OLE objects
18OLE
Oracle Form Module
Link
Container (embedding)
Excel (server)
Spreadsheet (object)
19Access
- Activation - connecting to the server application
and using its features to manipulate and display
the object - In-place Activation
- Activates within the container application
- Focus on the object
- External Activation (default)
- Activates within the server application
- Object updated upon close
20Create the OLE Container
? Select the Property Palette
OLE Container
? Create the OLE Container with the OLE button in
the tool palette
21Change the Resize Property
22Assign a File or Application to the OLE
23Opening an Existing File
? Display an icon in the OLE container
?
? Select the file
24During Runtime
Double click on the icon
Quick Time Player (designated Windows plug-in)
launched to play the movie file
25Anatomy of a Report
26Principles of Design
- A report should...
- Communicate information to the user
- Be flexible to adapt to different needs, levels
of experience and knowledge of the intended user - Be simple, and no simpler
27Dimensions of a Report
Page
Line
Column
28Report Page Elements
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Total Amount Transacted 56,587.50
29Report Header
Date Processed 02/12/06
Page 1
Razorback Securities, Inc. Transaction Listing
Appears at the beginning of the report and only
once.
30Report Page Elements Page Heading
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Appears on every page
Total Amount Transacted 56,587.50
31Report Page Elements Title Line
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Usually appears on every page
Total Amount Transacted 56,587.50
32Report Page Elements Headings
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Total Amount Transacted 56,587.50
33Report Page Elements Body
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Detail line
Total Amount Transacted 56,587.50
34Report Page Elements Footings
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Listing
Date Acct. No.Trans Exch Security
Shares Price
02/01/96 72150391 B NYSE 23046 Ford Motor
100 10 1/4 1,025.00 02/02/96 72150391 S
NYSE 69247 Texas Instr 700 79 3/8 55.562.50
Total Amount Transacted 56,587.50
35Report Page Elements Summary
Date Processed 02/12/06
Page 2
Razorback Securities, Inc. Transaction Summary
Total Amount Transacted 2,333,875.00