axapta - 如何确定哪个字段已更新?

标签 axapta dynamics-ax-2009 x++

确定 update() 中哪个字段已更改的正确方法是什么? table 上的方法?

我知道在 modifiedField() 中是可能的通过 fieldId但这还为时过早。

最佳答案

您正在寻找的方法是 Orig()

查看 BOMTable 或 BankAccountTrans 的 update() 方法

该表有一个名为 orig 的方法,该方法公开当前记录的最后保存状态的值。

一个很好的例子和描述可以在这里找到
http://msdax.blogspot.co.uk/2007/07/programming-of-basic-methods-of-tables.html

 void update () {
     CustTable this_Orig = this.orig ();
     ;

     if (this_Orig.custGroup! = this.custGroup)
     {
       //Cust group is changing on this update
     }
     ...

关于axapta - 如何确定哪个字段已更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14829618/

相关文章:

declaration - 在 x++ 中声明后真的需要分号吗?

axapta - AX2012 和 UIPath

c# - 我可以在 .NET/C# 中为 Microsoft Dynamics AX 编码吗?

axapta - 如何在 Dynamics AX 中按 ID 查找表名称

axapta - 使用 OR 对两列添加条件到表单数据源

axapta - Dynamics AX x++ 无法关闭第一个表单

axapta - 通过 XPO 导出更新标签

axapta - 嵌套 notExists 加入 X++ (Dynamics AX3.0)

axapta - 在 SysQueryForm AX2009 中打开保存在表中的查询

axapta - 根据字段值显示枚举值