The template (XML) file should contain an input section that defines the input node for the equipment database (DBF) file source. The input node is defined within the XML template node and contains the list of database fields that are to be available for use by the template. Only one input node can to be defined within the template.
The example below can be used without modification and lists the complete set of the available data fields from the equipment database (DBF) file.
There are three built-in functions that can be used to manipulate strings in the XML template:
These functions are the same as used in the TagGen XML templates and are described in Built-in Functions.
Example
<!-- ===================================================
Input Section - Equipment
===================================================
-->
<input name="equipment" file="equip.dbf" desc="Equipment Database">
<field name="name"></field>
<field name="cluster"></field>
<field name="type"></field>
<field name="iodevice"></field>
<array name="iodevice_list">{Split('{iodevice}',',')}</array>
<field name="tagprefix"></field>
<field name="area"></field>
<field name="page"></field>
<array name="page_list">{Split('{page}',',')}</array>
<field name="help"></field>
<field name="location"></field>
<field name="comment"></field>
<field name="scheduled"></field>
<field name="defstate"></field>
<field name="param"></field>
<array name="param_list">{ToProperty('{param}','=',';')}</array>
<field name="custom1"></field>
<field name="custom2"></field>
<field name="custom3"></field>
<field name="custom4"></field>
<field name="custom5"></field>
<field name="custom6"></field>
<field name="custom7"></field>
<field name="custom8"></field>
</input>
See Also
Published June 2018