Use the Old Value Argument field to map a remote operation argument to a second (old) argument in update or delete operations. Only MBOs bound to JDBC data sources support the Old Value Argument.
When updating columns with operation argument values, or deleting rows based on operation argument values, use the Old value argument field to access column values known to the device before changes. For example, if you use an update operation to modify the value of the lname column from Jones to Smith, the argument value is Smith, and if you choose to, you can map the Old value argument to Jones.
The old value is available from a drop down list, in the form old.argument_name (where argument_name is the name of the original argument, lname in the above example. The Un-map option unmaps the old value.
The old value argument does not support bigstring or bigbinary datatypes.
If a mobile business object (MBO) performs an update or delete operation, the device sends additional parameters to the server that contain the original values of the database columns mapped to the object's parameters. These original values are shared with the enterprise information system (EIS) server in specially-named arguments. That is, if an argument is named A, and if the original value is available, it is provided in the argument named old.A. By checking whether or not the original value has become stale, the EIS operation can avoid conflicting updates, also known as Optimistic Concurrency Control (OCC).
Because the current lname (Jane) is not same as old.fname (Joe) the update for D2 does not occur.
SELECT * FROM contact
DELETE FROM sampledb.dba.contact WHERE (id = :id) AND (:first_name IS NOT NULL) AND (first_name = :old.first_name)