onHide method does not honor return false anymore

Hello,

I just discovered that

return false

in an onHide method of a form does not keep the form open anymore. That is a big bummer, because transactions stay alive etc.

It seems to happen only if a transaction is running. If I attach a method to the onHide method of a form with return false, it does work if the formInDialog is shown like this

application.showFormInDialog(myForm)

If instead I do

databaseManager.startTransaction()
application.showFormInDialog(myForm)

you can simply hit escape and the form is closed, leaving the transaction open.

Could this be fixed urgently, please? I have also created case #131590.

Thanks
Patrick

I just discovered that this does not always happen. Just trying to figure when it goes wrong…

Hi Partick,

You’re sure you are not testing this in Developer with the debugger enabled?
Because then return false will be ignored in the onHide event.

Hope this helps.

if that is the case then that is all fixed in Servoy 4.0
there modal dialogs really stay modal no matter if you debug it or not

It might have been the case. It’s the kind of stuff you forget after a while. At least, I cannot reproduce it anymore.