Database Reference
In-Depth Information
you run into problems if you do. Delete, say, the Help Copy menu used in “Custom Menu
Set 1” and you get a nasty surprise when you click OK and then return to your file. You see
the text “<Menu Missing>” inserted in the menu bar, and the Help menu stays right where it
was. Despite these obstacles, you can remove an entire menu; you just have to dig a little
deeper to do it.
NOTE
You can troubleshoot a file for missing menu items by running a DDR ( The Database Design Re-
port ) , or by checking Get(LastError) after you load a menu set in a script.
The Window menu can cause problems for new people. For example, the Show command
lists files they may not know are open. Hiding and showing windows is also perilous for new
folks if they don't understand how FileMaker manages windows. Instead of bothering people
with stuff they don't need to know, you can just suppress this menu entirely by removing it
from the menu bar.
1. In the Manage Custom Menus dialog box, click the Custom Menu Sets tab.
Select “Custom Menu Set 1,” and then click Edit .
The Edit Menu Set dialog box appears.
2. In the Menu Set Name field, type Data Entry .
This descriptive name helps you remember the menu set's purpose. If you like, type
additional information in the Comment box.
3. In the “Menus in 'Data Entry'” list, click the “[Window]” menu. Click Remove
and then click OK until you're back in your database .
Back in your database, the Window menu is gone entirely from the menu bar. This menu
configuration is ideal for your data entry people, but not so great for administrative people,
who understand the Window menu and use it all the time. Read on to find out how to tailor
sets of menus for people with different privilege levels.
Hiding or Showing a Menu by Calculation
You've already seen how to choose which mode a menu appears in and how to make it go
away entirely. But if you really want to get fancy about when to show a menu, you can do it
with a calculation . In “Custom Menu Set 1,” there's a menu called FileMaker Pro Copy.
Double-click that menu to open the Edit Custom Menu dialog box ( Figure 13-26 ). Halfway
down, you see a text box labeled “Install when”: Here's where FileMaker looks to decide
whether or not to display the menu. If you always want the menu to be displayed, put a 1 in
Search WWH ::




Custom Search