Groovy Validation based on other column
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.
Tagged:
0