Mapping Types - Mappings with Defaults

<< Click to Display Table of Contents >>

EQuIS 7  >>  EDP > Customizability >

Mapping Types - Mappings with Defaults

Defaults within table mappings are used when user input is not required in order to add a record. A default is declared by the default attribute in the field tag. Below is an excerpt from an XSD that illustrates the use of default within a table mapping.

 

<edd:table mode="create" target="dt_location">

 

<edd:field source="sys_loc_code" target="sys_loc_code" />

 

           <edd:field default="m" target="units" />

 

... other fields omitted ...

 

</edd:table>

 

 

 

<edd:table mode="lookup" target="dt_equipment">

 

           <edd:lookup source="equipment_code" target="equipment_code" />

 

           <edd:field default="SG" target="equipment_type" />

 

</edd:table>