Error with a Groovy code
Hello,
I am trying to validate the data on Form load event. But getting an error which is not very clear.
PLease advice!
Error:
A method called by the script failed on line: 3, with error: Kindly Save the Form.
Code to validate the number
def mbUs = messageBundle( ["validation.DataChanged":"Kindly Save the Form."])
def mbl = messageBundleLoader(["en" : mbUs])
operation.grid.dataCellIterator('59011999').each {
if(it.data > 0 ) {
println("$it.memberNames, cell data: $it.data")
throwVetoException(mbl, "validation.DataChanged") }
}
Tagged:
0