VarMap.MappingAddEx2 Method

This method is similar to MappingAdd; it adds a new mapping and associates the variable name (varName) with the source name (srcName). The difference is that it also allows you to specify the write-back mode for the mapping using a value from the HDMappingBackfill enumeration, and variable types for the variable and source from the HDVARTYPE enumeration. (See also MappingAdd2.)

This method was introduced with the release of HotDocs 2005 SP2.

Syntax

void MappingAddEx2 ( string varName, HotDocs.HDVARTYPE varType, string srcName, HotDocs.HDVARTYPE srcType, HotDocs.HDMappingBackfill backfill )

Parameters Description
varName The name of the HotDocs variable to map.
varType The type of the HotDocs variable to map.
srcName The name of the source for the mapping.
srcType The type of the source for the mapping.
backfill The write-back mode for the mapping.

Return Value

An integer indicating the index of the new Value within the Answer object.