Groovy Validation on Single Column — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood: Oracle Cloud SCM and Purchasing

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")

}}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!