Saving templates

To save a new template, select Save from the pop-up menu in the Export/Import Template view, and give the template a name and optionally a comment that identifies its use.

The sample shows the Save Template dialog box. At top is the label Templates : and a box that displays the selected template t _ address. Under this, a list of available templates is displayed. It includes t _ address and t _ phone. At bottom is a Comments box with the entry Employee Address Book.

The template is stored inside the DataWindow object in the PBL.

After saving a template with a DataWindow object, you can see its definition in the Source editor for the DataWindow object. For example, this is part of the source for a DataWindow that has two templates. The templates have required elements only:

export.xml(usetemplate="t_address"
   template=(comment="Employee Phone Book"
      name="t_phone" xml="<d_emplist><d_emplist_row
      __pbband=~"detail~"/></d_emplist>")
   template=(comment="Employee Address Book"
      name="t_address" xml="<d_emplist><d_emplist_row
      __pbband=~"detail~"/></d_emplist>"))