Creating data fields

Each page type requires multiple field definitions.

About this task

The business requirements specification defines the following fields for each page type:

Table 1. Fields for each page type
Rental_Agreement Optional_Insurance Air_Ticket Room_Receipt

Vendor x

Vendor x

Vendor x

Vendor x

Pickup_Date

CDW

Outbound_From

Arrival_Date

Pickup_Location

CDW_Option

Outbound_To

Departure_Date

Return_Date

PAI

Outbound_Date

Total_Cost

Return_Location

PAI_Option

Return_From

 

Car_Type

PEP

Return_To

 

Options

PEP_Option

Return_Date

 

Nav_System

ELP

Airfare

 

Child_Seat

ELP_Option

Taxes

 

Fuel_Service

Total_Cost x

Total_Cost

 

Total_Cost

     
To simplify the application slightly, you can skip the fields marked x.

Procedure

To create data fields:

  1. Confirm that the document hierarchy is still locked for editing.
  2. Expand the Rental_Agreement page, select the default Field node, and change the name from Field to Pickup_Date.
  3. Right-click the Rental_Agreement page and choose Add multiple > Fields.
  4. Type 6 in the box and press Enter.
  5. Rename the new fields Pickup_Location, Return_Date, Return_Location, Car_Type, Options, and Total_Cost.
  6. Right-click the Options field and choose Add multiple > Fields.
  7. Type 3 in the box and press Enter.
  8. Expand the Options and rename the new fields Nav_System, Child_Seat, and Fuel_Service.
  9. Click Save.
  10. Use the same procedure to add the fields to the Optional_Insurance page. The Optional_Insurance page has four fields, each of which has one subfield.
  11. Click Save. The Rental_Agreement, Room_Receipt, and Air_Ticket pages all have a field that is called Total Cost. When you add this field to the Room_Receipt and Air_Ticket pages, Datacap Studio displays a message that prompts you to reference the existing object. Click Yes. You see the same message when you add the Return_Date field to the Air_Ticket page. Click Yes again. For an explanation, see Sharing field definitions across the document hierarchy.
  12. Repeat these steps for the Air_Ticket and Room_Receipt pages to add the fields marked in the table. The Air_Ticket page has nine fields and the Room_Receipt page has three fields.
  13. Click Save after each page.
  14. Click Save. The complete document hierarchy for TravelDocs includes three document types, each of which contain at least one page type and multiple fields.