When putting code in the update method of a table, you want to find out whether the field you are updating has actually changed. This code can be found under the CustTable\update method.
It uses the recVersion to figure out if the record has changed.
void update(boolean _updateSmmBusRelTable = true, boolean _updateParty = true)
{
CustTable this_Orig = this.orig();
recVersion rv = this_Orig.RecVersion;
;
.
.
.
if(this.RecVersion != rv && this_Orig.Name != this.Name)
{
//do your thang!
}
.
.
.
}
No comments:
Post a Comment