Defining the document hierarchy for line item grids
A line item grid is a structure of repeating items, each of which typically contains several fields. To set up the document hierarchy, you must define the region of the page that can include line items. In addition, you must define the structure of one line item in terms of its fields.
You can define only one line item in the document hierarchy.
At run time, Datacap expands
the runtime hierarchy as needed to accommodate however many line items
it finds.
<P id="TM000001"> <--Page
<F id="Grid_region"> <--Grid region
<F id="Line_item0"> <--First line item
<F id="Item"> etc. </F> <--Item field
<F id="Description"> etc. </F> <--Description field
<F id="Cost"> etc. </F> <--Cost field
</F>
<F id="Line_item1"> <--Second line item
<F id="Item"> etc. </F> <--Item field
<F id="Description"> etc. </F> <--Description field
<F id="Cost"> etc. </F> <--Cost field
</F>
<F id="Line_item2"> <--Third line item
<F id="Item"> etc. </F> <--Item field
<F id="Description"> etc. </F> <--Description field
<F id="Cost"> etc. </F> <--Cost field
</F>
etc.