Groovy Validation on Single Column
The below groovy scripts is applied on the whole grid whereas I just wanted to apply for one column i.e. "Person FTE". Kindly, need help with the correcting this syntax. Thanks.
operation.grid.dataCellIterator {DataCell cell -> cell.edited && 'Person FTE'}.each { DataCell cell ->
if (cell.data < 0) {
cell.addValidationError(0xFF6347, "Cannot enter negative numbers")
}}
Tagged:
0