Here's one for the list...
It would be very nice to have an application.onExit() method that one could call to perform end-of-session housekeeping duties such as last-minute error-checking, orphan record clenaup, etc.
var button = plugins.dialogs.showQuestionDialog( '', 'Really quit?', 'Yes', 'No');
if (button == 'No')
{
return false;
}
krauss wrote:Thanks, Patrick! That is exactly what I was looking for.
I was unable to find this in the documentation; if it's not that my eyes (and brain) are going bad, perhaps this detail could be added?
Choosing a method to close your solution
You can run a Servoy method (script) just before your solution closes. The On close method setting is blank or "<none>" by default when a new solution is created.
To select an on close method:
*Choose File > Solution Settings.
* Select the method you want to run from the On close method pull-down list (or select <none>).
krauss wrote:Not to quibble, but the information I was looking for isn't actually in the documentation. The section to which you refer (and which I'd already looked at when I made my first post on the topic) is composed of a screen shot and the following text:Choosing a method to close your solution
You can run a Servoy method (script) just before your solution closes. The On close method setting is blank or "<none>" by default when a new solution is created.
To select an on close method:
*Choose File > Solution Settings.
* Select the method you want to run from the On close method pull-down list (or select <none>).
That's it.
It doesn't say that the on close method captures the event when someone clicks on the main close box. That's the condition I'm concerned about, and that's what I'm suggesting be added to the documentation.
Return to Discuss Feature Requests
Users browsing this forum: No registered users and 2 guests