I was required to track the changes made on some specific fields on a table. When those fields are changed, I need to trach the RecId of that record.
So I wrote this code in the update() method Coc.
public void update()
{
boolean isMainAccountModified;
if (this.orig().Name != this.Name
|| this.orig().MainAccountId != this.MainAccountId
|| this.orig().CRExpense != this.CRExpense
|| this.orig().SuspendedDate != this.SuspendedDate)
{
isMainAccountModified = true;
}
next update();
if (isMainAccountModified)
{
COALink::markForProcessing(this.RecId);
}
}
So I wrote this code in the update() method Coc.
public void update()
{
boolean isMainAccountModified;
if (this.orig().Name != this.Name
|| this.orig().MainAccountId != this.MainAccountId
|| this.orig().CRExpense != this.CRExpense
|| this.orig().SuspendedDate != this.SuspendedDate)
{
isMainAccountModified = true;
}
next update();
if (isMainAccountModified)
{
COALink::markForProcessing(this.RecId);
}
}
*This post is locked for comments