VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources] - نسخه متنی

Cynthia L. Baron, Daniel Peck

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید











Combining Sub-Scripts


In "To create a sub-script to find records," we created several sub-scripts. Because they're small and modular, we can swap them in and out to create customized master scripts that do essentially the same things for a wide variety of different criteria. For this example we'll create a script that combines a find sub-script and a sort sub-script, then prints the result.

To create a master script



1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).

2 .When the Define Scripts dialog box appears, click New.

3 .When the Edit Script dialog box appears, type Print Sales Report in the Script Name box.

4 .

In the step list on the left, scroll down to the Navigation section and double-click Go to Layout.

5 .In the Script Step Options section, choose your report layout from the Specify drop-down menu (Figure 7.29). In our example, we use Sales Report.

Figure 7.29. Specify a layout in the Go to Layout script step.


[View full size image]

6 .Double-click Print Setup/Page Setup in the Files section of the step list. When the Print Setup/Page Setup dialog box appears, set the options for printing the report (Figure 7.30). Click OK.

Figure 7.30. You can set the print options for a specific printer as part of your script.


7 .In the step list on the left, double-click Perform Script in the Control section to add it to the script-assembly list.

8 .

In the Script Step Options section, click Specify. When the "Specify Script" Options dialog box appears, choose Find Checks from the scrolling window (Figure 7.31).

Figure 7.31. Choose the script to perform from the "Specify Script" Options menu.


9 .Double-click Perform Script again to add a second Perform Script step to the script-assembly list on the right.

10 .In the Script Step Options section, click Specify. When the "Specify Script" Options dialog box appears, choose Sort by Last Name from the Specify menu (Figure 7.32). Click OK.

Figure 7.32. The sort script must be run after the find script.


11 .In the step list on the left, scroll to the Files section and double-click Print. You can choose to have the Print dialog box appear by leaving the "Perform without dialog" box unchecked (Figure 7.33).

Figure 7.33. If the "Perform without dialog" check box is unchecked, the report will print to the current printer after prompting the user.


12 .Click OK to add the script to the Define Scripts listing, then click OK to exit ScriptMaker.


Tip

Sub-scripts can take up precious room in the Scripts menu list. If you don't expect to use any of the sub-scripts by themselves, uncheck the "Include in menu" box next to the name in the Define Scripts dialog box (Figure 7.34).

Figure 7.34. Since this script is only going to be used as a sub-script, it doesn't need to appear in the Scripts menu.



/ 227