次の方法で共有


xApplication.Eventupdate(Common, Common, Object[]) Method

Definition

Serves as a callback that is called by the kernel when a record in a table is updated, provided that the kernel has been set up to monitor records in that table.

public:
 virtual void Eventupdate(Microsoft::Dynamics::Ax::Xpp::Common ^ recordOrig, Microsoft::Dynamics::Ax::Xpp::Common ^ recordUpdated, cli::array <System::Object ^> ^ changedFields);
public virtual void Eventupdate (Microsoft.Dynamics.Ax.Xpp.Common recordOrig, Microsoft.Dynamics.Ax.Xpp.Common recordUpdated, object[] changedFields);
abstract member Eventupdate : Microsoft.Dynamics.Ax.Xpp.Common * Microsoft.Dynamics.Ax.Xpp.Common * obj[] -> unit
override this.Eventupdate : Microsoft.Dynamics.Ax.Xpp.Common * Microsoft.Dynamics.Ax.Xpp.Common * obj[] -> unit
Public Overridable Sub Eventupdate (recordOrig As Common, recordUpdated As Common, changedFields As Object())

Parameters

recordOrig
Common

A container of all changed fields.

recordUpdated
Common

A container of all changed fields.

changedFields
Object[]

A container of all changed fields.

Remarks

A developer can set up the kernel to call back on updates for a given table. This is accomplished by inserting a record into the DatabaseLog kernel table with all fields set to relevant values, which includes setting the field logType to EventUpdate. It is possible to set up the kernel to call back whenever a record is updated or when a specific field is updated. This is very similar to how the logUpdate method is called and set up. The call of this method will be in the transaction in which the record is updated.

Applies to