Keeping track of changes of HopObject in onPersist()
Julian Tree <[email protected]> Mon, 16 Jun 2008 16:18:49 -0400
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
I find onPerisist trigger very useful.
Is there a way to find out if a key/field has being changed in the
HopObject? Like new value of the field vs old(stored) valued of the
field, like in a stored procedure in at SQL database.
For example something like below would be userful:
this.firstName = req.postParams.firstName;
this.onPersist = function(){
if(this.firstName.getOldValue() == this.firstName){
//user has changed the value of the firstName
// do something big
}
}
Julian