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

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

  }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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