Specifications
Exporting to XML
386 InfoMaker
For reports with more than one group, when you generate a new default
template, each group after the first is identified with a special icon and a check
on the pop-up menu next to the Starts Group Header item.
When the Iterate Header for Groups check box is selected, each XML fragment
in the header section between a Group Header element and the next Group
Header element or Detail Start element is iterated.
In the template shown in the previous illustration, sales are grouped by
customer ID, then by order ID. The customer group header has attributes for
the customer’s ID and first and last names. The order group header has
attributes for the order ID and date. The following illustration shows the report
in the Design view:
The following XML output shows the first iteration of the customer group
header and the first and second iterations of the order group header:
<?xml version="1.0" encoding="UTF-16LE" standalone="no"?>
<d_customer>
<customer id="101" fname="Michaels" lname="Devlin">
<order id="2001" date="1996-03-14">
<order_item>
<sales_order_items_line_id>1</sales_order_items_line_id>
<sales_order_items_prod_id>300</sales_order_items_prod_id>
<sales_order_items_quantity>12</sales_order_items_quantity>