Initializing help system before first use

# Adding and Removing Rows

Controls can be added to tables that allow end users to add and remove rows, updating the model data accordingly.
Enable this feature by either:

- selecting the table in the View Designer and editing the Add and remove row attribute.
- opening the Code editor and setting `add-remove-row` attribute to `true`.

Note: The table must also have at least one column defined as editable.
When a user presses the Add New Row button, a dialog prompts the user to select indices based on entering values obtained from the index sets.
Figure : 1. Add New Row button
The `add-remove-row` attribute can also be set to `addrow-autoinc`. In this mode, the add row button will immediately add a new row to a table. The index of the new row is automatically generated by incrementing the maximum existing index value.
Note: This feature can only be used with a table in which the entities have a single, integer dimension.
Rows can be selected for removal by clicking on one of the index cells and then pressing the Delete Selected Row button.
Figure : 2. Delete Selected Row button
Tip: Mosel developers should avoid using this feature with dense arrays. Try to use sparse arrays (declared as dynamic array) when using add-remove-row.
Parent Topic Using VDL tables

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.