Programming Guide |
Gets before-image data
#include <tmusubs.h>char *sm_i_get_tv_bi_data(char *field_name, int occurrence, char *tv);char *sm_o_get_tv_bi_data(int field_number, int occurrence, char *tv);
field_name
field_number- The field whose before-image data is requested.
occurrence
- The field's occurrence number. A negative number refers to a deleted occurrence.
tv
- The name of a table view in a transaction that is on the same screen as the specified field. If null or empty, the current transaction manager command determines the current table view to search for the before image.
C only
sm_get_tv_bi_data
obtains the before-image values for the specified field and occurrence, from the point of view of the specified table view.These routines are not to be used when previous release behavior has been set by calling sm_tm_old_bi_context. However, if the table view name is supplied, it will be used, despite the
sm_tm_old_bi_context
setting.To obtain the table view containing the specified field, use
fieldName
\xde tv
as thetv
parameter.
sm_get_bi_data, sm_tm_old_bi_context