• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Validators

 
Oscar Hansen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a custom validator for variable 'amount' in my domain class, such that the new value should be greater than previous by 0.50.

For example, lets say the previous value was 1.0, next time the value should be atleast: [previous value + 0.50] or more.

Thanks in advance for the help
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you gotten so far? Show us where you're stuck and we'll help you the rest of the way.
 
Oscar Hansen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


We can do something like that or use creteria to get the max from the table. I got the problem resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic