• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Creating Script Buttons

Although you can run any script from the Script menu list, it's a better idea to use script buttons. Naturally, it's easier to click once than to click, drag and select. But script buttons are more than a lazy way to save a couple of seconds. For one thing, it's easy to forget which script belongs with a layout. And if other people use your database they could make a remarkable mess of it by running the wrong script at the wrong time.

To create a button for a script:

1.
If you're not already there, enter Layout Mode and switch to the layout where you want to place the button.

2.
Click the Button tool (Figure 9.12).

Figure 9.12. The Button tool is the quickest way to create a new button on a layout.


3.
Dragging the cursor on the layout creates the button and brings up the Specify Button dialog box. From the list on the left, click Perform Script.

4.
From Options, choose the script name from the Specify drop-down list and click OK (Figure 9.13).

Figure 9.13. After you add the button to the layout, specify the action the button will perform.


5.
The button will appear on the layout with the text cursor flashing (Figure 9.14). Type a descriptive label, then select the text and format it as desired.

Figure 9.14. When you create a button, FileMaker automatically switches to the Text tool for input.


6.
Switch to Browse Mode and click the new button to test the script.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint