![]() | Programming Guide | ![]() |
Fetches the previous set of rows from the file
int sm_tm_command ("CONTINUE_UP [tableViewName[tableViewScope] ]");
tableViewName- The name of a table view in the current transaction. This parameter is case sensitive.
If
tableViewNameis specified, the command is applied according to thetableViewScopeparameter. Since the entire table view tree might not be included, this is known as a partial command, andsm_tm_commandsetsTM_FULLto 0.If
tableViewNameis not specified, the command is applied for each table/server view, starting with the root table view. This is known as a full command, andsm_tm_commandsetsTM_FULLto 1.tableViewScope- One of the following parameters, which must be preceded by a table view name.
TV_AND_BELOWwhich applies the command to the specified table view and all table views below it on the tree. If no parameter is specified, the transaction manager acts as thoughTV_AND_BELOWwas supplied.
BELOW_TVwhich applies the command to the table views below the specified table view.
TV_ONLYwhich applies the command to the specified table view only.
SV_ONLYwhich applies the command only to the table views of the specified server view.
CONTINUE_UP(not available in Web applications or three-tier processing) fetches the previous set of rows from the file. The availability of this command is dependent on the setting of thefetch_directionsproperty for the server view or screen. If thefetch_directionsproperty is set toPV_CONT_ALWAYS(Up/ Down-all modes), this command is available in update or view mode. If thefetch_directionsproperty is set toPV_CONT_VIEW_ONLY(Up/Down-view mode), this command is available only in view mode. Otherwise, an error is generated. For more information on setting the Fetch Directions property, refer to "Scrolling Through the Select Set" in Application Development Guide.If your screen has multiple table views, the transaction manager issues a
DBMSCONTINUE_UPfor the specified table view and any table views linked to it via server links. This displays the previous set of rows for that server view. ThenSELECTorVIEWprocessing is done for any additional child table views.You should be aware that the data displayed with this command is from a continuation file. It is not re-fetched from the database. Therefore, any updates made to the data in this server view either by you, or by another user, are not displayed. In order to display those updates, you must again fetch the data from the database with a
VIEWorSELECTcommand.The advantage of using Panther's continuation file is that it prevents having shared locks on data. However, if the
fetch_directionsproperty is set toPV_CONT_ALWAYS(Up/Down-all modes), you are responsible for implementing the necessary locking scheme for concurrent users. For more information on using the Version Column property to implement optimistic locking, refer to "Implementing Optimistic Locking" in Application Development Guide.If you want to use the database engine's facilities for non-sequential scrolling, you need to add processing for the request events to the engine-specific transaction model.
Push buttons and menu selections for the
CONTINUE_UPcommand can choose to set the class property tocontinue_buttonwhich activates the option only in view and update modes or tocontinue_view_buttonwhich activates the option only in view mode.
Use
CONTINUE_UPafterSELECTorVIEWwhich generate a database query and display the first set of query results or after any otherCONTINUEcommand.
Table 8-13 Request event for CONTINUE_UP
Request Traversal Typical Processing
TM_CONTINUE_UPThe table views in the specified server view
See below
The following requests can be generated by the
CONTINUE_UPcommand to ascertain if the changes from the previous command have been saved and, if desired, to discard those changes:
TM_PRE_CLOSE(described underCLOSE)
TM_CLOSE(described underCLOSE)
TM_QUERY(described underCLOSE)
The following requests can also be generated for any child table views:
TM_PRE_SELECT(described underSELECT)
TM_SELECT(described underSELECT)
TM_POST_SELECT(described underSELECT)
TM_PRE_VIEW(described underVIEW)
If
TM_VIEWorTM_SELECTfor a parent table view returns no data,TM_CLEARrequests are generated for all subordinate table views, but not for table views at the same level of the tree.TM_CLEARrequests are described underCLEAR.
![]()
![]()
![]()
![]()