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

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close