Copies current values of a range of occurrences to before images#include <tmusubs.h>int sm_bi_copy(void);
sm_bi_copywrites the current values of a range of occurrences to their respective before-image occurrences. The starting occurrence is the value of sm_tm_inquire
("TM_OCC") and the range of occurrences is determined by the value of
TM_OCC_COUNThas a value of
sm_bi_copygets the number of occurrences in the table view. If
TM_OCChas a value of
sm_bi_copycopies every occurrence in the table view. Use sm_tm_iset to set the values of
The SELECT transaction command calls
sm_bi_copyfor updatable and non-updatable table views. It sets
TM_OCCto the first occurrence where data was fetched; it sets
TM_OCC_COUNTto the number of rows fetched. Therefore,
sm_bi_copycopies each selected occurrence.
The standard transaction models call
TM_POST_SAVErequest if the current mode is
TM_UPDATE_MODEand sm_bi_initialize was successful. Notice that the models set
sm_bi_copy. This ensures that all onscreen occurrences are copied.