on_after_apply_record

on_after_apply_record(self, delta, params, connection)

使用范围: server

编程语言: python

父类: Item 类

描述说明

当你需要在 clientserver 上的 apply 方法执行之后重写标准的数据保存过程时, 请编写 on_after_apply_record 事件处理程序。

在演示应用程序中,使用该事件来重写计算 “发票(Invoices)” 。

“发票(Invoice)” 在 “服务器模块” 中的代码如下:

def on_after_apply_record(item, delta, params, connection):
    if not delta.rec_deleted():
        calc_invoice(delta, connection)

另请参见

服务器端编程

on_after_before_record events

on_apply events

修改数据集