pelagio Posted July 21, 2008 Posted July 21, 2008 (edited) I want a confirmation dialog before the file closes.. Under File->File options I can Filemaker to run a script before the file is closed. I put a confirmation dialog there.. but I can't find a way to do an "abort exit" in case the user hits cancel. What should I do so it cancels the exit? Edited July 21, 2008 by Guest
David Jondreau Posted July 21, 2008 Posted July 21, 2008 Without an Advanced version of Filemaker you cannot do this.
David Jondreau Posted July 21, 2008 Posted July 21, 2008 But your profile doesn't say that. You can create custom menus in 9 Advanced. Change the Close command in the File menu to run a script that has your confirmation dialog and checks, using If[] and Get(LastMessageChoice), what the users response is and responds accordingly.
pelagio Posted July 21, 2008 Author Posted July 21, 2008 You are totally right, I will change that.. thanks. The problem is that the user closes the app by clicking the cross in the upper right corner.. :P
David Jondreau Posted July 21, 2008 Posted July 21, 2008 That cross in the upper right triggers the same effects as selecting Close from the menu. You can't prevent someone from Quitting Filemaker though.
pelagio Posted July 21, 2008 Author Posted July 21, 2008 So you say it is absolutely impossible to add a confirmation dialog with the upper-rigth cross? (the one of filemaker, not of the document) ...
David Jondreau Posted July 21, 2008 Posted July 21, 2008 (edited) Yes, as it should be. If I were a user who was unable to quit an application, I would become very frustrated. Besides, I could force quit the app or turn the machine off. What are you trying to accomplish by preventing the user from quitting? *Actually, it's not impossible, you could for instance, put in an infinite loop of Pausing script steps that only escapes with the right Dialog choice. And I'm sure someone may have a more elegant answer, but to what problem? Edited July 21, 2008 by Guest
pelagio Posted July 21, 2008 Author Posted July 21, 2008 I just wnat to put an "are you sure you want to quit" dialog. The user asked for it, because he has closed the application by mistake several times...
David Jondreau Posted July 21, 2008 Posted July 21, 2008 Someone else may have ideas, but I don't know how you can accomplish that.
Recommended Posts
This topic is 6025 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now