<field>

Specify the order of the fields, along with their labels, by including <field> tags. The fields appear in the exported file in the order in which the <field> tags appear within the <exportbutton> tag. When the <field> tag is used, only the fields specified will be included in the exported file. In this context, the parent of a <field> tag must be an <exportbutton> tag.

<field -- name of fields to be part of <exportbutton> output
name Required Name of a field to be part of export
label Optional Alias to use in place of field name

Example

Copy Code
<exportbutton>
   <field name="datetime" label="Date/Time" />
   <field name="address_name" label="Address" />
</exportbutton>

<childtable>

<childtable -- child table to include in the <exportbutton> output
name Required Name of a field to be part of export

The fields of the child table can be specified with field tags just like in the parent table.

Copy Code
<exportbutton>
   <field name="datetime" label="Date/Time" />
   <field name="address_name" label="Address" />
   <childtable name="IncidentLog">
      <field name="datetime" label="Date/Time" />
      <field name="action" label="Action Taken" />
      <field name="user" />
   </childtable>
</exportbutton>

You can use the <exportbutton> tag if you have a license for the Data Manager add-on.