Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 15
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
<script name> specifies the script you want to perform.
Optional script parameter specifies a script parameter for the specified script.
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.
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