Bill_misc_IT Posted March 12, 2014 Posted March 12, 2014 I would like to create a script to open a popup window with information and freeze that window, until the user closes it. I saw a post on this forum a month or so ago detailing best practice for just that but cannot find it. Can someone please help. Freeze window does not work, unless I pause the script. If I pause the script, do I need a second script to exit the script and close the window? Thanks, Bill
Newbies dlevinson Posted March 12, 2014 Newbies Posted March 12, 2014 If you pause the script indefinately, you can simply put a button on the pop-up sceen to Resume Script. Just make sure that the users can't navigate around to other layouts, or else the script may never continue.
Newbies dlevinson Posted March 12, 2014 Newbies Posted March 12, 2014 Depending on what you want the pop-up/user to do, you could also use a Custom Dialog script step, but I, for one, couldn't advise without more info.
Fitch Posted March 12, 2014 Posted March 12, 2014 FYI, FileMaker 12 introduced "Specify Advanced Style" for new windows, which lets us make modal windows natively. If you're still on FileMaker 10, then yes, you need to pause the script. If you have the toolbar showing, then the user will see a "continue" button. If Allow Abort is ON -- by default it is -- they will also see a "cancel" button. So turn abort OFF, and consider hiding/locking the toolbar. You don't necessarily need a second script. Just make a button and set it to "Resume Script." You may find it easier to handle this with custom menus. Either install the menu set in your script, or make it the default of your popup window's layout. In your menu set, assign the Close command to a script of your choice, which might just do nothing at all. This method won't prevent users from clicking on the background window, though. It just forces them to close the window via your button. Note: Freeze window is used "to hide actions from the user while FileMaker Pro performs the remainder of the script" -- e.g. if you're moving to different layouts or records for processing data, stuff the user doesn't need to see.
Recommended Posts
This topic is 3908 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