WebDirect Guide

Table Of Contents
Chapter 2 | Designing a FileMaker WebDirect solution 20
Scripts
FileMaker Pro scripts are useful for automating frequently performed tasks or for combining
several tasks. When used in FileMaker
WebDirect, scripts can allow web users to perform more
tasks, or to easily perform a series of tasks simply by clicking a button.
FileMaker WebDirect supports more than 90 script steps. To see which script steps are supported,
select FileMaker
WebDirect from the Show Compatibility list in the Edit Script dialog box in
FileMaker
Pro. Dimmed script steps are not supported in FileMaker WebDirect.
Although many script steps work identically in FileMaker WebDirect, several work differently, such
as the Windows script steps. For information about individual script steps, see FileMaker
Pro Help.
Keep these points in mind:
1 Use accounts and privileges to restrict the set of scripts that a web user can execute. Verify that
the scripts only contain script steps compatible with FileMaker
WebDirect, and only provide
access to scripts that should be used from a web browser.
1 Consider the side effects of scripts that execute a combination of steps that are controlled by
access privileges. For example, if a script includes a step to delete records and a web user does
not log in with an account that allows record deletion, the script does not execute the Delete
Record/Request script step. However, the script might continue to run, which could lead to
unexpected results.
1 In scripts, you can select Run script with full access privileges to allow scripts to perform
tasks that you would not grant individuals access to. For example, you can prevent users from
deleting records with their accounts and privileges, but still allow them to run a script that would
delete certain types of records under conditions predefined within a script.
1 If your scripts contain steps that are unsupported, use the Allow User Abort script step to
determine how subsequent steps are handled.
1 In FileMaker WebDirect, scripts can't access the client's file system. Web users must select files
to import or insert, and exported or saved files are downloaded to the web browser's default
download location.
1 Script steps can’t enter a field if access to the field is restricted by the Browse Mode or Find
Mode option in the Inspector.
1 FileMaker WebDirect does not move the cursor after text is inserted by a script step.
Show script steps that
are compatible with
FileMaker WebDirect
FileMaker Pro Edit Script dialog box