November 18, 200322 yr Is there a way I can disable users from using the 'Window' menu to switch between files. My user_db.fp5 file is just a list of the users and their passwords (I have a simple login script), and the users shouldn't have permission to access it. The only thing I can think of for them not getting into anything is locking the status bar on that file, and having a startup script for the file default to a blank layout? Any help would be appreciated, thanks!
November 18, 200322 yr You can disable the Windows menu and practically everything else with a script: Allow User Abort [Off] Set Field ["Lock_g", "1"] Toggle Status Area ["Hide, Lock"] Toggle Window ["Zoom"] Loop Pause/Resume[] End Loop IMPORTANT: Before creating such a beast, especially the Allow[Off] be sure you have a script and button to stop it, or you'll have to Force Quit FileMaker. The script to stop it is simple: Set Field ["Lock_g", """"] Toggle Status Area ["Hide"] Exit Record/Request The critical thing is to make a button to do this, have it on the layout, and when you define the button, choose "Halt" current script as the option. The Lock_g global field is optional. If you include a check for it in every visible script, to stop them, then you have a fairly secure little loop. Otherwise, even though the Window menu is disabled, they can still run a visible script, yet still be trapped in the pause loop; not so good. I also run the Stop script, to set Lock_g to "" at startup, in case something's gone wrong (like a Force Quit). PauseLoop.zip
Create an account or sign in to comment