using transaction

I would like to use the method “useLocalTransactionMode()” to lock a document.

I have two buttons: one for locking a document and the other one for updating data. That means at first i must click on the button “Lock” to lock a document, and then on button “Update” to update data.

Could someone please help me?

Please take a look at the example code provided in “” in the JavaTaminoAPIExamples.jar file. The performUpdate() method shows how to use transactions.
I hope this helps.