stefangs Posted February 14, 2020 Posted February 14, 2020 Hi all, In my solution, I have scripted most functions so that the standard menu commands are not needed, or rather, shouldn't be used. As such, I have created a custom menu set that removes all commands that aren't necessary. But now I can go in and select the Standard FileMaker commands from the Tools menu to bring up a standard menu set anyway. Is that just because I have FMA rather FMP and does that mean anyone with FMA can change to the default menus as well? I thought the menu set would somehow be tied to the privilege set, but there doesn't seem to be a way to select one. What am I missing here? Thanks,
Wim Decorte Posted February 14, 2020 Posted February 14, 2020 You can do it because you're logged in with full access. Your users wouldn't be (hopefully) so they would get the custom menu you assign.
stefangs Posted February 14, 2020 Author Posted February 14, 2020 I see, so there's no connection between a custom menu set and a particular set of access privileges. That explains it, then. Thanks!
Fitch Posted February 15, 2020 Posted February 15, 2020 You can specify a default menu set for the file, in the custom menus dialog, and you can specify a default menu set for each layout. Other than that, you would control custom menu loading via scripts, where you can check a user's privileges and assign a menu set accordingly. But as Wim noted, you can't lock a full access user out of the Tools menu.
stefangs Posted February 17, 2020 Author Posted February 17, 2020 Just thinking... I have a global variable 'debug' in my files that, when set to 1, does or does not a bunch of things while I develop. I can then just reset this to 0 to see how the file behaves to a normal user. I would be great to have the custom menu set look at this variable and when it's 1 it would always install the standard menu set. I find it distracting to have FM always revert to the custom menu set while developing. Is there some other way to prohibit this?
Wim Decorte Posted February 17, 2020 Posted February 17, 2020 In your OnOpen script, detect whether you are logged in with Full Access and use the "install menu set" for the default menu set and toggle the option to use as file default. 1
stefangs Posted February 18, 2020 Author Posted February 18, 2020 (edited) Thanks, Wim! That did it. Edited February 20, 2020 by stefangs tested
Recommended Posts
This topic is 1738 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