Creating the Inventory Item View
You will now create the Inventory Item view using the Data Entry View Wizard. After completing the wizard, you will make some minor modifications to the view in the Studio. This will familiarize you with some of the visual design features of the Studio.
-
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 Wizard icon.
-
Read the explanations on the first wizard page of what this wizard will do and click Next.
-
On the Names wizard page, enter
InventoryViewas the object name,InventoryViewas the filename, andInventory Item Viewas the description, then click Next. -
On the "Entry View Style" wizard page, select Create a Simple Form Entry View, then click Next.
-
On the "Main Data Dictionary" wizard page, click on Inventory - Inventory_DataDictionary to select it as the data dictionary to be used, then click Next.
-
On the "Entry Fields" wizard page, using the Add button, add
Item_IdandDescriptionfrom the Inventory table, followed byIdandNamefrom the Vendor table. Next, addVendor_Part_Id,Unit_Price, andOn_Handfrom the Inventory table. Click Next. -
On the "Labels, Alignment and Preview" wizard page, you can click the Preview button to preview what your view is going to look like.
-
Click Finish on the last wizard page.
You should now be back in the Studio, with the newly created Inventory Item View open in the visual designer.
You are now going to make a few manual adjustments to the view in the Studio. You are going to add 2 dbGroup controls and move some of the data entry objects (DEOs) that were created by the wizard into those groups. This will break up the view into more logical groups of controls.
-
While holding down the Ctrl key on the keyboard, select the Vendor Id, Vendor Name, and Vendor Part Id controls.

-
Press Ctrl+X to cut the controls.
-
From the Data Containers group on the Class Palette, drag and drop a
dbGroupcontrol onto the view. -
With the
dbGroupselected, press Ctrl+V to paste the controls into thedbGroup.

-
Resize the view to be slightly larger to create some space on the bottom, then move the Unit Price and On Hand controls further down. Resize the
dbGroupso that all 3 of the vendor controls fit properly into it.

-
Now you should follow the same steps to move the Unit Price and On Hand controls into a
dbGroupof their own. Move the On Hand control to the right, then use the context menu to align the tops of the 2 controls. -
Change the sizes of both
dbGroupsand the view to remove some of the excess space at the bottom. -
Change the label of the first
dbGroupto Vendor and remove the label of the seconddbGroup.
Your Inventory Item View is now complete and looks similar to this:
