Groovy Validation based on other 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 based on other column

edited Dec 3, 2024 7:26AM in Planning 9 comments

Hi,

Please need help with below. I want to make "Departure Date" read-only if "New Pos Status" != 2. The below scripts runs without error but doesn't perform the expected job. Thanks.

operation.grid.dataCellIterator('Departure Date').each { DataCell cell ->
if (cell.getMemberName("Account") == "New Pos Status" && cell.data != 2) {
cell.setForceReadOnly(true)
} }

Regards,

Adnan Arshad.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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