Zoomed Image

AMSX Scripting Language - Command : ApplyDataMappingLike2

Summary

Apply a data mapping to a table using trailing LIKE pattern matching

Description

Same as ApplyDataMappingLike but appends a trailing % to the mapping pattern before the LIKE comparison, so a pattern "HP" will match "HP LaserJet 4000" in the source field. Use this when the mapping source values are prefixes rather than full wildcard patterns.

Parameters

ParameterDescription
cmdTable name to update
Argument 0Column in the table to update with the mapped value
Argument 1Column in DataMapping to use as the prefix pattern (e.g. SourceValue1)
Argument 2Column in the table whose value is matched against the pattern
Argument 3Column in DataMapping holding the replacement value (e.g. TargetValue1)
Argument 4DataMappingType name to filter by
Argument 5Optional extra WHERE clause to restrict which rows are updated

Syntax


ApplyDataMappingLike2 "Table name to update", "Column in the table to update with the mapped value", "Column in DataMapping to use as the prefix pattern (e.g. SourceValue1)", "Column in the table whose value is matched against the pattern", "Column in DataMapping holding the replacement value (e.g. TargetValue1)", "DataMappingType name to filter by", "Optional extra WHERE clause to restrict which rows are updated"

Return to the AMSX Command Reference