dvm:lookupValue
The dvm:lookupValue
function returns a string by looking up the value for the target column in a domain value map, where the source column contains the given source value.
-
The following code shows an example of
dvm:lookupValue
function syntax.dvm:lookupValue(dvmMetadataURI as string, SourceColumnName as string, SourceValue as string, TargetColumnName as string, DefaultValue as string) as string
The following code provides an example of
dvm:lookupValue
function use.dvm:lookupValue('cityMap.dvm','CityCodes','BO', 'CityNames', 'CouldNotBeFound')
-
The following code shows another example of
dvm:lookupValue
function syntax:dvm:lookupValue(dvmMetadataURI as string, SourceColumnName as string, SourceValue as string, TargetColumnName as string, DefaultValue as string, (QualifierSourceColumn as string, QualifierSourceValue as string)*) as string
The following code provides another example of
dvm:lookupValue
function use:dvm:lookupValue ('cityMap.dvm','CityCodes','BO','CityNames', 'CouldNotBeFound', 'State', 'Massachusetts')
Arguments
-
dvmMetadataURI
- The domain value map URI. -
SourceColumnName
- The source column name. -
SourceValue
- The source value (an XPath expression bound to the source document of the XSLT transformation). -
TargetColumnName
- The target column name. -
DefaultValue
- If the value is not found, then the default value is returned. -
QualifierSourceColumn
: The name of the qualifier column. -
QualifierSourceValue
: The value of the qualifier.