Appearance
Lesson 8-A: Create a Data Item
Lesson Goals: You are going to create a new data item called Cars Month of Sale.To create the new data item:
- From the Request Manager, create a new Detail report named TEST (title Test Report).
- Click the Select Data Items tab.
- Click Create.
- Enter Cars Month of Sale as the Data Item Name.

- Enter Cars Month of Sale (Alpha) as the Description.
- Select Inventory from the Data Item Group drop-down box. (Data Item Groups make it easier to find data items if there are many data items in your data dictionary.)
- Click the Edit button next to the Expression box to open the Expression Editor.
- Click on Cars Date of Sale in the Choose Item list.
- On the right hand side there is a box that says Choose date function. Select Month name as the date function.

- Click Create.The Expression Preview will say "Month name of Cars Date of Sale." This is what the expression is in plain language.
- Click OK.You will now be back to the Create New Data Item screen. The expression now says (CMONTH(CARS.SALEDT)), which is the actual expression used by Microsoft FoxPro.Column Header 1 will be empty and Column Header 2 will say Cars Month of Sale.
- Enter "Month" in Column Header 1.
- Enter "of Sale" in Column Header 2.
- Click on the center alignment icon to the right of Column Header 1. This causes the column headers to be centered
- Enter March in the box that says Sample. That will be the sample value displayed in the Design Preview window.
- Change the Column width to 9 since the largest month is 9 characters. This is what the new data item will look like for Cars Month of Sale.
- Click OK. The new data item, Cars Month of Sale, appears in the Selected Items List. Cars Month of Sale will also appear in the Choose From list for any other Requests you create or modify.
What Next? Go to Lesson 8-B: Combine Data Items
Topic identifiers and source notes
Original topic: _1TT14CCZD · Help context: 51
Original filename: _1tt14cczd.htm
Alternative source versions are retained for review. See this collection’s source notes.
Original page notices
Last Updated: 2/9/2007
