Clicking in the closebox of the window of a Solution of Servoy will not only close the solution but also shut down the programm. I would like to avoid both.
With starting a transaction you should be able to avoid undesired canceling of a script. Clicking the closebox will show a dialog which asks for commiting the running transaction: clicking Yes will save changes, but clicking No will also save changes, in every case servoy will be shut down.
Is there a way to catch all attempts of closing a window and handling this?
(In filemaker with the comand: Allow User Abort it is possible to prohibit closing a Window at runtime.)
Thank you for this advise!
We’ve found the new menu-item called solution-settings in tools for choosing a startUp and closing method out of the existing global methods. In the closing-script we can rollback transaction or even ask for committing transaction by dialog.
But is there a way to stop the unwished closing of the solution in the closing method also?
Is there any command which could stop closing when the closing method is executed in a before phase or would disabeling the closebox of the window be the solution?