For Every Record

This action executes subordinate nested actions multiple times. All of the nested actions are executed in a loop as many times as there are records in the form table with a connected database.

Settings group selects the records.

  • Form table: form table that contains records for which an action should repeat.

  • Use all records: repeats an action for all records in a defined table.

  • Use selected record: repeats an action for the selected records only.

If you use the action Execute SQL Statement with enabled option Iterate for Every Record, Loftware automatically inserts For every Record action. A note appears about the automatic mapping of your variables.

UUID-fd1e1d36-7791-3823-5d23-214a3939d49d.png
UUID-3c2cf06d-cd0e-86cb-9e53-23a731f14b58.png

Prompt variables on your label automatically connect to your database fields with the same names. See the instructions on how to create your solutions:

[Important] Important

When you create your solution with a database connection, use prompt variables on your labels instead of database fields.

Use the same names for prompt variables as are defined for database fields, for example:

Database field: food_products_1c.ProdCode

Prompt variable on your label: ProdCode

Loftware then automatically maps corresponding variables with database fields.

Example 61. Example

Your solution is connected to your database. Your configuration filters requested database records and you want to print filtered records on your labels.

Use action For Every Record and nest actions to print your labels.

UUID-273b54f1-cecc-107f-6081-22d8b96ac772.png