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:
| 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 ✓ |
Procedure
To create data fields:
- Confirm that the document hierarchy is still locked for editing.
- Expand the Rental_Agreement page, select the default Field node, and change the name from Field to Pickup_Date.
- Right-click the Rental_Agreement page and choose .
- Type 6 in the box and press Enter.
- Rename the new fields Pickup_Location, Return_Date, Return_Location, Car_Type, Options, and Total_Cost.
- Right-click the Options field and choose .
- Type 3 in the box and press Enter.
- Expand the Options and rename the new fields Nav_System, Child_Seat, and Fuel_Service.
- Click Save.
- 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.
- 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.
- 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.
- Click Save after each page.
- Click Save. The complete document hierarchy for TravelDocs includes three document types, each of which contain at least one page type and multiple fields.