Ask PL-SQL Expert

Assignment

Topics: Database Connectivity, Reading Data

You will create an application that can connect to the exampleDatabase on a MySql server. The connection string should be dynamic using the IP address in the connect.txt file you created on your C:\ drive. It will use dbsAdmin as the user ID and password as the password for that user account. Make sure this user account exists on your MySQL server and has appropriate access to the database. You will be required to have a try...catch to ensure that the application does not crash if it cannot connect to the MySql server. The connection string should work when the application is run on the instructor's computer without having to change any code.

For this application, you will connect to the database, pull data from the database, and populate a ListView with objects created from the data. The ListView must have ImageLists attached for small and large icons. You will be required to find the images you wish to use, though it does not have to be more than one image for the large icon and one image for the small icon. You can select the table and columns you wish to draw from in your application, but the SQL statement should return a recordset with at least 10 but not more than 25 records of at least 4 columns. You must select the columns within the SELECT statement and not use the * wildcard to return them all.

Once you have loaded the data, you will move through each record and create an object that will then be added to the ListView. This will require you to know what data is being cached because you will select your controls based on that data. So, if the data is a number, you should convert it to a number and populate a number control with that data. Do not use only textboxes to show the data. Therefore, your recordset must include more than just string data.

Once the data is added to the ListView, if a user double-clicks an item in the ListView, it should populate the user input controls with the data from that object. The user should then be able to change that data and click a Save button, which will save the data to both the item on the ListView and to the database.

Your form should have the following additional functionality:

• The user must be able to select an item in the ListView to populate user input controls.
• The user must be able to change the data within an item and save those changes to the ListView item and the database.
• The File menu should contain an Exit command with keyboard shortcut.
• The View menu should include a command to view large icons and a command to view small icons. When each is selected, a checkmark should appear to indicate the current view.

These are the guidelines used by the grading rubric:

Database Connectivity

• The application should connect to a MySql database with a programmatically created connection string
• The application verifies with a try...catch server connectivity.
• Only the data needed is pulled from the database.

ListView

• The ListView is populated by the records in the returned recordset.
• Selecting an item in the ListView populates user input controls on the form.
• Changes made to the data in a user input control can be saved to the selected item on the ListView.
• The ListView has ImageLists for large and small icons.

User Input Controls

• A user input control exists for each piece of data in a record/item.
• The user input controls are appropriate for the data type.
• A button exists that saves the data of the currently selected item both to the ListView item and the database.

Main Form

• MenuStrip is used for File menu with an Exit command.
• MenuStrip also includes a View menu with Large and Small commands.
• The Exit command on the File menu has a corresponding keyboard shortcut.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M92343025

Have any Question?


Related Questions in PL-SQL

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As