Having a closer look on default arguments (passed by Servoy) I ran into the 'force' argument which is passed to the method at the 'onClose' event.
I've tested with the code below, but either which way I close my application, the 'force' arguments keeps returning false.
Anyone any idea when this arguments will be true?
- Code: Select all
/**
* Callback method for when solution is closed, force boolean argument tells if this is a force (not stopable) close or not.
*
* @param {Boolean} force if false then solution close can be stopped by returning false
*
* @returns {Boolean} allow close
*
* @properties={typeid:24,uuid:"9AA3BE5A-F1D0-4CE0-889A-1AF4D307FCAE"}
*/
function onSolutionClose(force)
{
var $title = 'close';
var $message = 'force? ' + force;
var $button = 'ok';
plugins.dialogs.showInfoDialog($title, $message, $button);
}
It would be really nice if this could be set to true when 'application.exit()' could take this as an argument as well.
This way you can have better control over the force argument I guess...