Fields for each page type

When you examined each sample page, you identified the fields of interest.

You noted that each variant of a page type includes all of these fields, but the position of each field is different for each variant. This list summarizes the fields that you need to capture for each page type.

Car Rental document:

Hotel document:
  • Room Receipt page type fields:
    • Vendor
    • Arrival_Date
    • Departure_Date
    • Total_Cost
  • Meals page type fields:
    • [Item]
      • Date
      • Description
      • Cost
    • Total_Cost
  • Other Charges page type fields:
    • [Item]
      • Date
      • Category
      • Cost
    • Total_Cost
Flight document:
  • Air Ticket page type fields:
    • Vendor
    • Outbound_From, Outbound_To, Outbound_Date
    • Return_From, Return_To, Return_Date
    • Airfare
    • Taxes
    • Total_Cost

The two car rental pages both include check box options. There is a requirement in Datacap that each check box option is the child of a parent container field. On the Rental Agreement page, the three options are each a child of the same parent field. On the Optional Insurance page, each option has its own parent. The implementation is a little different depending on which method is used. So, this tutorial uses one of each method to demonstrate both techniques when you complete the implementation. The choice is more an implementation decision than a business decision, although it does affect the format of the export data.

Second, the optional hotel pages include repeating line items, each with the same structure. You do not know in advance how many items might be on a page. Datacap includes functionality for handling line item grids that are introduced in the topic Handling line item grids.