35
1 . Ching, Ph.D. • MIS Area • California State University, Sacramento . Ching, Ph.D. • MIS Area • California State University, Sacramento Week 5 Week 5 February 22 February 22 Dealing with Errors and Dealing with Errors and Problems Problems OLE: Object Linking and OLE: Object Linking and Embedding Embedding Anatomy of a Report Anatomy of a Report

1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 5 February 22 Dealing with Errors and ProblemsDealing with Errors and Problems

  • View
    213

  • Download
    1

Embed Size (px)

Citation preview

1

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Week 5Week 5February 22February 22

• Dealing with Errors and ProblemsDealing with Errors and Problems• OLE: Object Linking and EmbeddingOLE: Object Linking and Embedding

• Anatomy of a ReportAnatomy of a Report

2

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Query 1select manufacturer_name, manufacturer_codefrom manufacturersorder by manufacturer_name

Query 1select manufacturer_name, manufacturer_codefrom manufacturersorder by manufacturer_name

Query 2select manufacturer_name, manufacturer_codefrom manufacturerswhere manufacturer_code = :q1_manufacturer_code

Query 2select manufacturer_name, manufacturer_codefrom manufacturerswhere manufacturer_code = :q1_manufacturer_code

Query 3select product_code, product_description, retail_pricefrom productswhere manufacturer_code = :q2_manufacturer_code

Query 3select product_code, product_description, retail_pricefrom productswhere manufacturer_code = :q2_manufacturer_code

3

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Query 4Query 4

4

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Dealing with Errors and ProblemsDealing with Errors and Problems

5

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Launching a QueryLaunching a Query

To begin a query, To begin a query, the form must first the form must first be in query modebe in query mode

6

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Ending a Form Without Entering a QueryEnding a Form Without Entering a Query

FRM-40353 ErrorFRM-40353 Error

7

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Attempting a Query While Not in Query ModeAttempting a Query While Not in Query Mode

8

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

FRM-40301 ErrorFRM-40301 Error

9

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Overcoming Problems with TriggersOvercoming Problems with Triggers

• Maximize the MDI and form module windowsMaximize the MDI and form module windows

• Enter query mode when the form is launchedEnter query mode when the form is launched

• Re-enter query mode after every queryRe-enter query mode after every query

• Cancel the query if no query is entered when exiting the Cancel the query if no query is entered when exiting the formform

• Suppress system alerts and messagesSuppress system alerts and messages

10

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Add and program the Add and program the WHEN-NEW-FORM-INSTANCEWHEN-NEW-FORM-INSTANCE and and WHEN-NEW-RECORD-INSTANCEWHEN-NEW-RECORD-INSTANCE triggerstriggers

Add and program the Add and program the WHEN-MOUSE-CLICKWHEN-MOUSE-CLICK trigger trigger

Note: This was taken from another form moduleNote: This was taken from another form module

Because these triggers are at the top of Because these triggers are at the top of the hierarchy, the will be executed the hierarchy, the will be executed firstfirst..

11

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

12

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Local variables needed to capture the Local variables needed to capture the error code and launch the alerterror code and launch the alert

Prefix “A” for alert.Prefix “A” for alert.

13

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Re-enters query mode after a prior queryRe-enters query mode after a prior query

14

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Content Content canvascanvas

Tab Tab canvascanvas

Eventually...Eventually...Eventually...Eventually...

15

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

OLE: Object Linking and Embedding OLE: Object Linking and Embedding

16

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Object Linking and Embedding (OLE)Object Linking and Embedding (OLE)

• Allows the developer to link or embed objects within other Allows the developer to link or embed objects within other files objectsfiles objects

– An object can be a document, spreadsheet, graphic An object can be a document, spreadsheet, graphic (GIF, TIF, JPEG, etc.), etc.(GIF, TIF, JPEG, etc.), etc.

17

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

OLE ArchitectureOLE Architecture

• Divides tools into OLE servers and containersDivides tools into OLE servers and containers

– Server - an application that creates and serves OLE Server - an application that creates and serves OLE objects in other applicationsobjects in other applications

– Container - an application that provides facilities for Container - an application that provides facilities for creation, manipulation and storage of OLE objectscreation, manipulation and storage of OLE objects

18

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

OLEOLE

Container Container (embedding)(embedding)

LinkLink

Spreadsheet Spreadsheet (object)(object)

Excel (server)Excel (server)

Oracle Form Oracle Form ModuleModule

19

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

AccessAccess

