update , pre . PriceGroup CustTable, CustTableEventHandler, :
public static void preUpdateHandler(XppPrePostArgs _args)
{
CustTable custTable = _args.getThis();
if (custTable.PriceGroup != custTable.orig().PriceGroup)
info(strFmt("Change price group from '%1' to '%2'", custTable.orig().PriceGroup, custTable.PriceGroup));
}
A post , orig() .
, doUpdate, .
aosValidateUpdate on CustTable, , doUpdate. AOS.
public boolean aosValidateUpdate()
{
boolean ret = super();
if (this.PriceGroup != this.orig().PriceGroup)
info(strFmt("Change price group from '%1' to '%2'", this.orig().PriceGroup, this.PriceGroup));
return ret;
}
Application.eventUpdate.
:
, , , .
, DatabaseLog , , logType, EventUpdate. , . , logUpdate. , .
> . , (, ).
.