week 5 february 22

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

Upload: vala

Post on 19-Jan-2016

17 views

Category:

Documents


0 download

DESCRIPTION

Week 5 February 22. Dealing with Errors and Problems OLE: Object Linking and Embedding Anatomy of a Report. Query 2 select manufacturer_name, manufacturer_code from manufacturers where manufacturer_code = :q1_manufacturer_code. Query 3 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Week 5 February 22

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

Page 2: Week 5 February 22

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

Page 3: Week 5 February 22

3

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

Query 4Query 4

Page 4: Week 5 February 22

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

Page 5: Week 5 February 22

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

Page 6: Week 5 February 22

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

Page 7: Week 5 February 22

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

Page 8: Week 5 February 22

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

Page 9: Week 5 February 22

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

Page 10: Week 5 February 22

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..

Page 11: Week 5 February 22

11

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

Page 12: Week 5 February 22

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.

Page 13: Week 5 February 22

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

Page 14: Week 5 February 22

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...

Page 15: Week 5 February 22

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

Page 16: Week 5 February 22

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.

Page 17: Week 5 February 22

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

Page 18: Week 5 February 22

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

Page 19: Week 5 February 22

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

Page 20: Week 5 February 22

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

Page 21: Week 5 February 22

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

Page 22: Week 5 February 22

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

Page 23: Week 5 February 22

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

Page 24: Week 5 February 22

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

Page 25: Week 5 February 22

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

Page 26: Week 5 February 22

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

Page 27: Week 5 February 22

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

Page 28: Week 5 February 22

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

Page 29: Week 5 February 22

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.

Page 30: Week 5 February 22

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

Page 31: Week 5 February 22

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

Page 32: Week 5 February 22

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

Page 33: Week 5 February 22

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

Page 34: Week 5 February 22

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

Page 35: Week 5 February 22

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