Lesson 5: Add data to the dataset
In this lesson, you will add data to the dataset to test the ClassicsCD sample application by placing more orders for the CD.
Procedure
-
In the Script Explorer, double-click Test dataset and then
double-click Private Test dataset. In the test script editor,
double-click the Test dataset tab to expand the dataset editor so
that you can work.
The dataset editor opens and should look similar to the following table:
Composer Item Quantity Card# CardType ExpDate Name Street CityStZip Phone Price 0 Schubert String Quartets Nos. 4 & 14 1 1234567890 Visa 09/09 Trent Culpito 75 Wall St. Ny, Ny 12212 212-552-1867 $18.99 - Position your mouse pointer in the dataset editor, then click Enter to add a row after the first row.
-
To add a second empty row, right-click Insert Record.
To save time, copy the data from row 0 in the dataset into the two empty rows that you created in steps 2 and 3.
- Position the mouse pointer in the row 0 cell, right-click, and then click Copy.
- Position the mouse pointer in the row 1 cell, right-click, and then click Paste.
- Click Yes to paste the data into the empty row.
- Position the mouse pointer in the row 2 cell, right-click, and then click Paste.
- Click Yes to paste the data into the empty row.
-
Change the value in the Quantity column to test the ClassicsCD
sample application by placing more orders for the CD:
- In row 1, in the Quantity column, select the cell and type 2.
- In row 2, in the Quantity column, select the cell and type 3.
The data in the dataset should look like the following table:Composer Item Quantity Card# CardType ExpDate Name Street CityStZip Phone Price 0 Schubert String Quartets Nos. 4 & 14 1 1234567890 Visa 09/09 Trent Culpito 75 Wall St. Ny, Ny 12212 212-552-1867 $18.99 1 Schubert String Quartets Nos. 4 & 14 2 1234567890 Visa 09/09 Trent Culpito 75 Wall St. Ny, Ny 12212 212-552-1867 $18.99 2 Schubert String Quartets Nos. 4 & 14 3 1234567890 Visa 09/09 Trent Culpito 75 Wall St. Ny, Ny 12212 212-552-1867 $18.99 - On the Test dataset tab, click X to close the dataset editor, and then click Yes to save the changes you made to the dataset.