Programming Guide |
Changes the transaction manager to update mode
int sm_tm_command ("COPY_FOR_UPDATE");
COPY_FOR_UPDATE
changes the current mode to update. This allows the data currently displayed on the screen to be modified, as though it had been fetched from the database. After you selectCOPY_FOR_UPDATE
, the transaction manager initializes before image processing.If you edit the data and select
SAVE
, the transaction manager generates statements as if the data now on the screen had come from aSELECT
command. If corresponding data is not in the database, the results might not be what you expect.Push buttons and menu selections for the
COPY_FOR_UPDATE
command can choose to set the class property tocontinue_button
since, by default,continue_button
is active in view or update modes.
COPY_FOR_UPDATE
is available from any mode. SelectSAVE
after you finish your edits.
The following requests can be generated by the
COPY_FOR_UPDATE
command to ascertain whether the changes from the previous command have been saved and, if desired, discard those changes:
TM_PRE_CLOSE
(described underCLOSE
)
TM_CLOSE
(described underCLOSE
)
TM_QUERY
(described underCLOSE
)
TM_DISCARD
(described underCLOSE
)
TM_POST_CLOSE
(described underCLOSE
)