Share via


OpenTransaction Method

The OpenTransaction method opens a workspace transaction.

Syntax

object.OpenTransaction () As IGrooveTransaction

Return Value

The return value is the transaction that has been started.

Remarks

This method creates an IGrooveTransaction object, begins the transaction, and returns the object. The transaction locks the workspace containing the Forms tool. The workspace will not process any updates from any other members of the workspace until the transaction is ended by a call to Commit or Abort.

Note

You should always call the Commit or Abort method after you open a transaction. The Commit method makes permanent any updates to the Forms tool records that you have made. The Abort method rolls back any changes that you have made and returns the records to their previous state. If you have not updated any records, Commit and Abort are equivalent, but you should use Commit if the method is successful and reserve Abort for error conditions.

See Also

Reference

IGrooveTransaction Interface
IGrooveFormsToolUIDelegate Interface

Other Resources

Using Transactions