• Activation - connecting to the server application and using Activation - connecting to the server application and using its features to manipulate and display the objectits features to manipulate and display the object– In-place ActivationIn-place Activation

• Activates within the container applicationActivates within the container application• Focus on the objectFocus on the object

– External Activation (default)External Activation (default)

• Activates within the server applicationActivates within the server application

• Object updated upon closeObject updated upon close

20

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Create the OLE ContainerCreate the OLE Container

OLE ContainerOLE Container

Create the Create the OLE ContainerOLE Container with the with the OLEOLE button in button in the tool palettethe tool palette

Select the Select the Property PaletteProperty Palette

21

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Change the Resize PropertyChange the Resize Property

22

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Assign a File or Application to the OLEAssign a File or Application to the OLE

23

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Opening an Existing FileOpening an Existing File

Select the fileSelect the file

Display an icon in Display an icon in the OLE containerthe OLE container

24

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

During RuntimeDuring Runtime

Double Double click on click on the iconthe icon

Quick Time Player Quick Time Player (designated Windows (designated Windows plug-in) launched to play plug-in) launched to play the movie filethe movie file

25

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Anatomy of a ReportAnatomy of a Report

26

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Principles of DesignPrinciples of Design

A report should...A report should...

• CommunicateCommunicate information to the user information to the user

• Be Be flexibleflexible to adapt to different needs, levels of experience to adapt to different needs, levels of experience and knowledge of the intended userand knowledge of the intended user

• Be Be simplesimple, and no simpler, and no simpler

27

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Dimensions of a ReportDimensions of a Report

Page

Line

Column

28

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page ElementsReport Page Elements

Razorback Securities, Inc.Transaction Listing

Date Processed 02/12/06 Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Date Acct. No.Trans Exch Security Shares Price

Total Amount Transacted: 56,587.50

29

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report HeaderReport Header

Razorback Securities, Inc.Transaction Listing

Date Processed 02/12/06 Page 1

Appears at the beginning of the report and only once.Appears at the beginning of the report and only once.

30

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: Page HeadingReport Page Elements: Page Heading

Razorback Securities, Inc.Transaction Listing

Date Processed 02/12/06Date Processed 02/12/06 Page 2Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.5002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Date Acct. No.Trans Exch Security Shares Price

Total Amount Transacted: 56,587.50

Appears on every pageAppears on every page

31

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: Title LineReport Page Elements: Title Line

Razorback Securities, Inc.Razorback Securities, Inc.Transaction ListingTransaction Listing

Date Processed 02/12/06Date Processed 02/12/06 Page 2Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Date Acct. No.Trans Exch Security Shares Price

Total Amount Transacted: 56,587.50Total Amount Transacted: 56,587.50

Usually appears on every pageUsually appears on every page

32

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: HeadingsReport Page Elements: Headings

Razorback Securities, Inc.Transaction Listing

Date Processed 02/12/06 Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Date Acct. No.Trans Exch Security Shares Price Date Acct. No.Trans Exch Security Shares Price

Total Amount Transacted: 56,587.50

33

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: BodyReport Page Elements: Body

Razorback Securities, Inc.Razorback Securities, Inc.Transaction ListingTransaction Listing

Date Processed 02/12/06Date Processed 02/12/06 Page 2Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.5002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Date Acct. No.Trans Exch Security Shares Price Date Acct. No.Trans Exch Security Shares Price

Total Amount Transacted: 56,587.50

Detail lineDetail line

34

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: FootingsReport Page Elements: Footings

Razorback Securities, Inc.Razorback Securities, Inc.Transaction ListingTransaction Listing

Date Processed 02/12/06Date Processed 02/12/06 Page 2Page 2

02/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/01/96 72150391 B NYSE 23046 Ford Motor 100 10 1/4 1,025.0002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.5002/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50

Total Amount Transacted: 56,587.50Total Amount Transacted: 56,587.50

Date Acct. No.Trans Exch Security Shares Price Date Acct. No.Trans Exch Security Shares Price

35

R. Ching, Ph.D. • MIS Area • California State University, SacramentoR. Ching, Ph.D. • MIS Area • California State University, Sacramento

Report Page Elements: SummaryReport Page Elements: Summary

Razorback Securities, Inc.Razorback Securities, Inc.Transaction SummaryTransaction Summary

Date Processed 02/12/06Date Processed 02/12/06 Page 2Page 2

Total Amount Transacted: 2,333,875.00Total Amount Transacted: 2,333,875.00