确定 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/