VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources]

Cynthia L. Baron, Daniel Peck

نسخه متنی -صفحه : 227/ 100
نمايش فراداده

Linking to the Main Menu

If you create a Main Menu, you'll quickly discover its fatal weakness. You can almost instantaneously jump from the Main Menu to someplace else, but getting back to it, especially from external database files, is another story. To avoid confusion, you should provide easy access back from the linking layouts in external files.

To link to the Main Menu from layouts in different files

1 .Go to an external file that you want to link to the Main Menu. Choose Scripts > ScriptMaker (Control+Shift+S/ Command+Shift+S).

2 .In the Define Scripts dialog box, click New. In the Edit Script dialog box, type a name for the script. We use Go to Main Menu.

3 .In the step list on the left, double-click Perform Script.

4 .

In Script Step Options, click Specify. In the "Specify Script" Options dialog box, choose the file that contains the Main Menu layout from the drop-down list (Figure 9.30).

Figure 9.30. Set the Perform Script step to run a script in another file.

5 .From the list of scripts in the external file, choose the Go to Main Menu script. (Figure 9.31). Click OK three times to finish.

Figure 9.31. You must specify the file that contains the external script.

6 .Follow the steps in "To create a button for a script" earlier in this chapter to add a button to the layout in the external file. In the Specify Button dialog box, select Perform Script from the list on the left and choose the Go to Main Menu script (Figure 9.32).

Figure 9.32. To switch to a particular layout in another file, you must perform a script.