Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 5 February 22 Dealing with Errors and ProblemsDealing with Errors and Problems."— Presentation transcript:

1 1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 5 February 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 2 R. Ching, Ph.D. MIS Area California State University, Sacramento Query 1 select manufacturer_name, manufacturer_code from manufacturers order by manufacturer_name Query 1 select manufacturer_name, manufacturer_code from manufacturers order by manufacturer_name Query 2 select manufacturer_name, manufacturer_code from manufacturers where manufacturer_code = :q1_manufacturer_code Query 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 3 select product_code, product_description, retail_price from products where manufacturer_code = :q2_manufacturer_code

3 3 R. Ching, Ph.D. MIS Area California State University, Sacramento Query 4

4 4 R. Ching, Ph.D. MIS Area California State University, Sacramento Dealing with Errors and Problems

5 5 R. Ching, Ph.D. MIS Area California State University, Sacramento Launching a Query To begin a query, the form must first be in query mode

6 6 R. Ching, Ph.D. MIS Area California State University, Sacramento Ending a Form Without Entering a Query FRM-40353 Error

7 7 R. Ching, Ph.D. MIS Area California State University, Sacramento Attempting a Query While Not in Query Mode

8 8 R. Ching, Ph.D. MIS Area California State University, Sacramento FRM-40301 Error

9 9 R. Ching, Ph.D. MIS Area California State University, Sacramento Overcoming 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 formCancel the query if no query is entered when exiting the form Suppress system alerts and messagesSuppress system alerts and messages

10 10 R. Ching, Ph.D. MIS Area California State University, Sacramento Add and program the WHEN-NEW-FORM-INSTANCE and WHEN-NEW-RECORD-INSTANCE triggers Add and program the WHEN-MOUSE-CLICK trigger Note: This was taken from another form module Because these triggers are at the top of the hierarchy, the will be executed first.

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

12 12 R. Ching, Ph.D. MIS Area California State University, Sacramento Local variables needed to capture the error code and launch the alert Prefix “A” for alert.

13 13 R. Ching, Ph.D. MIS Area California State University, Sacramento Re-enters query mode after a prior query

14 14 R. Ching, Ph.D. MIS Area California State University, Sacramento Content canvas Tab canvas Eventually...Eventually...

15 15 R. Ching, Ph.D. MIS Area California State University, Sacramento OLE: Object Linking and Embedding

16 16 R. Ching, Ph.D. MIS Area California State University, Sacramento Object Linking and Embedding (OLE) Allows the developer to link or embed objects within other files objectsAllows the developer to link or embed objects within other files objects –An object can be a document, spreadsheet, graphic (GIF, TIF, JPEG, etc.), etc.

17 17 R. Ching, Ph.D. MIS Area California State University, Sacramento OLE Architecture Divides tools into OLE servers and containersDivides 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

18 18 R. Ching, Ph.D. MIS Area California State University, Sacramento OLE Container (embedding) Link Spreadsheet (object) Excel (server) Oracle Form Module

19 19 R. Ching, Ph.D. MIS Area California State University, Sacramento Access Activation - connecting to the server application and using its features to manipulate and display the objectActivation - connecting to the server application and using its features to manipulate and display the object –In-place Activation Activates within the container applicationActivates within the container application Focus on the objectFocus on the object –External Activation (default) Activates within the server applicationActivates within the server application Object updated upon closeObject updated upon close

20 20 R. Ching, Ph.D. MIS Area California State University, Sacramento Create the OLE Container OLE Container  Create the OLE Container with the OLE button in the tool palette  Select the Property Palette

21 21 R. Ching, Ph.D. MIS Area California State University, Sacramento Change the Resize Property

22 22 R. Ching, Ph.D. MIS Area California State University, Sacramento Assign a File or Application to the OLE

23 23 R. Ching, Ph.D. MIS Area California State University, Sacramento Opening an Existing File  Select the file  Display an icon in the OLE container

24 24 R. Ching, Ph.D. MIS Area California State University, Sacramento During Runtime Double click on the icon Quick Time Player (designated Windows plug-in) launched to play the movie file

25 25 R. Ching, Ph.D. MIS Area California State University, Sacramento Anatomy of a Report

26 26 R. Ching, Ph.D. MIS Area California State University, Sacramento Principles of Design A report should... Communicate information to the userCommunicate information to the user Be flexible to adapt to different needs, levels of experience and knowledge of the intended userBe flexible to adapt to different needs, levels of experience and knowledge of the intended user Be simple, and no simplerBe simple, and no simpler

27 27 R. Ching, Ph.D. MIS Area California State University, Sacramento Dimensions of a Report Page Line Column

28 28 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements Razorback Securities, Inc. Transaction Listing Date Processed 02/12/06Page 2 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 Date Acct. No.Trans Exch Security Shares Price Total Amount Transacted: 56,587.50

29 29 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Header Razorback Securities, Inc. Transaction Listing Date Processed 02/12/06Page 1 Appears at the beginning of the report and only once.

30 30 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Page Heading 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.00 02/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 page

31 31 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Title Line 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.00 02/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 Usually appears on every page

32 32 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Headings Razorback Securities, Inc. Transaction Listing Date Processed 02/12/06Page 2 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 Date Acct. No.Trans Exch Security Shares Price Total Amount Transacted: 56,587.50

33 33 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Body 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.00 02/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 Detail line

34 34 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Footings 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.00 02/02/96 72150391 S NYSE 69247 Texas Instr 700 79 3/8 55.562.50 Total Amount Transacted: 56,587.50 Date Acct. No.Trans Exch Security Shares Price

35 35 R. Ching, Ph.D. MIS Area California State University, Sacramento Report Page Elements: Summary Razorback Securities, Inc. Transaction Summary Date Processed 02/12/06 Page 2 Total Amount Transacted: 2,333,875.00


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

Similar presentations


Ads by Google