Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 14
Perform Script On Server
Purpose
Performs a script on the server that is hosting the current file.
Format
Perform Script On Server [Wait for completion; "<script name>"; Parameter:
<parameter>]
Options
To select a script, click Specify and choose the script from the list.
For Optional script parameter, type the text you want to use or click Edit and use the Specify
Calculation dialog box to build a more complex parameter.
Wait for completion pauses the script on the client until the sub-script called by Perform
Script On Server is completed on the host. Wait for completion must be selected to pass a
script result or error code from the host to the client. Use the Get(ScriptResult) function to
capture a result or the Get(LastError) function to capture an error code.
Compatibility
Originated in
FileMaker Pro 13.0
Description
The current file must be hosted on FileMaker Server. Otherwise, Perform Script On Server returns
an error. Scripts performed on the host are treated as FileMaker
Server scheduled scripts.
Scripts performed by Perform Script On Server:
are not aware of the client’s current layout or record. If necessary, use the Go to Layout
script step and the Go to Record/Request/Page script step to specify which layout and
record to act on.
can only access global variables that are defined after the script begins running on the host.
support script parameters and script results up to 1 million characters.
Note If records are locked by a client, scripts performed on the host cannot access uncommitted
data or change the contents of those records.
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script No
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution No