Database Reference
In-Depth Information
the Set Window Title script step with this calculation: Get(FileName) & “” &
Get(AccountName) .
Set Zoom Level sets the window zoom level, just like the zoom controls in the win-
dow's bottom-left corner. You can pick a specific zoom level, or choose to zoom in or out
to the next level. Again, you get a Lock option. If you set the zoom level and then turn on
the Lock checkbox, people can't manually change the zoom level.
View As is in the Windows section of the script step list, but it isn't really a window-re-
lated step. It changes the view option for the current layout . You can pick Form view,
List view, or Table view. You also get a choice called Cycle that tells FileMaker to switch
to the next view setting in the list. If you really want to control how people see your data-
base, use Layouts→Layout Setting (View Tab) to turn off the views you don't want them
seeing. You can then let folks override those settings with this script step.
Working with Files
In the Script Step list, the Files section contains some of the least used script steps in all of
FileMaker. But if you work in a school, say, the day may come when you need to automate
the process of formatting files or saving backup copies of your database for every student in
a class. You can also script the process of converting older databases to FileMaker's .fmp12
format and recovering damaged databases, but these processes are sensitive and usually bet-
ter handled manually.
Opening and Closing Files
Because the Open File script step lets you open another FileMaker file, it's used more than
the others in this group. You can pick any of your existing file references (see Defining Data
Sources Using a Path ) or create a new file reference if necessary. When the step runs, the
specified file opens and appears in a new window. If the file has a script set to run when it
opens, it runs. If you want the file to open, but you don't want to see a window on the screen,
then turn on the “Open hidden” option for this step. The file opens, but it's listed in the Win-
dow menu's Show Window submenu, with its name in parentheses.
The Close File script step closes any open file. When you add the step, you get to pick any
file reference or add a new one. You can also choose Current File to close the file the script is
in. If the file is open when the script runs, then all its windows close, and its closing script
runs.
Search WWH ::




Custom Search