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 template is stored inside the DataWindow object in the PBL.
After saving a template with a DataWindow object, you can export the definition to a text file using the Export item on the DataWindow object’s pop-up menu in the Solution Explorer. 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>"))