error related to transaction?

Hello,

I have a method in a table view that is shown in a tab panel. The method opens a single record of the related data in a form dialog.

When the form is opened, I start a transaction. The form, then, has two buttons, ‘Save’ and ‘Cancel’. If the user cancels, the transaction is rolled back.

To solve the problem of the user hitting the close box of the window (the “x”), I have a method that is executed onHide of that form (in dialog). That method checks, if a transaction is active and if yes, asks the user if he wants to save data or not.

Since a few days ago I have a behaviour where the user is asked to save or not when the form is shown (it should only be fired when the form is hidden)?! This only happens after a few times opening the form.

It is hard to explain, but I hope you understood. In the log file I also get an error. I included the log file.

Thanks.

Do you have a reproduceable (test) solution for this?

Does this also happens in a client?

see next post…

I was afraid you would ask for this :?

I’ll see if I can create a sample solution that demonstrates the issue. It might be that I do something wrong. But if it is, it was not creating these errors in earlier versions and probably shouldn’t now…

I’ll test from the client tomorrow.

OK. attached you find a solution that shows my trouble. Maybe you can figure out what I do wrong :cry:

You have to hit that “…” button several times to see the issue.