Editing and Validating Table Cells
- 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>
.
editor-*
attributes on the column—see the
VDL 5.6 Reference for further information.
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 ]
Code editordeclarations ... !@insight.manage input !@insight.alias mySelector FracVal: set of integer ... end-declarations
If you are using<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>
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.
© 2001-2024 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.