Field transforms & row rules
A field mapping doesn’t have to copy a source value straight through. Each mapping can apply a value transform that changes how the value is produced, and each mapping reads a particular set of source rows. Together these let one map handle documents whose data needs some reshaping before it fits your definition.
Value transforms
Section titled “Value transforms”You choose the transform in Value Transform in the Map Selection to Property dialog:
| Transform | What it does | What you fill in |
|---|---|---|
| Direct copy | Uses the source value as it is. This is the default. | Nothing. |
| Date format conversion | Reads a date in one format and writes it in another. | Input date format (the pattern of the source value, for example %d/%m/%Y) and Output date format (the pattern written out, for example %Y-%m-%d). |
| Static default when empty | Uses a fixed value when the source cell is empty. | Default value, for example NOT TESTED. |
| Concatenate source fields | Joins several named source fields into one value. Empty fields are skipped. | Source fields to join (in order) and a Separator. |

Select Apply Mapping, then Save at the top of the map.
See the transforms on a certificate
Section titled “See the transforms on a certificate”When a certificate is built with the map, its review screen shows each value with its source. Transformed values appear as produced: a joined product name, a reformatted date, or the default value where the source cell was blank.

Which source rows a mapping reads
Section titled “Which source rows a mapping reads”Each mapping reads its rows in one of three ways:
- One value: a Single Cell mapping reads exactly the cell you selected. For XML and JSON sources, a field mapped from the first record reads the first matching row.
- One value from a particular row: for XML and JSON sources, when you map a value from a row other than the first, DASH remembers that row by its key column (for example the test name) and reads the value from the matching row in every document.
- One instance per row: a Column (Each Row) mapping reads every row of the column and creates one instance of the repeating entity per row. For XML and JSON sources, the same behaviour is set for a repeating entity with Enable Each Row Mode under Repeating Entity Mappings (it then reads Each Row Mode: ON).
Putting them together
Section titled “Putting them together”One mapping can use both. For example, map a results column with Column (Each Row) so that every
row becomes a result, and use Static default when empty so a blank result is released as
NOT TESTED instead of an empty value.