Mapping¶
Within the mapping-file the configurator specifies a backend and references at least one node. The example below gives a good overview:
{
"backend": "business-suite",
"employeeSeniorDev": {
"node": "EmployeeAll",
"constraint": "employeeSeniorDev.role = 'Senior developer'",
"orderBy": "employeeSeniorDev.surname ASC"
}
}
Please notice that:
employeeSeniorDev
is simply the subset of data withinEmployeeAll
(the name of the JSON-file discussed in the previous section, cfr. Nodedef) for which the equalityrole = 'Senior developer'
holds.- Data are arranged ascendlingly by the attribute
surname
.
With both the nodedef-file and the mapping-file at hand, the configurator can now start working on the layout of the UI. On this topic, please cfr. Data model.