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?
Thanks
Butterfly

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