Jump to content

Stop users from using 'window' menu

This topic is 7543 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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!

Link to comment
Share on other sites

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"]



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).


Link to comment
Share on other sites

This topic is 7543 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.