To create the OrderItemsView view object:
1- In the System Navigator, right click your package node and choose New View Object from the popup menu.
2- On the Welcome page, click Next.
3- On the Name page, enter OrderItemsView and click Next.
4- In the Entity Objects page, OrderItems in the Available pane and shuttle it to the Selected pane. Click Next.
5- In the Available pane, shuttle all the attributes under OrderItems to the Selected Pane.
6- Click Finish.
Your OrderItems view object now contains all the attributes from the OrderItems entity object.
This previous exercise may lead you to believe that view objects are based 1:1 on entity objects. This is not the case. View objects can get their attributes from multiple entity objects (or even other sources of data). In the following exercise, you'll create an OrdersView view object, specifying that it contains the CustFirstName and CustLastName from the Customers entity object. This way, when you look at an order, you'll get a customers first and last name, not just an ID number.