Use the Old Value Argument field to map a mobile business object(MBO) parameter to a second (old) argument in update or delete operations.
Use the Old value argument field to change an update or delete operation's parameter from its current value to a new value, while still allowing access to the parameter through the previously defined argument. For example, if you use the update/delete operation of an MBO to modify/delete the lname parameter's argument 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)