wwBusinessObject::lCompareUpdates

Will send updates by only updating fields that have changed.

This flag causes the various Load() methods to create an oOrigData member in addition to the oData member. This oOrigDataMember is used when dynamically creating Update statements to be sent to SQL Server or over the Web.

o.lCompareUpdates

Remarks

Does not compare updates for Fox data as Fox Data simply uses GATHER NAME. It works for SQL and Web data as it can save significant network traffic when saving data.

Note: That it will however cause a little extra overhead in the client code as an extra copy of the data is made everytime an object is loaded as well as the comparison when creating the SQL statement.

Having the oOrigData record might also be useful in other ways in your application such as restoring data to its original state in the UI if the user aborts without having to reload from disk.

See also:

Class wwBusinessObject

© West Wind Technologies, 1996-2019 • Updated: 01/22/03
Comment or report problem with topic