Define model column mappings
Use the procedure in this topic to define model column mappings.
The table columns available for mapping are based on the table model. If a field is selected, it is defined for the line item.
-
Open the
Table Locator
Properties.
The properties for the Table Locator are displayed.
- Select the Cells tab.
- In the Model Column Mapping group, select a column from the list. The columns are from the table model.
-
In the
Cell Settings group, configure the following settings.
Setting
Description
Model column
This setting shows the assigned model column of the currently selected table cell. By changing this value the currently selected cell is assigned to the new model column. (Default: empty)
Optional
Select if the cell may not be present in all line items. (Default: Cleared)
Allow big gaps
Select if the cell can have big gaps between the words. If you leave this unchecked, words within this cell cannot be further apart than 100 pixels. (Default: Cleared)
Startline
This value shows the text line that indicates where the cell begins. If the value is -1, increase the height of the cell. For the value to become positive, there should be enough space between the text and cell border. (Default: empty)
Cell type
Select the type of data expected to be found in the cell from the list. This setting is recognized automatically when you draw the cell, but you can change it here if necessary. (Default: empty)
Min. number of lines
For a cell where the number of lines can vary from one row to another, you can define a minimum number of lines the cell can have. (Default: 1)
Max. number of lines
For a cell where the number of lines can vary from one row to another, you can define a maximum number of lines the cell can have. (Default: 1)
For a previous version this functionality was achieved by defining a number of lines for the cell and additional script programming. This solution still works, but you also can update the Table Locator and use min./max. number of lines values instead.
-
In the
Cells area at the bottom of the window, draw a box around the line item that
corresponds to the selected cell.
For example, to select "Total Price," draw a box around the total price value in the line item.
Adjust the size of the box to fit all table rows.
The cell type is recognized automatically. However, you can change it as needed. If the number of rows can vary, set the minimum and maximum number of lines.
A check mark is displayed in the Model Column Mapping group to indicate the column is defined.
- Optional. Define an anchor by selecting Draw Anchor and drawing a box around a column.
- Open a test document and select Test to test your settings.
- Optional. Select Close to close the locator properties window.
- Save the changes to your project.