Problem solve Get help with specific problems with your technologies, process and projects.

Best way to check if a certain field has been changed

What is the best method to check if a certain field has been changed? In a Purchase Order database, sometimes the amount is changed if the specs change. If this happens our accounting department needs to be made aware of the change. So, I'm looking for a way to compare before and after values of the amount field and then performing various actions if the value has changed.
Say the field you want to track is called Amount. Use a Computed for Display field with formula: @If(@IsDocBeingLoaded; Amount; @ThisValue). Write code in the Postsave event that compares the original value with the new value, and generate e-mail notices or whatever to let people know.

Do you have comments on this Ask the Expert Q&A? Let us know.

Dig Deeper on Lotus Notes Domino Formula Language



  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...