Creating the Customer View
The Creating a Data Entry View section of Quick Start showed you how to build a Customer Entry view using the Data Entry View Wizard. You are now going to learn how to build a view like this using the Studio.
The basic steps of how to create a view were already shown in detail in Creating Your First View.
Steps to Create the Customer View
- Click on the Create New button on the Studio’s toolbar. Click on the View / Report tab of the Create New... dialog. Double-click the Data Entry View icon.
The "Create a New Windows View Component" dialog will open. Enter oCustomerView as the object name. The filename will automatically change to CustomerView.vw. Accept the default directory path and click on the OK button.
-
In the Properties window, change the view’s label to Customer Entry View.
-
Click on the Data Dictionary Object Explorer (DDO Explorer) toolbar button.
Right-click inside the DDO Explorer window and select Add DDO from the context menu. Select the Data Dictionary you want (in this case, cCustomerDataDictionary) and click Select. Confirm that you want it to be the Main DDO.
- Back in DDO Explorer, expand the DDO Column Selector in the tree, then
cCustomerDataDictionaryto display the columns in the Customer table. Select Customer_Number and Name and drag these onto your view.

-
From the Data Containers group on the Class Palette, drag and drop a dbTabDialog onto the view.
-
Right-click on the first tab button on the tab dialog and choose Append Tab Page from the context menu.

-
Add another tab page to have a total of 3 tab pages on the dbTabDialog. Use the Properties window to change the label and other properties of a tab page; make sure the tab page is selected when you do so and not the surrounding dbTabDialog.
-
Change the tab page labels as shown below.

- Next, from DDO Explorer, select, then drag and drop the following columns onto each tab page.



-
So, let's test the completed view.
Click on the Run button on the Studio's toolbar. The Studio will compile, then run your project.
When the application runs, select
oCustomerViewfrom the View menu.