The fields defined in the report layout are basically "dummy fields" simply to be used to position the fields of the final report. There is no direct link between the fields of a Notes document and the fields defined in a report. The "dummy fields" of the report layout are filled with data via script programming. Which field content is placed in which "dummy field" can be defined in either of two ways:
Assigning fields by sequence
The report properties contain the defined fields in a set order defined by the developer. This order is used to assign the data received by script programming, e.g. the first value in script is assigned to the first field, the second in the second field and so on (see the graphic).
Script functions:NTPSendField, NTPSendRTField
Assigning fields by name conventions
Every field has a unique name. This unique name can be called when transferring a field value from script. By using this field name, the fields contents are saved in the field defined.
Script functions:NTPSendFieldByName, NTPSendRTFieldByName
The data thus transferred is collected in data sets and accessed during the physical report creation. A data set is closed by using the NTPEndDocument command and then saved. After this function call all "dummy fields" are available again as empty fields.
Graphic: "Assigning fields by sequence"