Initializing help system before first use

# Editing and Validating Table Cells

All array data can be made editable in a table.
Achieve this by:

- selecting the table column in the View Designer and selecting the Editable checkbox.
- opening the code editor and adding the attribute `editable="true"` to the `<vdl-table-column>` or `<vdl-datagrid-column>`.

By default, the table detects the data types of the array elements and presents suitable input controls whenever you click on a cell in an editable column. The edit behavior can be customized using any of the `editor-*` attributes on the column—see the VDL 5.8 Reference for further information.
The input control type can be changed using the `editor-type` attribute. A list of select options is displayed either by:

- Adding the `editor-options` attribute and supplying an expression that provides the options.

      editor-options="=[1,2,3,4,5]

- Adding the `editor-options-set` attribute and specifying a set entity name to provide the options.

      FracVal:[1 2 3 4 5 6 7 8 9 ]

      declarations
      ...
       !@insight.manage input
       !@insight.alias
       mySelector
       FracVal: set of integer
      ...
       end-declarations

  Code editor

      <vdl-table>
       <vdl-table-column entity="Shares_Return" editable="true" editor type="select" editor-options-set="FracVal"></vdl-table-column>
       <vdl-table-column entity="Shares_fraction"></vdl-table-column>
      </vdl-table>

  If you are using `vdl-datagrid`, the attributes and format remain the same:

      <vdl-datagrid>
       <vdl-datagrid-column entity="Shares_Return" editable="true" editor type="select" editor-options-set="FracVal"></vdl-datagrid-column>
       <vdl-datagrid-column entity="Shares_fraction"></vdl-datagrid-column>
      </vdl-table>

Validation is applied across all editable cells in a table. The standard, built-in validation checks that the input value is of the same data type as the underlying model entity, but it is also possible to supply custom validators for table columns.

Validation is applied as you type or select a value. When a value becomes invalid, the cell is highlighted. If you try to save an invalid value, a message dialog will present the validation failure message. See Using Validators for more information.

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.