Mappings

Mappings are generally needed when datasets or Lists are assigned to other Lists with different properties.

This example maps the result of a query (StadiumTestData_CitiesSelect) with the properties of Name and CountryCode to a control that expects text and value properties.

await ~.StadiumTestData_CitiesSelect.Results.mapAsync(async MapItem => ({
	text: MapItem.Name,
	value: MapItem.CountryCode
}))

Mapping Editor

Properties of an incoming List of objects can be mapped to List properties when names of the properties of the assigned data differ from the List Item Type properties. For this purpose, select the Field Mapping option in the List Value property dropdown.

The Mapping Editor displays information in two columns, the target information on the left and the source on the right.

The target information column (left) provides the

  1. Target List

  2. All mappable properties of the Target

The source column (right) provides

  1. A dropdown to select the source data List

  2. Input fields to define the mapping for source List properties. The MapItem option in the dropdown represents a List Item. Where such an item consists of a known type, the type properties are provided for selection.

Last updated

Was this helpful?