How to determine which field has been updated?

What is the correct way to determine which field has been changed in the update() method in a table?

I know this is possible in modifiedField() via fieldId , but it's too early.

+4
source share
1 answer

The method you are looking for is Orig ()

Look in the update () method of BOMTable or BankAccountTrans

There is a method in the table called orig that provides the values ​​of the last saved state of the current record.

a good example and description can be found here 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 } ... 
+5
source

All Articles